chore: add release script to simplify versioning

This commit is contained in:
Pat Cavit 2017-03-24 14:19:01 -07:00
parent ad144072b6
commit 9c8cc83643

View file

@ -18,8 +18,9 @@
"test": "node ospec/bin/ospec",
"posttest": "npm run lint || true",
"cover": "istanbul cover --print both ospec/bin/ospec",
"preversion": "npm run build && npm run test",
"version": "npm run gendocs && git add mithril.js mithril.min.js",
"release": "npm version -m 'v%s'",
"preversion": "npm run test",
"version": "npm run build && git add mithril.js mithril.min.js",
"postversion": "git push --follow-tags"
},
"devDependencies": {