Skip to content

Commit 0f4b365

Browse files
committed
build(npm): add standard-version to handle releases
1 parent 2c7b08a commit 0f4b365

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.versionrc.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
module.exports = {
2+
types: [
3+
{
4+
type: "feat",
5+
section: "Features",
6+
hidden: false,
7+
},
8+
{
9+
type: "fix",
10+
section: "Bug Fixes",
11+
hidden: false,
12+
},
13+
{
14+
type: "perf",
15+
section: "Performance Improvements",
16+
hidden: false,
17+
},
18+
{
19+
type: "revert",
20+
section: "Reverts",
21+
hidden: false,
22+
},
23+
{
24+
type: "docs",
25+
section: "Documentation",
26+
hidden: false,
27+
},
28+
{
29+
type: "style",
30+
section: "Styles",
31+
hidden: true,
32+
},
33+
{
34+
type: "chore",
35+
section: "Miscellaneous Chores",
36+
hidden: true,
37+
},
38+
{
39+
type: "refactor",
40+
section: "Code Refactoring",
41+
hidden: false,
42+
},
43+
{
44+
type: "test",
45+
section: "Tests",
46+
hidden: true,
47+
},
48+
{
49+
type: "build",
50+
section: "Build System",
51+
hidden: false,
52+
},
53+
{
54+
type: "ci",
55+
section: "Continuous Integration",
56+
hidden: false,
57+
},
58+
],
59+
};

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"lint:scripts:fix": "npx eslint --ext .js . --fix",
1414
"test": "npm run test:compile",
1515
"test:compile": "npx gulp compile",
16+
"prerelease": "npm run lint && npm test",
17+
"release": "npx standard-version",
1618
"commit": "npx git cz"
1719
},
1820
"repository": {
@@ -53,6 +55,7 @@
5355
"gulp-eslint": "~6.0.0",
5456
"husky": "^4.3.0",
5557
"prettier": "^2.1.1",
58+
"standard-version": "^9.0.0",
5659
"stylelint": "^13.7.0",
5760
"stylelint-config-coldfront": "^2.0.1"
5861
},

0 commit comments

Comments
 (0)