File tree 11 files changed +43
-20
lines changed
11 files changed +43
-20
lines changed Original file line number Diff line number Diff line change 8
8
"scripts" : {
9
9
"build" : " exit 0" ,
10
10
"clean" : " exit 0" ,
11
+ "prepublish" : " npm test" ,
11
12
"pretest" : " dep-check" ,
12
- "test " : " ava" ,
13
- "prepublish " : " npm test "
13
+ "start " : " ava --watch --verbose " ,
14
+ "test " : " ava $AVA_VERBOSE "
14
15
},
15
16
"ava" : {
16
17
"files" : [
Original file line number Diff line number Diff line change 3
3
"version" : " 3.1.1" ,
4
4
"description" : " Shareable commitlint config enforcing the angular commit convention" ,
5
5
"scripts" : {
6
+ "clean" : " exit 0" ,
6
7
"pretest" : " dep-check" ,
7
- "test " : " exit 0" ,
8
- "clean " : " exit 0"
8
+ "start " : " exit 0" ,
9
+ "test " : " exit 0"
9
10
},
10
11
"xo" : false ,
11
12
"repository" : {
Original file line number Diff line number Diff line change 4
4
"description" : " Shareable commitlint config enforcing lerna package names as scopes" ,
5
5
"scripts" : {
6
6
"pretest" : " dep-check" ,
7
- "test" : " ava" ,
7
+ "start" : " ava --watch --verbose" ,
8
+ "test" : " ava $AVA_VERBOSE" ,
8
9
"clean" : " exit 0"
9
10
},
10
11
"xo" : false ,
Original file line number Diff line number Diff line change 4
4
"description" : " Lint your commits, patternplate-style" ,
5
5
"scripts" : {
6
6
"pretest" : " dep-check" ,
7
+ "start" : " exit 0" ,
7
8
"test" : " exit 0" ,
8
9
"clean" : " exit 0"
9
10
},
Original file line number Diff line number Diff line change 4
4
"description" : " Lint your commit messages" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
7
- "pretest" : " dep-check" ,
8
- "test" : " ava -c 4" ,
9
7
"build" : " cross-env NODE_ENV=production babel src --out-dir lib --source-maps" ,
10
- "watch" : " babel src --out-dir lib --watch --source-maps" ,
11
8
"clean" : " rimraf lib" ,
12
- "prepublish" : " npm run build"
9
+ "prepublish" : " npm run build" ,
10
+ "pretest" : " dep-check" ,
11
+ "start" : " concurrently \" ava -c 4 --verbose --watch\" \" npm run watch\" " ,
12
+ "test" : " ava -c 4 $AVA_VERBOSE" ,
13
+ "watch" : " babel src --out-dir lib --watch --source-maps"
13
14
},
14
15
"ava" : {
15
16
"files" : [
68
69
"babel-cli" : " ^6.26.0" ,
69
70
"babel-preset-commitlint" : " ^3.2.0" ,
70
71
"babel-register" : " ^6.26.0" ,
72
+ "concurrently" : " ^3.5.0" ,
71
73
"cross-env" : " ^5.0.1" ,
72
74
"denodeify" : " 1.2.1" ,
73
75
"dependency-check" : " 2.7.0" ,
Original file line number Diff line number Diff line change 5
5
"main" : " ./lib/index.js" ,
6
6
"scripts" : {
7
7
"build" : " cross-env NODE_ENV=production babel src --out-dir lib --source-maps" ,
8
- "watch" : " babel src --out-dir lib --watch --source-maps" ,
9
8
"clean" : " rimraf lib" ,
10
9
"commit" : " git-cz" ,
10
+ "prepublish" : " npm run build" ,
11
11
"pretest" : " dep-check" ,
12
- "test" : " ava" ,
13
- "prepublish" : " npm run build"
12
+ "start" : " concurrently \" ava --watch --verbose\" \" npm run watch\" " ,
13
+ "test" : " ava $AVA_VERBOSE" ,
14
+ "watch" : " babel src --out-dir lib --watch --source-maps"
14
15
},
15
16
"ava" : {
16
17
"babel" : " inherit" ,
59
60
"babel-preset-commitlint" : " ^3.2.0" ,
60
61
"babel-register" : " ^6.24.1" ,
61
62
"commitizen" : " ^2.9.6" ,
63
+ "concurrently" : " ^3.5.0" ,
62
64
"cross-env" : " ^5.0.1" ,
63
65
"throat" : " ^4.1.0"
64
66
},
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"pretest" : " dep-check" ,
8
- "test" : " ava"
8
+ "start" : " ava --watch --verbose" ,
9
+ "test" : " ava $AVA_VERBOSE"
9
10
},
10
11
"ava" : {
11
12
"files" : [
Original file line number Diff line number Diff line change 6
6
"private" : true ,
7
7
"scripts" : {
8
8
"pretest" : " dep-check" ,
9
- "test" : " ava -c 4" ,
9
+ "start" : " concurrently \" ava --watch --verbose\" \" npm run watch\" " ,
10
+ "test" : " ava $AVA_VERBOSE" ,
10
11
"build" : " cross-env NODE_ENV=production babel src --out-dir lib --source-maps" ,
11
12
"watch" : " babel src --out-dir lib --watch --source-maps" ,
12
13
"clean" : " rimraf lib" ,
64
65
"babel-cli" : " ^6.26.0" ,
65
66
"babel-preset-commitlint" : " ^3.2.0" ,
66
67
"babel-register" : " ^6.26.0" ,
68
+ "concurrently" : " ^3.5.0" ,
67
69
"cross-env" : " ^5.0.1" ,
68
70
"rimraf" : " 2.6.1"
69
71
}
Original file line number Diff line number Diff line change 8
8
"scripts" : {
9
9
"build" : " exit 0" ,
10
10
"clean" : " exit 0" ,
11
+ "start" : " exit 0" ,
11
12
"test" : " exit 0" ,
12
13
"prepublish" : " npm test"
13
14
},
Original file line number Diff line number Diff line change @@ -84,9 +84,18 @@ Copyright by @marionebl. All `commitlint` packages are released under the MIT li
84
84
``` sh
85
85
git clone
[email protected] :marionebl/commitlint.git
86
86
cd commitlint
87
- npm install
88
- npm start # run tests, again on change
89
- npm run build # run build tasks
87
+ npx npm install
88
+ npx npm start # run tests, again on change
89
+ npx npm run build # run build tasks
90
+ ```
91
+
92
+ ### Publishing a release
93
+
94
+ ``` sh
95
+ npx npm run clean
96
+ npx npm install
97
+ npx npm test
98
+ npx npm run publish
90
99
```
91
100
92
101
Original file line number Diff line number Diff line change 5
5
"version" : " 1.0.0" ,
6
6
"license" : " MIT" ,
7
7
"scripts" : {
8
- "clean" : " lerna clean --yes && lerna run clean" ,
8
+ "build" : " lerna run build --stream --parallel --include-filtered-dependencies" ,
9
+ "clean" : " lerna clean --yes && lerna run clean --stream --parallel --include-filtered-dependencies" ,
9
10
"commit" : " ./@commitlint/prompt-cli/cli.js" ,
10
11
"commitmsg" : " ./@commitlint/cli/cli.js -e" ,
11
12
"docs" : " docsify serve docs" ,
12
13
"postinstall" : " lerna bootstrap" ,
13
14
"precommit" : " lint-staged" ,
14
15
"pretest" : " xo" ,
15
- "reinstall" : " npm run clean && npm install" ,
16
16
"publish" : " lerna publish --conventional-commits" ,
17
- "test" : " lerna run test" ,
17
+ "reinstall" : " npm run clean && npm install" ,
18
+ "start" : " lerna run start --stream --parallel --include-filtered-dependencies" ,
19
+ "test" : " AVA_VERBOSE=--verbose lerna run test --stream --parallel --include-filtered-dependencies" ,
18
20
"travis" : " trevor"
19
21
},
20
22
"lint-staged" : {
You can’t perform that action at this time.
0 commit comments