Parallelize build script some more
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Lint Add .vercel to gitignore
This commit is contained in:
parent
57afaba0f7
commit
645bf7367b
4 changed files with 61 additions and 40 deletions
96
.drone.yml
96
.drone.yml
|
@ -6,40 +6,62 @@ type: docker
|
||||||
# If yes, deploy to vercel
|
# If yes, deploy to vercel
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install
|
- name: install
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn
|
- yarn
|
||||||
- name: build-game
|
- name: build-game
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn build:game
|
- yarn build:game
|
||||||
depends_on:
|
depends_on:
|
||||||
- install
|
- install
|
||||||
- name: build-pwa
|
- name: build-pwa
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn build:pwa
|
- yarn build:pwa
|
||||||
depends_on:
|
depends_on:
|
||||||
- install
|
- install
|
||||||
- name: test
|
- name: prettier
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn test
|
- yarn lint:prettier:all
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-game
|
- build-game
|
||||||
- build-pwa
|
- build-pwa
|
||||||
- name: deploy (production)
|
- name: eslint
|
||||||
image: dockette/vercel
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
|
- yarn lint:eslint --max-warnings=0
|
||||||
when:
|
depends_on:
|
||||||
branch:
|
- build-game
|
||||||
- main
|
- build-pwa
|
||||||
- name: deploy (preview)
|
- name: check
|
||||||
image: dockette/vercel
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
|
- yarn check
|
||||||
when:
|
depends_on:
|
||||||
branch:
|
- build-game
|
||||||
- "!main"
|
- 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
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/public/build/
|
/public/build/
|
||||||
/public/service-worker.js
|
/public/service-worker.js
|
||||||
|
.vercel
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<svelte:options immutable />
|
<svelte:options immutable />
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { fade } from "svelte/transition";
|
|
||||||
|
|
||||||
import type { Resource } from "../../shark/data/Resources";
|
import type { Resource } from "../../shark/data/Resources";
|
||||||
|
|
||||||
export let categoryName: string;
|
export let categoryName: string;
|
||||||
|
|
Reference in a new issue