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": "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", "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", "lint": "eslint src",
"version": "npm run build && git add -A build",
"postversion": "git push && git push --tags && npm publish" "postversion": "git push && git push --tags && npm publish"
}, },
"repository": { "repository": {

View File

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