Skip to content

Commit

Permalink
chore(semantic): configure plugins (webpack#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg authored and dhruvdutt committed Jun 27, 2018
1 parent e26bede commit 8da533e
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ jobs:
- stage: NPM release
if: branch = master
node_js: "lts/*"
script: npm run travis-deploy-once "npm run semantic-release"
script:
- npm run changelog
- npm run travis-deploy-once "npm run semantic-release"
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"use strict";

module.exports = {
extends: ["cz", "@commitlint/config-lerna-scopes"],
extends: ["cz", "@commitlint/config-lerna-scopes", "@commitlint/config-angular"],
rules: {
"body-leading-blank": [1, "always"],
"body-tense": [1, "always", ["present-imperative"]],
Expand Down
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,85 @@
"config": "./.cz-config.js"
}
},
"release": {
"analyzeCommits": {
"preset": "angular",
"releaseRules": [
{
"type": "chore",
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "ast",
"release": "patch"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "break",
"release": "major"
},
{
"type": "cli",
"release": "patch"
},
{
"type": "misc",
"release": "patch"
},
{
"type": "tests",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
}
]
},
"prepare": [
{
"path": "@semantic-release/changelog",
"changelogFile": "CHANGELOG.md"
},
"@semantic-release/npm",
{
"assets": ["package.json", "bin/*.js", "docs"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"generateNotes": {
"preset": "angular",
"writerOpts": {
"commitsSort": [
"subject",
"scope"
]
},
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING",
"break",
"breaking"
]
}
},
"success": [
"@semantic-release/github",
{
"successComment": "Congratulations! :tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release](<github_release_url>). Thank you for contributing to webpack-cli! :blue_heart:"
}
],
"publish": ["@semantic-release/github"]
},
"dependencies": {
"chalk": "^2.4.1",
"cross-spawn": "^6.0.5",
Expand All @@ -108,6 +187,7 @@
},
"devDependencies": {
"@commitlint/cli": "^6.2.0",
"@commitlint/config-angular": "^6.1.3",
"@commitlint/config-lerna-scopes": "^6.1.3",
"@commitlint/prompt-cli": "^6.1.3",
"@commitlint/travis-cli": "^6.2.0",
Expand Down

0 comments on commit 8da533e

Please sign in to comment.