1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

Merge pull request #470 from bufferoverflow/chore/commitlint

chore(lint): use commitlint as part of lint
This commit is contained in:
Juan Picado @jotadeveloper 2018-01-22 07:37:50 +01:00 committed by GitHub
commit 7a6ea9652d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 2 deletions

@ -6,6 +6,6 @@ node_js:
- 'lts/*'
script:
- npm install
- echo commitlint-travis
- commitlint-travis
- npm run pre:ci
- npm run test

@ -185,6 +185,7 @@ fix: xxxxxxxxxx
Commits types as `docs:`,`style:`,`refactor:`,`perf:`,`test:` and `chore:` are valid but has no effect on versioning, but, it would be great if you use them.
Use `npm run commitmsg` to check your commit message.
### 5. Rebase and Push Changes

@ -48,6 +48,9 @@
"unix-crypt-td-js": "^1.0.0"
},
"devDependencies": {
"@commitlint/cli": "^6.0.2",
"@commitlint/config-conventional": "^6.0.2",
"@commitlint/travis-cli": "^6.0.2",
"@verdaccio/types": "0.2.0",
"axios": "0.17.1",
"babel-cli": "6.26.0",
@ -93,6 +96,7 @@
"friendly-errors-webpack-plugin": "1.6.1",
"github-markdown-css": "2.10.0",
"html-webpack-plugin": "2.30.1",
"husky": "^0.14.3",
"identity-obj-proxy": "3.0.0",
"in-publish": "2.0.0",
"jest": "22.1.1",
@ -142,6 +146,7 @@
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test jest '(/test/unit.*\\.spec|/test/webui/.*\\.spec)\\.js' --maxWorkers 2",
"test:func": "cross-env NODE_ENV=test BABEL_ENV=test jest '(/test/functional.*\\.func)\\.js' --maxWorkers 2",
"pre:ci": "npm run lint && npm run build:webui",
"commitmsg": "commitlint -e $GIT_PARAMS",
"coverage:publish": "codecov",
"lint": "npm run flow && eslint .",
"lint:css": "stylelint 'src/**/*.scss' --syntax scss",
@ -161,5 +166,10 @@
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"license": "MIT"
"license": "MIT",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}

BIN
yarn.lock

Binary file not shown.