mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-18 22:27:51 +00:00
Remove nodemon dependency by letting Lanyon handle web-scanning
This commit is contained in:
parent
044ef6d1c5
commit
191b8118e0
15
package.json
15
package.json
@ -7,8 +7,6 @@
|
|||||||
"build": "lanyon build",
|
"build": "lanyon build",
|
||||||
"deploy": "lanyon deploy",
|
"deploy": "lanyon deploy",
|
||||||
"encrypt": "lanyon encrypt",
|
"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",
|
"install": "lanyon postinstall",
|
||||||
"lint": "shellcheck --shell=bash $(find . -name '*.sh' -maxdepth 2)",
|
"lint": "shellcheck --shell=bash $(find . -name '*.sh' -maxdepth 2)",
|
||||||
"release:major": "env SEMANTIC=major npm run release",
|
"release:major": "env SEMANTIC=major npm run release",
|
||||||
@ -17,16 +15,20 @@
|
|||||||
"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",
|
"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",
|
"save:fixtures": "cross-env SAVE_FIXTURES=true npm run test",
|
||||||
"serve:production": "LANYON_ENV=production lanyon serve",
|
"serve:production": "LANYON_ENV=production lanyon serve",
|
||||||
"start:production": "npm-run-all inject build:production serve:production",
|
"start:production": "npm-run-all build:production serve:production",
|
||||||
"start": "npm-run-all --parallel injecter starter",
|
"start": "lanyon start",
|
||||||
"starter": "lanyon start",
|
|
||||||
"test": "test/acceptance.sh",
|
"test": "test/acceptance.sh",
|
||||||
"version:current": "node -e 'console.log(require(\"./package.json\").version)'",
|
"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"
|
"version:replace": "replace 'v\\d+\\.\\d+\\.\\d+' \"v$(npm run --silent version:current)\" main.sh src/*.sh"
|
||||||
},
|
},
|
||||||
"lanyon": {
|
"lanyon": {
|
||||||
"projectDir": "website",
|
"projectDir": "website",
|
||||||
"prebuild": "npm run inject"
|
"prebuild": "./_scripts/inject.sh",
|
||||||
|
"contentScandir": "../",
|
||||||
|
"contentIgnore": [
|
||||||
|
"website/*.md",
|
||||||
|
"website/main.sh"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"fsevents": "*"
|
"fsevents": "*"
|
||||||
@ -38,7 +40,6 @@
|
|||||||
"browser-sync": "2.11.0",
|
"browser-sync": "2.11.0",
|
||||||
"cross-env": "1.0.7",
|
"cross-env": "1.0.7",
|
||||||
"lanyon": "0.0.46",
|
"lanyon": "0.0.46",
|
||||||
"nodemon": "1.8.1",
|
|
||||||
"npm-run-all": "2.1.1"
|
"npm-run-all": "2.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,9 @@ set -o pipefail
|
|||||||
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
|
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
|
||||||
__base="$(basename ${__file} .sh)"
|
__base="$(basename ${__file} .sh)"
|
||||||
|
__root="$(cd "$(dirname $(dirname "${__dir}"))" && pwd)"
|
||||||
|
|
||||||
|
pushd "${__root}"
|
||||||
# Offer the main template for download as http://bash3boilerplate.sh/main.sh
|
# Offer the main template for download as http://bash3boilerplate.sh/main.sh
|
||||||
cp -v main.sh website/
|
cp -v main.sh website/
|
||||||
|
|
||||||
@ -71,3 +73,4 @@ EOF
|
|||||||
|
|
||||||
echo "--> written website/${targetName}.md"
|
echo "--> written website/${targetName}.md"
|
||||||
done
|
done
|
||||||
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user