Change build order
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7408cf421a
commit
5b6a3e98ab
13
.drone.yml
13
.drone.yml
|
@ -23,12 +23,12 @@ steps:
|
|||
commands:
|
||||
- npm run lint
|
||||
|
||||
- name: build
|
||||
- name: optimize-images
|
||||
image: node:16
|
||||
depends_on:
|
||||
- install-deps
|
||||
commands:
|
||||
- npm run build:web
|
||||
- npm run build:images
|
||||
|
||||
- name: generate-calendar
|
||||
image: node:16
|
||||
|
@ -37,19 +37,18 @@ steps:
|
|||
commands:
|
||||
- npm run build:calendar
|
||||
|
||||
- name: optimize-images
|
||||
- name: build
|
||||
image: node:16
|
||||
depends_on:
|
||||
- install-deps
|
||||
- optimize-images
|
||||
commands:
|
||||
- npm run build:images
|
||||
- npm run build:web
|
||||
|
||||
- name: export
|
||||
image: node:16
|
||||
depends_on:
|
||||
- build
|
||||
- generate-calendar
|
||||
- optimize-images
|
||||
- build
|
||||
commands:
|
||||
- npm run export
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
},
|
||||
"scripts": {
|
||||
"dev": "npm run generate:images && next dev",
|
||||
"build": "npm run build:web && npm run build:calendar && npm run build:images",
|
||||
"build": "npm run build:images && npm run build:web && npm run build:calendar",
|
||||
"build:images": "ts-node ./scripts/optimize-images",
|
||||
"build:web": "next build",
|
||||
"build:calendar": "ts-node ./scripts/generate-calendar",
|
||||
"build:images": "ts-node ./scripts/optimize-images",
|
||||
"start": "next start",
|
||||
"export": "next export",
|
||||
"lint": "eslint \"{pages,components,lib,hooks,scripts}/**/*.{js,ts,tsx,jsx}\" --quiet",
|
||||
|
|
Loading…
Reference in New Issue