File tree Expand file tree Collapse file tree 16 files changed +7460
-55
lines changed Expand file tree Collapse file tree 16 files changed +7460
-55
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,13 @@ node_js:
3
3
- ' 8'
4
4
- ' 6'
5
5
- ' 4'
6
+ install :
7
+ - npm install -g npx
8
+ - npx yarn install
9
+ - npx lerna bootstrap
10
+ - npm --version
11
+ - yarn --version
12
+ - npx --version
13
+ script :
14
+ - npx yarn build
15
+ - npx yarn test
Original file line number Diff line number Diff line change
1
+ workspaces-experimental "true"
2
+ registry "https://registry.npmjs.org/"
Original file line number Diff line number Diff line change 6
6
"commitlint" : " ./lib/cli.js"
7
7
},
8
8
"scripts" : {
9
- "build" : " cross-env NODE_ENV=production babel src --out-dir lib --source-maps" ,
10
- "clean" : " rimraf lib" ,
11
- "prepublish" : " npm run build" ,
12
- "prestart" : " dep-check && npm run build" ,
13
- "pretest" : " dep-check && npm run build" ,
14
- "start" : " concurrently \" ava -c 4 --verbose --watch\" \" npm run watch\" " ,
15
- "test" : " ava -c 4 $AVA_VERBOSE" ,
16
- "watch" : " babel src --out-dir lib --watch --source-maps"
9
+ "build" : " npx cross-env NODE_ENV=production npx babel src --out-dir lib --source-maps" ,
10
+ "clean" : " npx rimraf lib" ,
11
+ "prestart" : " dep-check && npx yarn run build" ,
12
+ "pretest" : " dep-check && npx yarn run build" ,
13
+ "start" : " npx concurrently \" npx ava -c 4 --verbose --watch\" \" npx yarn run watch\" " ,
14
+ "test" : " npx ava -c 4 $AVA_VERBOSE" ,
15
+ "watch" : " npx babel src --out-dir lib --watch --source-maps"
17
16
},
18
17
"ava" : {
19
18
"files" : [
Original file line number Diff line number Diff line change 3
3
"version" : " 4.2.0" ,
4
4
"description" : " Shareable commitlint config enforcing lerna package names as scopes" ,
5
5
"scripts" : {
6
- "pretest" : " dep-check" ,
7
- "start" : " ava --watch --verbose" ,
8
- "test" : " ava $AVA_VERBOSE" ,
6
+ "start" : " npx ava --watch --verbose" ,
7
+ "test" : " npx ava $AVA_VERBOSE" ,
9
8
"clean" : " exit 0"
10
9
},
11
10
"xo" : false ,
40
39
},
41
40
"devDependencies" : {
42
41
"@commitlint/test" : " ^4.2.0" ,
43
- "@commitlint/utils" : " ^4.2.0" ,
44
42
"ava" : " ^0.22.0"
45
43
}
46
44
}
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
- "build" : " cross-env NODE_ENV=production babel src --out-dir lib --source-maps" ,
8
- "clean" : " rimraf lib" ,
9
- "prepublish" : " npm run build" ,
7
+ "build" : " npx cross-env NODE_ENV=production npx babel src --out-dir lib --source-maps" ,
8
+ "clean" : " npx rimraf lib" ,
10
9
"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"
10
+ "start" : " npx concurrently \" npx ava -c 4 --verbose --watch\" \" npx yarn run watch\" " ,
11
+ "test" : " npx ava -c 4 $AVA_VERBOSE" ,
12
+ "watch" : " npx babel src --out-dir lib --watch --source-maps"
14
13
},
15
14
"ava" : {
16
15
"files" : [
Original file line number Diff line number Diff line change 6
6
"commit" : " ./cli.js"
7
7
},
8
8
"scripts" : {
9
- "clean" : " rimraf lib" ,
9
+ "clean" : " npx rimraf lib" ,
10
10
"commit" : " $npm_package_bin_commit" ,
11
11
"pretest" : " dep-check"
12
12
},
Original file line number Diff line number Diff line change 4
4
"description" : " commitizen prompt using commitlint.config.js" ,
5
5
"main" : " ./lib/index.js" ,
6
6
"scripts" : {
7
- "build" : " cross-env NODE_ENV=production babel src --out-dir lib --source-maps" ,
8
- "clean" : " rimraf lib" ,
9
- "commit" : " git-cz" ,
10
- "prepublish" : " npm run build" ,
7
+ "build" : " npx cross-env NODE_ENV=production npx babel src --out-dir lib --source-maps" ,
8
+ "clean" : " npx rimraf lib" ,
9
+ "commit" : " npx git-cz" ,
11
10
"pretest" : " dep-check" ,
12
- "start" : " concurrently \" ava --watch --verbose\" \" npm run watch\" " ,
13
- "test" : " ava $AVA_VERBOSE" ,
14
- "watch" : " babel src --out-dir lib --watch --source-maps"
11
+ "start" : " npx concurrently \" npx ava --watch --verbose\" \" npx yarn run watch\" " ,
12
+ "test" : " npx ava $AVA_VERBOSE" ,
13
+ "watch" : " npx babel src --out-dir lib --watch --source-maps"
15
14
},
16
15
"ava" : {
17
16
"babel" : " inherit" ,
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"pretest" : " dep-check" ,
8
- "start" : " ava --watch --verbose" ,
9
- "test" : " ava $AVA_VERBOSE"
8
+ "start" : " npx ava --watch --verbose" ,
9
+ "test" : " npx ava $AVA_VERBOSE"
10
10
},
11
11
"ava" : {
12
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
- "start" : " concurrently \" ava --watch --verbose\" \" npm run watch\" " ,
10
- "test" : " ava $AVA_VERBOSE" ,
11
- "build" : " cross-env NODE_ENV=production babel src --out-dir lib --source-maps" ,
12
- "watch" : " babel src --out-dir lib --watch --source-maps" ,
13
- "clean" : " rimraf lib" ,
14
- "prepublish" : " npm run build"
9
+ "start" : " npx concurrently \" npx ava --watch --verbose\" \" npx yarn run watch\" " ,
10
+ "test" : " npx ava $AVA_VERBOSE" ,
11
+ "build" : " npx cross-env NODE_ENV=production npx babel src --out-dir lib --source-maps" ,
12
+ "watch" : " npx babel src --out-dir lib --watch --source-maps" ,
13
+ "clean" : " npx rimraf lib"
15
14
},
16
15
"ava" : {
17
16
"files" : [
Original file line number Diff line number Diff line change 9
9
"build" : " exit 0" ,
10
10
"clean" : " exit 0" ,
11
11
"start" : " exit 0" ,
12
- "test" : " exit 0" ,
13
- "prepublish" : " npm test"
12
+ "test" : " exit 0"
14
13
},
15
14
"ava" : {
16
15
"files" : [
Original file line number Diff line number Diff line change @@ -84,18 +84,19 @@ 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
- npx npm install
88
- npx npm start # run tests, again on change
89
- npx npm run build # run build tasks
87
+ npx yarn install
88
+ npx yarn run build # run build tasks
89
+ npx yarn start # run tests, again on change
90
90
```
91
91
92
92
### Publishing a release
93
93
94
94
``` sh
95
- npx npm run clean
96
- npx npm install
97
- npx npm test
98
- npx npm run publish
95
+ npx yarn run clean
96
+ npx yarn install
97
+ npx yarn run build
98
+ npx yarn test
99
+ npx yarn run publish
99
100
```
100
101
101
102
Original file line number Diff line number Diff line change @@ -5,12 +5,16 @@ install:
5
5
- ps : Install-Product node $env:nodejs_version
6
6
- set CI=true
7
7
- set PATH=%APPDATA%\npm;%PATH%
8
- - npm install
8
+ - npm install -g npx
9
+ - npx yarn install
10
+ - npx lerna bootstrap
11
+ - npm --version
12
+ - yarn --version
13
+ - npx --version
9
14
matrix :
10
15
fast_finish : true
11
16
build : off
12
17
version : ' {build}'
13
18
test_script :
14
- - node --version
15
- - npm --version
16
- - npm test
19
+ - npx yarn build
20
+ - npx yarn test
Original file line number Diff line number Diff line change 1
1
{
2
2
"lerna" : " 2.0.0" ,
3
- "packages" : [
4
- " @alias/*" ,
5
- " @commitlint/*" ,
6
- " @packages/*"
7
- ],
3
+ "npmClient" : " yarn" ,
4
+ "useWorkspaces" : true ,
8
5
"version" : " 4.2.0"
9
6
}
Original file line number Diff line number Diff line change 10
10
"commit" : " npx -p @commitlint/prompt-cli commit" ,
11
11
"commitmsg" : " npx commitlint -e $GIT_PARAMS" ,
12
12
"docs" : " npx docsify serve docs" ,
13
- "postinstall" : " npx lerna bootstrap" ,
14
13
"precommit" : " lint-staged" ,
15
14
"pretest" : " npx xo" ,
16
15
"publish" : " npx lerna publish --conventional-commits" ,
39
38
"ava/no-ignored-test-files" : " off"
40
39
}
41
40
},
41
+ "workspaces" : [
42
+ " @alias/*" ,
43
+ " @commitlint/*" ,
44
+ " @packages/*"
45
+ ],
42
46
"engines" : {
43
47
"node" : " >=4"
44
48
},
67
71
},
68
72
"devDependencies" : {
69
73
"docsify-cli" : " ^4.1.8" ,
74
+ "eslint" : " ^4.8.0" ,
70
75
"eslint-config-prettier" : " ^2.3.0" ,
71
76
"husky" : " ^0.14.3" ,
72
- "lerna" : " ^2.0 .0" ,
77
+ "lerna" : " ^2.4 .0" ,
73
78
"lint-staged" : " ^4.0.1" ,
74
79
"npx" : " ^9.6.0" ,
75
80
"prettier" : " ^1.5.2" ,
76
81
"trevor" : " ^2.3.0" ,
77
- "xo" : " ^0.18.2"
82
+ "xo" : " ^0.18.2" ,
83
+ "yarn" : " ^1.2.1"
78
84
}
79
85
}
You can’t perform that action at this time.
0 commit comments