Skip to content

Commit

Permalink
chore: configure commit linting and generated changelogs (#350)
Browse files Browse the repository at this point in the history
* chore: configure conventional-changelog and standard-version

* chore(ci): use commitlint-travis on travis

* chore(ci): build master and prs only on appveyor
  • Loading branch information
mzgoddard committed May 27, 2018
1 parent 0b8e668 commit 930563c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -7,6 +7,8 @@ matrix:
include:
- node_js: node
env: NPM_SCRIPT=lint
- node_js: node
env: NPM_SCRIPT=commitlint-travis
- node_js: node
env: NPM_INSTALL_EXTRA="webpack@4 file-loader@1 html-webpack-plugin@3.2.0"
- node_js: 8
Expand Down
4 changes: 4 additions & 0 deletions appveyor.yml
Expand Up @@ -36,3 +36,7 @@ test_script:

# Don't actually build.
build: off

branches:
only:
- master
7 changes: 7 additions & 0 deletions package.json
Expand Up @@ -23,13 +23,18 @@
"url": "https://github.com/mzgoddard/hard-source-webpack-plugin/issues"
},
"scripts": {
"commitmsg": "commitlint -e $GIT_PARAMS",
"commitlint-travis": "commitlint-travis",
"lint": "prettier --list-different --single-quote --trailing-comma all {index.js,lib/*.js,lib/util/*.js,test/*.js,test/*/*.js,bin/*.js}",
"lint:fix": "prettier --write --single-quote --trailing-comma all {index.js,lib/*.js,lib/util/*.js,test/*.js,test/*/*.js,bin/*.js}",
"test": "NODE_ENV=test mocha tests/*.js"
},
"author": "Michael \"Z\" Goddard <mzgoddard@gmail.com>",
"license": "ISC",
"devDependencies": {
"@commitlint/cli": "^6.2.0",
"@commitlint/config-conventional": "^6.1.3",
"@commitlint/travis-cli": "^6.2.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1",
Expand All @@ -39,12 +44,14 @@
"extract-text-webpack-plugin": "^3.0.0 || ^2.0.0 || ^1.0.1",
"file-loader": "^1.0.0 || ^0.11.0 || ^0.10.1",
"html-webpack-plugin": "^3.2.0 || ^2.22.0",
"husky": "^0.14.3",
"level": "^4.0.0",
"memory-fs": "^0.4.1",
"mini-css-extract-plugin": "^0.4.0",
"mocha": "^3.0.2",
"prettier": "^1.12.1",
"source-map": "^0.5.6",
"standard-version": "^4.4.0",
"style-loader": "^0.14.0",
"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",
"webpack-cli": "^2.1.4",
Expand Down

0 comments on commit 930563c

Please sign in to comment.