Skip to content

Commit d728e90

Browse files
abhiaiyer91tunnckoCore
authored andcommitted
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
1 parent 65274bb commit d728e90

File tree

5 files changed

+391
-17
lines changed

5 files changed

+391
-17
lines changed

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[ignore]
2+
.*/node_modules/.*
23

34
[include]
45

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
/node_modules
44
/npm-debug.log
55
.DS_Store
6+
.idea/
7+
flow-typed/

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refer
137137
First off, thanks for taking the time to contribute!
138138
Now, take a moment to be sure your contributions make sense to everyone else.
139139

140+
Development Start:
141+
142+
This project is typed with Flow Type annotations. To ensure you have the proper typings for this project run
143+
144+
`flow-typed install`
145+
140146
### Reporting Issues
141147

142148
Found a problem? Want a new feature? First of all see if your issue or idea has [already been reported](../../issues).

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"main": "dist/mitt.js",
88
"umd:main": "dist/mitt.umd.js",
99
"scripts": {
10-
"test": "flow && eslint src test && mocha --compilers js:babel-register test/**/*.js",
10+
"bump": "standard-version",
11+
"testonly": "mocha --compilers js:babel-register test/**/*.js",
12+
"lint": "eslint src test",
13+
"test": "flow && npm run lint && npm run testonly",
1114
"build": "npm-run-all clean -p rollup:* -p minify:* -s docs size",
1215
"clean": "rimraf dist && mkdirp dist",
1316
"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 @@
1619
"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",
1720
"docs": "documentation readme src/index.js --section API -q",
1821
"size": "echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size | pretty-bytes)\"",
19-
"release": "npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
22+
"release": "npm run build -s && npm run bump && git push --follow-tags origin master && npm publish"
2023
},
2124
"repository": "developit/mitt",
2225
"keywords": [
@@ -46,7 +49,10 @@
4649
"expect": true
4750
},
4851
"rules": {
49-
"semi": [2, "always"]
52+
"semi": [
53+
2,
54+
"always"
55+
]
5056
}
5157
},
5258
"typings": "./mitt.d.ts",
@@ -72,6 +78,7 @@
7278
"rollup-plugin-flow": "^1.1.1",
7379
"sinon": "^1.17.4",
7480
"sinon-chai": "^2.8.0",
81+
"standard-version": "^4.0.0",
7582
"strip-json-comments-cli": "^1.0.1",
7683
"uglify-js": "^2.6.2"
7784
}

0 commit comments

Comments
 (0)