Skip to content

Commit

Permalink
feat(build): improve build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S committed Dec 27, 2018
1 parent 9640dae commit 75c62ca
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
"test": "npm run standard && npm run build-js:unit && npm run test:unit && npm run build",
"standard": "standard src/js/* tests/units/*.spec.js",
"deploy": "gh-pages -d docs",
"docs-build": "npm run build && npm run docs-copy",
"docs-copy": "shx mkdir -p docs/dist/ && shx cp -r dist/css/ docs/dist/ && shx cp -r dist/js/ docs/dist/",
"docs-build": "shx mkdir -p docs/dist/ && shx cp -r dist/css/ docs/dist/ && shx cp -r dist/js/ docs/dist/",
"docs-serve": "http-server docs/ -c-1 -o",
"changelog": "standard-version",
"changelog": "standard-version -a",
"coveralls": "shx cat tests/dist/coverage/lcov.info | coveralls"
},
"files": [
Expand Down Expand Up @@ -84,5 +83,11 @@
"ignore": [
"dist/js/*.js"
]
},
"standard-version": {
"scripts": {
"postbump": "npm run build",
"precommit": "git add dist"
}
}
}

0 comments on commit 75c62ca

Please sign in to comment.