mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-18 22:27:51 +00:00
42 lines
1.8 KiB
JSON
42 lines
1.8 KiB
JSON
{
|
|
"name": "bash3boilerplate",
|
|
"description": "Copypastable templates to write better bash scripts",
|
|
"version": "2.1.0",
|
|
"scripts": {
|
|
"build:production": "LANYON_ENV=production lanyon build",
|
|
"build": "lanyon build",
|
|
"deploy": "lanyon deploy",
|
|
"encrypt": "lanyon encrypt",
|
|
"inject": "./website/_scripts/inject.sh",
|
|
"injecter": "nodemon --verbose --watch ./ --ignore 'website/*.md' --ignore website/_site --ignore website/.lanyon --ext html,json,md,js,css,png,jpg --exec 'npm run inject'",
|
|
"install": "lanyon postinstall",
|
|
"lint": "shellcheck --shell=bash $(find . -name '*.sh' -maxdepth 2)",
|
|
"release:major": "env SEMANTIC=major npm run release",
|
|
"release:minor": "env SEMANTIC=minor npm run release",
|
|
"release:patch": "env SEMANTIC=patch npm run release",
|
|
"release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && npm run version:replace && git commit main.sh src/*.sh -m 'Update version' && git push && git push --tags && npm publish",
|
|
"save:fixtures": "cross-env SAVE_FIXTURES=true npm run test",
|
|
"serve:production": "LANYON_ENV=production lanyon serve",
|
|
"start:production": "npm-run-all inject build:production serve:production",
|
|
"start": "npm-run-all --parallel injecter starter",
|
|
"starter": "lanyon start",
|
|
"test": "test/acceptance.sh",
|
|
"version:current": "node -e 'console.log(require(\"./package.json\").version)'",
|
|
"version:replace": "replace 'v\\d+\\.\\d+\\.\\d+' \"v$(npm run --silent version:current)\" main.sh src/*.sh"
|
|
},
|
|
"lanyon": {
|
|
"projectDir": "website",
|
|
"prebuild": "npm run inject"
|
|
},
|
|
"dependencies": {
|
|
"fakefile": "0.0.6"
|
|
},
|
|
"devDependencies": {
|
|
"browser-sync": "2.11.0",
|
|
"cross-env": "1.0.7",
|
|
"lanyon": "0.0.42",
|
|
"nodemon": "1.8.1",
|
|
"npm-run-all": "2.1.1"
|
|
}
|
|
}
|