Skip to content

Commit cf0c3ec

Browse files
authored
ci: process only changed packages
* ci: encapsulate modules further * ci: use available env vars * fix: remove extraneous xo dep
1 parent 8612eb3 commit cf0c3ec

File tree

16 files changed

+7454
-35
lines changed

16 files changed

+7454
-35
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ node_js:
66
install:
77
- npm install -g npx
88
- npx yarn install
9-
- npx lerna bootstrap
9+
- npx lerna bootstrap --since $TRAVIS_BRANCH --include-filtered-dependencies --stream
1010
- npm --version
1111
- yarn --version
1212
- npx --version
1313
script:
14-
- npx yarn build
15-
- npx yarn test
14+
- npx yarn build --since $TRAVIS_BRANCH --include-filtered-dependencies --stream
15+
- npx yarn lint --since $TRAVIS_BRANCH --include-filtered-dependencies --stream
16+
- npx yarn deps --since $TRAVIS_BRANCH --include-filtered-dependencies --stream
17+
- npx yarn test --since $TRAVIS_BRANCH --include-filtered-dependencies --stream

@commitlint/cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"scripts": {
99
"build": "npx cross-env NODE_ENV=production npx -p babel-cli babel src --out-dir lib --source-maps",
1010
"clean": "npx rimraf lib",
11-
"prestart": "dep-check && npx yarn run build",
12-
"pretest": "dep-check && npx yarn run build",
11+
"deps": "dep-check",
12+
"lint": "npx xo",
1313
"start": "npx concurrently \"npx ava -c 4 --verbose --watch\" \"npx yarn run watch\"",
1414
"test": "npx ava -c 4 --verbose",
1515
"watch": "npx -p babel-cli babel src --out-dir lib --watch --source-maps"

@commitlint/config-angular-type-enum/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Shareable commitlint config enforcing the angular commit convention types",
55
"scripts": {
66
"clean": "exit 0",
7-
"pretest": "dep-check",
7+
"deps": "dep-check",
8+
"lint": "npx xo",
89
"start": "exit 0",
910
"test": "exit 0"
1011
},
@@ -26,6 +27,7 @@
2627
},
2728
"homepage": "https://github.com/marionebl/commitlint#readme",
2829
"devDependencies": {
29-
"@commitlint/utils": "^4.2.1"
30+
"@commitlint/utils": "^4.2.1",
31+
"xo": "^0.18.2"
3032
}
3133
}

@commitlint/config-angular/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Shareable commitlint config enforcing the angular commit convention",
55
"scripts": {
66
"clean": "exit 0",
7-
"pretest": "dep-check",
7+
"deps": "dep-check",
8+
"lint": "npx xo",
89
"start": "exit 0",
910
"test": "exit 0"
1011
},

@commitlint/config-lerna-scopes/package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"version": "5.0.0",
44
"description": "Shareable commitlint config enforcing lerna package names as scopes",
55
"scripts": {
6+
"clean": "exit 0",
7+
"lint": "npx xo",
68
"start": "npx ava --watch --verbose",
7-
"test": "npx ava --verbose",
8-
"clean": "exit 0"
9+
"test": "npx ava --verbose"
910
},
1011
"xo": false,
1112
"ava": {
@@ -39,6 +40,7 @@
3940
},
4041
"devDependencies": {
4142
"@commitlint/test": "^4.3.0",
42-
"ava": "^0.22.0"
43+
"ava": "^0.22.0",
44+
"xo": "^0.18.2"
4345
}
4446
}

@commitlint/config-patternplate/package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"version": "5.0.0",
44
"description": "Lint your commits, patternplate-style",
55
"scripts": {
6-
"pretest": "dep-check",
6+
"clean": "exit 0",
7+
"deps": "dep-check",
8+
"lint": "npx xo",
79
"start": "exit 0",
8-
"test": "exit 0",
9-
"clean": "exit 0"
10+
"test": "exit 0"
1011
},
1112
"xo": false,
1213
"repository": {
@@ -31,6 +32,7 @@
3132
"lodash": "^4.5.1"
3233
},
3334
"devDependencies": {
34-
"@commitlint/utils": "^4.2.1"
35+
"@commitlint/utils": "^4.2.1",
36+
"xo": "^0.18.2"
3537
}
3638
}

@commitlint/core/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"build": "npx cross-env NODE_ENV=production npx -p babel-cli babel src --out-dir lib --source-maps",
88
"clean": "npx rimraf lib",
9-
"pretest": "dep-check",
9+
"deps": "dep-check",
10+
"lint": "npx xo",
1011
"start": "npx concurrently \"npx ava -c 4 --verbose --watch\" \"npx yarn run watch\"",
1112
"test": "npx ava -c 4 --verbose && npx ava \"src/*.serial-test.js\" --verbose",
1213
"watch": "npx -p babel-cli babel src --out-dir lib --watch --source-maps"

@commitlint/prompt-cli/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"scripts": {
99
"clean": "npx rimraf lib",
1010
"commit": "$npm_package_bin_commit",
11-
"pretest": "dep-check"
11+
"deps": "dep-check",
12+
"lint": "npx xo"
1213
},
1314
"xo": false,
1415
"repository": {
@@ -26,7 +27,8 @@
2627
},
2728
"homepage": "https://github.com/marionebl/commitlint#readme",
2829
"devDependencies": {
29-
"@commitlint/utils": "^4.2.1"
30+
"@commitlint/utils": "^4.2.1",
31+
"xo": "^0.18.2"
3032
},
3133
"dependencies": {
3234
"@commitlint/prompt": "^5.0.0",

@commitlint/prompt/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "npx cross-env NODE_ENV=production npx -p babel-cli babel src --out-dir lib --source-maps",
88
"clean": "npx rimraf lib",
99
"commit": "npx git-cz",
10-
"pretest": "dep-check",
10+
"deps": "dep-check",
11+
"lint": "npx xo",
1112
"start": "npx concurrently \"npx ava --watch --verbose\" \"npx yarn run watch\"",
1213
"test": "npx ava --verbose",
1314
"watch": "npx -p babel-cli babel src --out-dir lib --watch --source-maps"
@@ -61,7 +62,8 @@
6162
"commitizen": "^2.9.6",
6263
"concurrently": "^3.5.0",
6364
"cross-env": "^5.0.1",
64-
"throat": "^4.1.0"
65+
"throat": "^4.1.0",
66+
"xo": "^0.18.2"
6567
},
6668
"dependencies": {
6769
"@commitlint/core": "^5.0.0",

@packages/babel-preset-commitlint/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Lint your commit messages",
55
"main": "index.js",
66
"scripts": {
7-
"pretest": "dep-check",
7+
"deps": "dep-check",
8+
"lint": "npx xo",
89
"start": "npx ava --watch --verbose",
910
"test": "npx ava --verbose"
1011
},
@@ -48,7 +49,8 @@
4849
"devDependencies": {
4950
"@commitlint/utils": "^4.2.1",
5051
"ava": "^0.22.0",
51-
"babel-core": "^6.26.0"
52+
"babel-core": "^6.26.0",
53+
"xo": "^0.18.2"
5254
},
5355
"dependencies": {
5456
"babel-plugin-add-module-exports": "^0.2.1",

0 commit comments

Comments
 (0)