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:
sthag 2026-04-11 17:09:24 +02:00
parent 2f321b94ad
commit d4eb2f743b

View file

@ -1,9 +1,10 @@
{
"name": "hippie-bus-bus",
"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/*",
@ -12,10 +13,10 @@
"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 && npx @11ty/eleventy && npm run style:compile",
"build": "npx @11ty/eleventy && npm run style:compile",
"deploy": "npm run clean:deploy && npx @11ty/eleventy --output=deploy --pathprefix=hippie && npm run style:deploy",
"serve": "npm run style:watch & npx @11ty/eleventy --serve",
"debug": "DEBUG=* npx @11ty/eleventy --"
"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 --"
}
}