Parallelize build script some more
All checks were successful
continuous-integration/drone/push Build is passing

Lint
Add .vercel to gitignore
This commit is contained in:
Tobias Berger 2021-10-14 12:54:04 +02:00
parent 57afaba0f7
commit 645bf7367b
4 changed files with 61 additions and 40 deletions

View file

@ -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

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/node_modules/
/public/build/
/public/service-worker.js
.vercel

View file

@ -53,4 +53,4 @@
"display": "standalone",
"background_color": "#536892",
"theme_color": "#2e4372"
}
}

View file

@ -1,8 +1,6 @@
<svelte:options immutable />
<script lang="ts">
import { fade } from "svelte/transition";
import type { Resource } from "../../shark/data/Resources";
export let categoryName: string;