Add build to release script.

This commit is contained in:
Don McCurdy 2018-01-20 00:18:25 -08:00
parent 1cf95b490f
commit 00c825f6c8
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,7 @@
"build": "rollup -c && rollup -c rollup.config.min.js",
"build-docs": "jsdoc2md -f src/dat/gui/GUI.js src/dat/controllers/Controller.js src/dat/controllers/NumberController.js | replace-between --target API.md --token API",
"lint": "eslint src",
"version": "npm run build && git add -A build",
"postversion": "git push && git push --tags && npm publish"
},
"repository": {

View File

@ -37,7 +37,10 @@ export default {
},
plugins: [
resolve(),
sass({options: {outputStyle: 'compressed'}}),
sass({
output: 'build/dat.gui.css',
options: {outputStyle: 'compressed'}
}),
babel({
plugins: ['external-helpers'],
exclude: 'node_modules/**'