Skip to content

Commit

Permalink
build(npm): add standard-version
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDJM committed Dec 10, 2019
1 parent 0061c59 commit 4d8a7ef
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 2 deletions.
58 changes: 58 additions & 0 deletions .versionrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
module.exports = {
types: [{
type: "feat",
section: "Features",
hidden: false
},
{
type: "fix",
section: "Bug Fixes",
hidden: false
},
{
type: "perf",
section: "Performance Improvements",
hidden: false
},
{
type: "revert",
section: "Reverts",
hidden: false
},
{
type: "docs",
section: "Documentation",
hidden: false
},
{
type: "style",
section: "Styles",
hidden: true
},
{
type: "chore",
section: "Miscellaneous Chores",
hidden: true
},
{
type: "refactor",
section: "Code Refactoring",
hidden: false
},
{
type: "test",
section: "Tests",
hidden: true
},
{
type: "build",
section: "Build System",
hidden: false
},
{
type: "ci",
section: "Continuous Integration",
hidden: false
}
]
}
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"scripts": {
"commit": "npx git cz",
"lint": "npx eslint --ext .js --ignore-path .gitignore .",
"fix": "npm run lint -- --fix"
"fix": "npm run lint -- --fix",
"prerelease": "npm run lint",
"release": "npx standard-version"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -37,6 +39,10 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^3.1.0",
"prettier": "^1.19.1"
"prettier": "^1.19.1",
"standard-version": "^7.1.0"
},
"peerDependencies": {
"standard-version": "^7.1.0"
}
}

0 comments on commit 4d8a7ef

Please sign in to comment.