Copy index.json in build script, not npm script

Move the duplication of the index.json file in the build.sh script instead of
the npm build-index script. This makes things cleaner.
client-spec/clarity
Marco Bonelli 2019-11-15 05:33:20 +01:00 committed by Waldir Pimenta
parent c2051a0674
commit 7a28aef527
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@
"lint-markdown": "markdownlint pages*/**/*.md",
"lint-tldr": "tldr-lint ./pages",
"test": "bash scripts/test.sh",
"build-index": "node ./scripts/build-index.js | tee pages/index.json > index.json"
"build-index": "node ./scripts/build-index.js > index.json"
},
"husky": {
"hooks": {

View File

@ -13,6 +13,7 @@ function initialize {
function build_index {
npm run build-index
cp index.json pages/
echo "Pages index succesfully built."
}