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
22
driver/package.json
Normal file
22
driver/package.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"name": "hippie-bus-driver",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"hello": "echo -n \"This is \" && node -p \"process.env.npm_package_name\" | tr '[:lower:]' '[:upper:]'",
|
||||
"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:build": "rm -rf ../build/*",
|
||||
"clean:deploy": "rm -rf ../deploy/*",
|
||||
"clean:report": "rm -rf ../report/*",
|
||||
"clean:test": "rm -rf ../test/*",
|
||||
"style:compile": "sass ../source/style:../build/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",
|
||||
"build:new": "npm run clean:build && npm run 11ty -- && npm run style:compile",
|
||||
"build": "npm run 11ty -- && npm run style:compile",
|
||||
"deploy": "npm run clean:deploy && npm run 11ty -- --output=deploy --pathprefix=hippie && npm run style:deploy",
|
||||
"serve": "npm run style:watch & npm run 11ty -- --serve --incremental",
|
||||
"debug": "DEBUG=* npm run 11ty --"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue