feat: Change workspace and scripts
- Add 11ty script and replace direct usage of npx @11ty/eleventy - Rename workspace to driver
This commit is contained in:
parent
2f321b94ad
commit
d4eb2f743b
1 changed files with 7 additions and 6 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "hippie-bus-bus",
|
"name": "hippie-bus-driver",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"hello": "echo -n \"This is \" && node -p \"process.env.npm_package_name\" | tr '[:lower:]' '[:upper:]'",
|
"hello": "echo -n \"This is \" && node -p \"process.env.npm_package_name\" | tr '[:lower:]' '[:upper:]'",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
"11ty": "cd ../ && NODE_OPTIONS='--preserve-symlinks' eleventy",
|
||||||
"clean": "npm run clean:build & npm run clean:deploy & npm run clean:report & npm run clean:test",
|
"clean": "npm run clean:build & npm run clean:deploy & npm run clean:report & npm run clean:test",
|
||||||
"clean:build": "rm -rf ../build/*",
|
"clean:build": "rm -rf ../build/*",
|
||||||
"clean:deploy": "rm -rf ../deploy/*",
|
"clean:deploy": "rm -rf ../deploy/*",
|
||||||
|
|
@ -12,10 +13,10 @@
|
||||||
"style:compile": "sass ../source/style:../build/css --load-path=vendor",
|
"style:compile": "sass ../source/style:../build/css --load-path=vendor",
|
||||||
"style:deploy": "sass ../source/style:../deploy/css --load-path=vendor",
|
"style:deploy": "sass ../source/style:../deploy/css --load-path=vendor",
|
||||||
"style:watch": "sass --watch ../source/style:../build/css --load-path=vendor",
|
"style:watch": "sass --watch ../source/style:../build/css --load-path=vendor",
|
||||||
"build:new": "npm run clean:build && npx @11ty/eleventy && npm run style:compile",
|
"build:new": "npm run clean:build && npm run 11ty -- && npm run style:compile",
|
||||||
"build": "npx @11ty/eleventy && npm run style:compile",
|
"build": "npm run 11ty -- && npm run style:compile",
|
||||||
"deploy": "npm run clean:deploy && npx @11ty/eleventy --output=deploy --pathprefix=hippie && npm run style:deploy",
|
"deploy": "npm run clean:deploy && npm run 11ty -- --output=deploy --pathprefix=hippie && npm run style:deploy",
|
||||||
"serve": "npm run style:watch & npx @11ty/eleventy --serve",
|
"serve": "npm run style:watch & npm run 11ty -- --serve --incremental",
|
||||||
"debug": "DEBUG=* npx @11ty/eleventy --"
|
"debug": "DEBUG=* npm run 11ty --"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue