Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add watch task #483

Merged
merged 5 commits into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion @commitlint/prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"babel-cli": "6.26.0",
"babel-preset-commitlint": "^7.1.2",
"babel-register": "6.26.0",
"commitizen": "2.9.6",
"commitizen": "3.0.4",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"xo": "0.20.3"
Expand Down
6 changes: 0 additions & 6 deletions @commitlint/rules/src/body-tense.js

This file was deleted.

13 changes: 0 additions & 13 deletions @commitlint/rules/src/body-tense.test.js

This file was deleted.

8 changes: 0 additions & 8 deletions @commitlint/rules/src/footer-tense.js

This file was deleted.

13 changes: 0 additions & 13 deletions @commitlint/rules/src/footer-tense.test.js

This file was deleted.

4 changes: 0 additions & 4 deletions @commitlint/rules/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ export default {
'body-max-length': require('./body-max-length'),
'body-max-line-length': require('./body-max-line-length'),
'body-min-length': require('./body-min-length'),
'body-tense': require('./body-tense'),
'footer-empty': require('./footer-empty'),
'footer-leading-blank': require('./footer-leading-blank'),
'footer-max-length': require('./footer-max-length'),
'footer-max-line-length': require('./footer-max-line-length'),
'footer-min-length': require('./footer-min-length'),
'footer-tense': require('./footer-tense'),
'header-max-length': require('./header-max-length'),
'header-min-length': require('./header-min-length'),
lang: require('./lang'),
'references-empty': require('./references-empty'),
'scope-case': require('./scope-case'),
'scope-empty': require('./scope-empty'),
Expand All @@ -27,7 +24,6 @@ export default {
'subject-full-stop': require('./subject-full-stop'),
'subject-max-length': require('./subject-max-length'),
'subject-min-length': require('./subject-min-length'),
'subject-tense': require('./subject-tense'),
'type-case': require('./type-case'),
'type-empty': require('./type-empty'),
'type-enum': require('./type-enum'),
Expand Down
3 changes: 0 additions & 3 deletions @commitlint/rules/src/lang.js

This file was deleted.

15 changes: 0 additions & 15 deletions @commitlint/rules/src/lang.test.js

This file was deleted.

2 changes: 1 addition & 1 deletion @commitlint/rules/src/subject-empty.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export default (parsed, when) => {

return [
negated ? notEmpty : !notEmpty,
message(['message', negated ? 'may not' : 'must', 'be empty'])
message(['subject', negated ? 'may not' : 'must', 'be empty'])
];
};
2 changes: 1 addition & 1 deletion @commitlint/rules/src/subject-full-stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export default (parsed, when, value) => {

return [
negated ? !hasStop : hasStop,
message(['message', negated ? 'may not' : 'must', 'end with full stop'])
message(['subject', negated ? 'may not' : 'must', 'end with full stop'])
];
};
2 changes: 1 addition & 1 deletion @commitlint/rules/src/subject-max-length.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export default (parsed, when, value) => {

return [
maxLength(input, value),
`footer must not be longer than ${value} characters`
`subject must not be longer than ${value} characters`
];
};
8 changes: 0 additions & 8 deletions @commitlint/rules/src/subject-tense.js

This file was deleted.

13 changes: 0 additions & 13 deletions @commitlint/rules/src/subject-tense.test.js

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ To lint commits before they are created you can use Husky's 'commit-msg' hook:

**Detailed Setup instructions**

* [Local setup](http://marionebl.github.io/commitlint/#/guides-local-setup) - Lint messages on commit with husky
* [CI setup](http://marionebl.github.io/commitlint/#/guides-ci-setup) - Lint messages during CI builds
* [Local setup](https://marionebl.github.io/commitlint/#/guides-local-setup) - Lint messages on commit with husky
* [CI setup](https://marionebl.github.io/commitlint/#/guides-ci-setup) - Lint messages during CI builds


## CLI
Expand Down Expand Up @@ -180,5 +180,5 @@ npx yarn run publish

[10]: https://img.shields.io/npm/v/@commitlint/cli/next.svg?style=flat-square

[11]: http://devtoolscommunity.herokuapp.com/badge.svg?style=flat-square
[12]: http://devtoolscommunity.herokuapp.com
[11]: https://devtoolscommunity.herokuapp.com/badge.svg?style=flat-square
[12]: https://devtoolscommunity.herokuapp.com
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
"license": "MIT",
"scripts": {
"build": "lerna run build --stream --parallel --include-filtered-dependencies",
"watch": "lerna run watch --stream --parallel --include-filtered-dependencies",
"clean": "npx lerna clean --yes && npx lerna run clean --stream --parallel --include-filtered-dependencies",
"commit": "node @commitlint/prompt-cli/cli.js",
"commitmsg": "node @commitlint/cli/lib/cli.js -E GIT_PARAMS",
"deps": "lerna run deps",
"pkg": "lerna run pkg",
"docs": "docsify serve docs",
"lint": "lerna run lint",
"precommit": "lint-staged",
"publish": "lerna publish --conventional-commits",
"reinstall": "yarn clean && yarn install",
"start": "lerna run start --stream --parallel --include-filtered-dependencies",
Expand Down Expand Up @@ -92,7 +91,7 @@
"@marionebl/sander": "0.6.1"
},
"devDependencies": {
"docsify-cli": "4.2.0",
"docsify-cli": "4.2.1",
"eslint": "4.18.1",
"eslint-config-prettier": "2.9.0",
"husky": "1.1.2",
Expand All @@ -101,5 +100,11 @@
"npx": "9.7.1",
"prettier": "1.10.2",
"xo": "0.20.3"
},
"husky": {
"hooks": {
"commit-msg": "node @commitlint/cli/lib/cli.js -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
}
}