Rename npm scripts
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Amy 2021-10-15 23:39:34 -04:00
parent 8cd3a7747b
commit aa32e20c6e
2 changed files with 13 additions and 5 deletions

View File

@ -35,13 +35,21 @@ steps:
depends_on: depends_on:
- install-deps - install-deps
commands: commands:
- npm run generate:calendar - npm run build:calendar
- name: optimize-images
image: node:16
depends_on:
- install-deps
commands:
- npm run build:images
- name: export - name: export
image: node:16 image: node:16
depends_on: depends_on:
- build - build
- generate-calendar - generate-calendar
- optimize-images
commands: commands:
- npm run export - npm run export

View File

@ -7,14 +7,14 @@
}, },
"scripts": { "scripts": {
"dev": "npm run generate:images && next dev", "dev": "npm run generate:images && next dev",
"build": "npm run build:web && npm run generate:calendar", "build": "npm run build:web && npm run build:calendar && npm run build:images",
"build:web": "npm run generate:images && next build", "build:web": "next build",
"build:calendar": "ts-node ./scripts/generate-calendar",
"build:images": "ts-node ./scripts/optimize-images",
"start": "next start", "start": "next start",
"export": "next export", "export": "next export",
"lint": "eslint \"{pages,components,lib,hooks,scripts}/**/*.{js,ts,tsx,jsx}\" --quiet", "lint": "eslint \"{pages,components,lib,hooks,scripts}/**/*.{js,ts,tsx,jsx}\" --quiet",
"lint:fix": "eslint \"{pages,components,lib,hooks,scripts}/**/*.{js,ts,tsx,jsx}\" --quiet --fix", "lint:fix": "eslint \"{pages,components,lib,hooks,scripts}/**/*.{js,ts,tsx,jsx}\" --quiet --fix",
"generate:calendar": "ts-node ./scripts/generate-calendar",
"generate:images": "ts-node ./scripts/optimize-images",
"check-lockfile": "ts-node ./scripts/check-lockfile" "check-lockfile": "ts-node ./scripts/check-lockfile"
}, },
"dependencies": { "dependencies": {