chore(netlify): switch to Netlify CLI

This commit is contained in:
Stefan Imhoff
2022-08-23 16:28:26 +02:00
parent 2e1eae6f0f
commit e7bc068f4a
2 changed files with 8 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

@@ -10,10 +10,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": "netflify deploy",
"dev": "ELEVENTY_ENV=development npm run watch",
"live": "netlify dev --live",
"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",