mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Add postversion script to push to npm after version releases.
This commit is contained in:
parent
2659494a80
commit
454e2dc524
25
package.json
25
package.json
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user