From 645bf7367bc48cc214e09fff4b7509ca8b6e46ef Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Thu, 14 Oct 2021 12:54:04 +0200 Subject: [PATCH] Parallelize build script some more Lint Add .vercel to gitignore --- .drone.yml | 96 ++++++++++++------- .gitignore | 1 + public/manifest.json | 2 +- .../ResourceTable/ResourceGroup.svelte | 2 - 4 files changed, 61 insertions(+), 40 deletions(-) diff --git a/.drone.yml b/.drone.yml index ffcba00..df93a7b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,40 +6,62 @@ type: docker # If yes, deploy to vercel steps: -- name: install - image: node - commands: - - yarn -- name: build-game - image: node - commands: - - yarn build:game - depends_on: - - install -- name: build-pwa - image: node - commands: - - yarn build:pwa - depends_on: - - install -- name: test - image: node - commands: - - yarn test - depends_on: - - build-game - - build-pwa -- name: deploy (production) - image: dockette/vercel - commands: - - vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c - when: - branch: - - main -- name: deploy (preview) - image: dockette/vercel - commands: - - vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c - when: - branch: - - "!main" + - name: install + image: node + commands: + - yarn + - name: build-game + image: node + commands: + - yarn build:game + depends_on: + - install + - name: build-pwa + image: node + commands: + - yarn build:pwa + depends_on: + - install + - name: prettier + image: node + commands: + - yarn lint:prettier:all + depends_on: + - build-game + - build-pwa + - name: eslint + image: node + commands: + - yarn lint:eslint --max-warnings=0 + depends_on: + - build-game + - build-pwa + - name: check + image: node + commands: + - yarn check + depends_on: + - build-game + - build-pwa + - name: deploy (production) + image: dockette/vercel + commands: + - vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c + when: + branch: + - main + depends_on: + - prettier + - eslint + - check + - name: deploy (preview) + image: dockette/vercel + commands: + - vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c + when: + branch: + - "!main" + depends_on: + - prettier + - eslint + - check diff --git a/.gitignore b/.gitignore index affbdc8..6264d31 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /node_modules/ /public/build/ /public/service-worker.js +.vercel diff --git a/public/manifest.json b/public/manifest.json index c7828ed..48f6f72 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -53,4 +53,4 @@ "display": "standalone", "background_color": "#536892", "theme_color": "#2e4372" -} \ No newline at end of file +} diff --git a/src/components/ResourceTable/ResourceGroup.svelte b/src/components/ResourceTable/ResourceGroup.svelte index d886e73..ca2a6c2 100644 --- a/src/components/ResourceTable/ResourceGroup.svelte +++ b/src/components/ResourceTable/ResourceGroup.svelte @@ -1,8 +1,6 @@