feat: automatically generate changelog after version bump

Fixes #23
This commit is contained in:
Karl-Philipp Wulfert
2019-05-28 16:00:51 +02:00
parent 048a067ab7
commit cbee9b888c
2 changed files with 4 additions and 0 deletions

View File

@@ -9,6 +9,8 @@
"documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src", "documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src",
"install": "node lib/cli.js -p $INIT_CWD || true", "install": "node lib/cli.js -p $INIT_CWD || true",
"prepublishOnly": "npm ci && npm run build", "prepublishOnly": "npm ci && npm run build",
"postversion": "npm run changelog && git push && git push origin \"v$npm_package_version\"",
"preversion": "npm run prepublishOnly",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'" "tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
}, },

View File

@@ -682,6 +682,8 @@ export function getRules(configuration: Configuration): Rules {
/* tslint:disable-next-line:max-line-length */ /* tslint:disable-next-line:max-line-length */
changelog: 'conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m \'docs: update changelog\'', changelog: 'conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m \'docs: update changelog\'',
'check-configuration': 'openstapps-configuration', 'check-configuration': 'openstapps-configuration',
postversion: 'npm run changelog && git push && git push origin "v$npm_package_version"',
preversion: 'npm run prepublishOnly',
tslint: 'tslint -p tsconfig.json -c tslint.json \'src/**/*.ts\'', tslint: 'tslint -p tsconfig.json -c tslint.json \'src/**/*.ts\'',
}; };