Skip to content

Commit 3e6e6a8

Browse files
authored
feat(travis-cli): add reusable travis command line interface
* related #99
1 parent ee6ec6e commit 3e6e6a8

File tree

22 files changed

+431
-50
lines changed

22 files changed

+431
-50
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ insert_final_newline = true
44
trim_trailing_whitespace = true
55
indent_style = tab
66

7-
[{.*rc,*.yml,*.md,package.json,*.svg}]
7+
[{.*rc,*.yml,*.md,package.json,lerna.json,*.svg}]
88
indent_style = space
99

1010
[*.md]

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ node_js:
66
install:
77
- npm install -g npx
88
- npx yarn install
9-
- npx lerna bootstrap --since $TRAVIS_BRANCH --include-filtered-dependencies --stream
9+
- npx lerna bootstrap
1010
- npm --version
1111
- yarn --version
1212
- npx --version
1313
script:
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
14+
- npx yarn build
15+
- node @commitlint/travis-cli/lib/cli.js
16+
- npx yarn lint
17+
- npx yarn deps
18+
- npx yarn test

@commitlint/cli/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const path = require('path');
2+
3+
module.exports = path.join(__dirname, 'lib/cli.js');

@commitlint/cli/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"commitlint": "./lib/cli.js"
77
},
88
"scripts": {
9-
"build": "npx cross-env NODE_ENV=production npx -p babel-cli babel src --out-dir lib --source-maps",
9+
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
1010
"clean": "npx rimraf lib",
1111
"deps": "dep-check",
12-
"lint": "npx xo",
13-
"start": "npx concurrently \"npx ava -c 4 --verbose --watch\" \"npx yarn run watch\"",
14-
"test": "npx ava -c 4 --verbose",
15-
"watch": "npx -p babel-cli babel src --out-dir lib --watch --source-maps"
12+
"lint": "xo",
13+
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
14+
"test": "ava -c 4 --verbose",
15+
"watch": "babel src --out-dir lib --watch --source-maps"
1616
},
1717
"ava": {
1818
"files": [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"clean": "exit 0",
77
"deps": "dep-check",
8-
"lint": "npx xo",
8+
"lint": "xo",
99
"start": "exit 0",
1010
"test": "exit 0"
1111
},

@commitlint/config-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"clean": "exit 0",
77
"deps": "dep-check",
8-
"lint": "npx xo",
8+
"lint": "xo",
99
"start": "exit 0",
1010
"test": "exit 0"
1111
},

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "Shareable commitlint config enforcing lerna package names as scopes",
55
"scripts": {
66
"clean": "exit 0",
7-
"lint": "npx xo",
8-
"start": "npx ava --watch --verbose",
9-
"test": "npx ava --verbose"
7+
"lint": "xo",
8+
"start": "ava --watch --verbose",
9+
"test": "ava --verbose"
1010
},
1111
"xo": false,
1212
"ava": {

@commitlint/config-patternplate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"clean": "exit 0",
77
"deps": "dep-check",
8-
"lint": "npx xo",
8+
"lint": "xo",
99
"start": "exit 0",
1010
"test": "exit 0"
1111
},

@commitlint/core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"description": "Lint your commit messages",
55
"main": "lib/index.js",
66
"scripts": {
7-
"build": "npx cross-env NODE_ENV=production npx -p babel-cli babel src --out-dir lib --source-maps",
7+
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
88
"clean": "npx rimraf lib",
99
"deps": "dep-check",
10-
"lint": "npx xo",
11-
"start": "npx concurrently \"npx ava -c 4 --verbose --watch\" \"npx yarn run watch\"",
12-
"test": "npx ava -c 4 --verbose && npx ava \"src/*.serial-test.js\" --verbose",
13-
"watch": "npx -p babel-cli babel src --out-dir lib --watch --source-maps"
10+
"lint": "xo",
11+
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
12+
"test": "ava -c 4 --verbose && ava \"src/*.serial-test.js\" --verbose",
13+
"watch": "babel src --out-dir lib --watch --source-maps"
1414
},
1515
"ava": {
1616
"files": [

@commitlint/prompt-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"clean": "npx rimraf lib",
1010
"commit": "$npm_package_bin_commit",
1111
"deps": "dep-check",
12-
"lint": "npx xo"
12+
"lint": "xo"
1313
},
1414
"xo": false,
1515
"repository": {

0 commit comments

Comments
 (0)