Add postversion script to push to npm after version releases.

This commit is contained in:
Don McCurdy 2017-12-08 15:45:08 -08:00
parent 2659494a80
commit 454e2dc524

View File

@ -8,16 +8,33 @@
}, },
"browserify": { "browserify": {
"transform": [ "transform": [
["babelify", { "presets": ["es2015"] }], [
["stringify", { "extensions": [".html"] }], "babelify",
["sassify"] {
"presets": [
"es2015"
]
}
],
[
"stringify",
{
"extensions": [
".html"
]
}
],
[
"sassify"
]
] ]
}, },
"scripts": { "scripts": {
"dev": "webpack --progress --colors --watch --config webpack/webpack.config.js --devtool sourcemap", "dev": "webpack --progress --colors --watch --config webpack/webpack.config.js --devtool sourcemap",
"build": "npm run build-js && npm run build-css", "build": "npm run build-js && npm run build-css",
"build-js": "webpack --config ./webpack/webpack.config.js --devtool sourcemap && webpack --config ./webpack/webpack.config.min.js", "build-js": "webpack --config ./webpack/webpack.config.js --devtool sourcemap && webpack --config ./webpack/webpack.config.min.js",
"build-css": "node-sass src/dat/gui/style.scss build/dat.gui.css" "build-css": "node-sass src/dat/gui/style.scss build/dat.gui.css",
"postversion": "git push && git push --tags && npm publish"
}, },
"repository": { "repository": {
"type": "git", "type": "git",