From f8b4729e08585ebee00b0507a334583dcfe3e233 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 20 Sep 2019 15:02:59 +0200 Subject: [PATCH 01/10] Update readme --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/README.md b/README.md index e329a77..5f23b3d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,58 @@ Work in progress name, work in progress game +Try the latest build here: [mcg-builds.zyg.ovh/latest](https://mcg-builds.zyg.ovh/latest/) + +## Development + +### Dependencies + +Fetch dependencies with `yarn`: + +```sh +yarn --dev +``` + +### Run local server for development + +Run this command: + +```sh +yarn serve +``` + +then visit [localhost:8080](http://localhost:8080) (URL might be different if something is already listening on port 8080) + +### Run tests + +Run unit tests with Jest: + +```sh +yarn test:unit +``` + +Generate a coverage profile with: + +```sh +yarn test:unit --coverage +``` + +### Lint code + +Before you submit a PR, make sure the code is formatted correctly with: + +```sh +yarn lint +``` + +## Building for release + +### Build + +```sh +yarn build +``` + ## License Code is ISC, Assets "depends", some stuff is taken from FreeSound and DeviantArt so your best bet is to just praise the copyright gods. -- 2.45.2 From c9312b1c9fc2a7c7e5ebe22a37415dd5444df732 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 20 Sep 2019 15:03:56 +0200 Subject: [PATCH 02/10] Add linting step --- .drone.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.drone.yml b/.drone.yml index 5a02eee..d3c5f02 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,6 +19,13 @@ steps: depends_on: - restore-cache + - name: lint + image: node + commands: + - yarn lint + depends_on: + - dependencies + - name: build_versioned image: node commands: -- 2.45.2 From 952e29edf1804051fb8f596a1288c0afe8c66f6b Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 20 Sep 2019 15:13:15 +0200 Subject: [PATCH 03/10] Fix linting issues --- .eslintrc.js | 4 +--- src/components/Cards/CardImage.vue | 3 +-- src/mlpccg/draft/session.ts | 20 ++++++++++---------- src/mlpccg/images.ts | 3 ++- src/tests/unit/.eslintrc.js | 2 +- 5 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index fb644c6..3b46228 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,9 +18,7 @@ module.exports = { overrides: [ { - files: [ - '**/__tests__/*.{j,t}s?(x)' - ], + files: ["**/__tests__/*.{j,t}s?(x)"], env: { jest: true } diff --git a/src/components/Cards/CardImage.vue b/src/components/Cards/CardImage.vue index ef14af9..809aa8b 100644 --- a/src/components/Cards/CardImage.vue +++ b/src/components/Cards/CardImage.vue @@ -2,8 +2,7 @@ - +