Skip to content

Commit 930563c

Browse files
authored
chore: configure commit linting and generated changelogs (mzgoddard#350)
* chore: configure conventional-changelog and standard-version * chore(ci): use commitlint-travis on travis * chore(ci): build master and prs only on appveyor
1 parent 0b8e668 commit 930563c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ matrix:
77
include:
88
- node_js: node
99
env: NPM_SCRIPT=lint
10+
- node_js: node
11+
env: NPM_SCRIPT=commitlint-travis
1012
- node_js: node
1113
env: NPM_INSTALL_EXTRA="webpack@4 file-loader@1 html-webpack-plugin@3.2.0"
1214
- node_js: 8

appveyor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ test_script:
3636

3737
# Don't actually build.
3838
build: off
39+
40+
branches:
41+
only:
42+
- master

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@
2323
"url": "https://github.com/mzgoddard/hard-source-webpack-plugin/issues"
2424
},
2525
"scripts": {
26+
"commitmsg": "commitlint -e $GIT_PARAMS",
27+
"commitlint-travis": "commitlint-travis",
2628
"lint": "prettier --list-different --single-quote --trailing-comma all {index.js,lib/*.js,lib/util/*.js,test/*.js,test/*/*.js,bin/*.js}",
2729
"lint:fix": "prettier --write --single-quote --trailing-comma all {index.js,lib/*.js,lib/util/*.js,test/*.js,test/*/*.js,bin/*.js}",
2830
"test": "NODE_ENV=test mocha tests/*.js"
2931
},
3032
"author": "Michael \"Z\" Goddard <mzgoddard@gmail.com>",
3133
"license": "ISC",
3234
"devDependencies": {
35+
"@commitlint/cli": "^6.2.0",
36+
"@commitlint/config-conventional": "^6.1.3",
37+
"@commitlint/travis-cli": "^6.2.0",
3338
"babel-core": "^6.26.0",
3439
"babel-loader": "^7.1.4",
3540
"babel-preset-env": "^1.6.1",
@@ -39,12 +44,14 @@
3944
"extract-text-webpack-plugin": "^3.0.0 || ^2.0.0 || ^1.0.1",
4045
"file-loader": "^1.0.0 || ^0.11.0 || ^0.10.1",
4146
"html-webpack-plugin": "^3.2.0 || ^2.22.0",
47+
"husky": "^0.14.3",
4248
"level": "^4.0.0",
4349
"memory-fs": "^0.4.1",
4450
"mini-css-extract-plugin": "^0.4.0",
4551
"mocha": "^3.0.2",
4652
"prettier": "^1.12.1",
4753
"source-map": "^0.5.6",
54+
"standard-version": "^4.4.0",
4855
"style-loader": "^0.14.0",
4956
"webpack": "^4.0.0 || ^4.0.0-beta.* || ^3.8.1 || ^3.0.0 || ^3.0.0-rc.0 || ^2.1.0 || ^1.13.1",
5057
"webpack-cli": "^2.1.4",

0 commit comments

Comments
 (0)