From 454e2dc5248152b5fbc326ae5be454a1d35d1c98 Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Fri, 8 Dec 2017 15:45:08 -0800 Subject: [PATCH] Add postversion script to push to npm after version releases. --- package.json | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7f41463..53db8df 100644 --- a/package.json +++ b/package.json @@ -8,16 +8,33 @@ }, "browserify": { "transform": [ - ["babelify", { "presets": ["es2015"] }], - ["stringify", { "extensions": [".html"] }], - ["sassify"] + [ + "babelify", + { + "presets": [ + "es2015" + ] + } + ], + [ + "stringify", + { + "extensions": [ + ".html" + ] + } + ], + [ + "sassify" + ] ] }, "scripts": { "dev": "webpack --progress --colors --watch --config webpack/webpack.config.js --devtool sourcemap", "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-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": { "type": "git",