aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorAbhi Aiyer <[email protected]>2017-03-09 09:50:20 -0800
committerCharlike Mike Reagent <[email protected]>2017-03-09 19:50:20 +0200
commitd728e9087612c3c3b0dc311a09468ee155b51c1d (patch)
tree7c9266ba29020b7d5f4fdfeeb4689580eb7d4a0a /package.json
parent65274bb7c8b25b3a26149c7c309d45950e0bd3f7 (diff)
Add Standard Version for Semantic Releases (#43)
* chore(release): 1.1.1 * Add Standard-Version to Mitt for git tagging and changelog generation * Remove excess files created in testing * fix(ignoreStandardVersion): Ignore standard version in flowconfig * chore(flow): Ignore node_modules in flow config, add readme about flow-typed, clean up test script * Update README.md * fix(flowTyped): remove flow typed all together
Diffstat (limited to 'package.json')
-rw-r--r--package.json13
1 files changed, 10 insertions, 3 deletions
diff --git a/package.json b/package.json
index a4f4e77..61c0835 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,10 @@
"main": "dist/mitt.js",
"umd:main": "dist/mitt.umd.js",
"scripts": {
- "test": "flow && eslint src test && mocha --compilers js:babel-register test/**/*.js",
+ "bump": "standard-version",
+ "testonly": "mocha --compilers js:babel-register test/**/*.js",
+ "lint": "eslint src test",
+ "test": "flow && npm run lint && npm run testonly",
"build": "npm-run-all clean -p rollup:* -p minify:* -s docs size",
"clean": "rimraf dist && mkdirp dist",
"rollup:cjs": "rollup -c rollup.config.js -m -f cjs -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_main",
@@ -16,7 +19,7 @@
"minify:umd": "uglifyjs $npm_package_umd_main -cm -o $npm_package_umd_main -p relative --in-source-map ${npm_package_umd_main}.map --source-map ${npm_package_umd_main}.map",
"docs": "documentation readme src/index.js --section API -q",
"size": "echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size | pretty-bytes)\"",
- "release": "npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
+ "release": "npm run build -s && npm run bump && git push --follow-tags origin master && npm publish"
},
"repository": "developit/mitt",
"keywords": [
@@ -46,7 +49,10 @@
"expect": true
},
"rules": {
- "semi": [2, "always"]
+ "semi": [
+ 2,
+ "always"
+ ]
}
},
"typings": "./mitt.d.ts",
@@ -72,6 +78,7 @@
"rollup-plugin-flow": "^1.1.1",
"sinon": "^1.17.4",
"sinon-chai": "^2.8.0",
+ "standard-version": "^4.0.0",
"strip-json-comments-cli": "^1.0.1",
"uglify-js": "^2.6.2"
}