chore: switch to Netlify CLI

This commit is contained in:
Stefan Imhoff
2022-08-23 16:17:27 +02:00
parent ecea27c9d7
commit 01cd1fb585
2 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,10 @@
[build.environment] [build.environment]
NODE_VERSION = "12.16" NODE_VERSION = "12.16"
[dev]
command = "npm run dev"
publish = "dist"
[[headers]] [[headers]]
for = "/*" for = "/*"
[headers.values] [headers.values]

View File

@@ -11,11 +11,13 @@
"clean": "npx del dist", "clean": "npx del dist",
"debug": "DEBUG=* npx eleventy", "debug": "DEBUG=* npx eleventy",
"deploy": "netlify deploy --prod", "deploy": "netlify deploy --prod",
"deploy:preview": "netlify deploy",
"dev": "ELEVENTY_ENV=development npm run watch",
"plop": "plop", "plop": "plop",
"prebuild": "npm run clean", "prebuild": "npm run clean",
"prestart": "npm run clean", "prestart": "npm run clean",
"publish": "npm-run-all build deploy", "publish": "npm-run-all build deploy",
"start": "npm run watch", "start": "netlify dev",
"svg": "gulp svg", "svg": "gulp svg",
"watch": "npm-run-all --parallel watch:*", "watch": "npm-run-all --parallel watch:*",
"watch:assets": "gulp", "watch:assets": "gulp",