diff --git a/package.json b/package.json index 32bf6a9..e7605ca 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,12 @@ "description": "A simple form helper for mobx", "main": "lib/FormModel.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "check": "echo \"TODO: add tests\" && exit 0", + "pre-v": "npm run check", + "post-v": "npm run do-changelog && git push --no-verify && git push --tags --no-verify", + "bump-major": "npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v", + "bump-minor": "npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v", + "bump-patch": "npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v", "build": "babel src/ -d lib/" }, "repository": { @@ -26,6 +31,18 @@ "coalescy": "^1.0.0", "debouncy": "^1.0.7" }, + "changelogx": { + "ignoreRegExp": [ + "BLD: Release", + "DOC: Generate Changelog", + "Generated Changelog" + ], + "issueIDRegExp": "#(\\d+)", + "commitURL": "https://github.com/royriojas/mobx-form/commit/{0}", + "authorURL": "https://github.com/{0}", + "issueIDURL": "https://github.com/royriojas/mobx-form/issues/{0}", + "projectName": "mobx-form" + }, "devDependencies": { "babel-cli": "^6.10.1", "babel-plugin-add-module-exports": "^0.2.1", @@ -34,6 +51,7 @@ "babel-preset-es2015": "^6.9.0", "babel-preset-react": "^6.5.0", "babel-preset-stage-0": "^6.5.0", + "changelogx": "^1.0.19", "mobx": "^2.3.1" } }