Skip to content

Commit 8ca1545

Browse files
committed
build: simplify repo cleaning
1 parent 7a75626 commit 8ca1545

File tree

23 files changed

+24
-100
lines changed

23 files changed

+24
-100
lines changed

@commitlint/cli/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
},
1313
"scripts": {
1414
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
15-
"clean": "npx rimraf lib",
1615
"deps": "dep-check",
1716
"pkg": "pkg-check",
1817
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -66,7 +65,6 @@
6665
"mkdirp": "0.5.1",
6766
"pkg-dir": "2.0.0",
6867
"resolve-bin": "0.4.0",
69-
"rimraf": "2.6.2",
7068
"sander": "0.6.0",
7169
"string-to-stream": "1.1.0",
7270
"tmp": "0.1.0"

@commitlint/ensure/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check --skip-import",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -65,8 +64,7 @@
6564
"babel-register": "6.26.0",
6665
"concurrently": "3.5.1",
6766
"cross-env": "5.1.1",
68-
"globby": "8.0.1",
69-
"rimraf": "2.6.1"
67+
"globby": "8.0.1"
7068
},
7169
"dependencies": {
7270
"lodash": "4.17.11"

@commitlint/execute-rule/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -65,8 +64,7 @@
6564
"babel-preset-commitlint": "^7.5.0",
6665
"babel-register": "6.26.0",
6766
"concurrently": "3.5.1",
68-
"cross-env": "5.1.1",
69-
"rimraf": "2.6.1"
67+
"cross-env": "5.1.1"
7068
},
7169
"dependencies": {
7270
"babel-runtime": "6.26.0"

@commitlint/format/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "tsc",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check --skip-import",
1413
"start": "concurrently \"yarn test --watchAll\" \"yarn run watch\"",
@@ -47,7 +46,8 @@
4746
"jest": "24.8.0",
4847
"rimraf": "2.6.1",
4948
"ts-jest": "24.0.2",
50-
"typescript": "3.4.5"
49+
"typescript": "3.4.5",
50+
"lodash": "4.17.11"
5151
},
5252
"dependencies": {
5353
"chalk": "^2.0.1"

@commitlint/is-ignored/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -65,8 +64,7 @@
6564
"babel-preset-commitlint": "^7.5.0",
6665
"babel-register": "6.26.0",
6766
"concurrently": "3.5.1",
68-
"cross-env": "5.1.1",
69-
"rimraf": "2.6.1"
67+
"cross-env": "5.1.1"
7068
},
7169
"dependencies": {
7270
"semver": "6.0.0"

@commitlint/lint/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check --skip-import",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -67,7 +66,6 @@
6766
"cross-env": "5.1.1",
6867
"execa": "0.9.0",
6968
"globby": "8.0.1",
70-
"rimraf": "2.6.1",
7169
"proxyquire": "2.1.0"
7270
},
7371
"dependencies": {

@commitlint/load/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check --skip-import",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -66,8 +65,7 @@
6665
"concurrently": "3.5.1",
6766
"cross-env": "5.1.1",
6867
"execa": "0.9.0",
69-
"globby": "8.0.1",
70-
"rimraf": "2.6.1"
68+
"globby": "8.0.1"
7169
},
7270
"dependencies": {
7371
"@commitlint/execute-rule": "^7.5.0",

@commitlint/message/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -64,7 +63,6 @@
6463
"babel-preset-commitlint": "^7.5.0",
6564
"babel-register": "6.26.0",
6665
"concurrently": "3.5.1",
67-
"cross-env": "5.1.1",
68-
"rimraf": "2.6.1"
66+
"cross-env": "5.1.1"
6967
}
7068
}

@commitlint/parse/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -65,8 +64,7 @@
6564
"babel-register": "6.26.0",
6665
"concurrently": "3.5.1",
6766
"cross-env": "5.1.1",
68-
"import-from": "3.0.0",
69-
"rimraf": "2.6.1"
67+
"import-from": "3.0.0"
7068
},
7169
"dependencies": {
7270
"conventional-changelog-angular": "^1.3.3",

@commitlint/prompt-cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"commit": "./cli.js"
1010
},
1111
"scripts": {
12-
"clean": "npx rimraf lib",
1312
"commit": "$npm_package_bin_commit",
1413
"deps": "dep-check",
1514
"pkg": "pkg-check --skip-main",

@commitlint/prompt/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"commit": "git-cz",
1312
"deps": "dep-check",
1413
"pkg": "pkg-check --skip-import",

@commitlint/read/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check --skip-import",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -65,8 +64,7 @@
6564
"babel-register": "6.26.0",
6665
"concurrently": "3.5.1",
6766
"cross-env": "5.1.1",
68-
"execa": "0.9.0",
69-
"rimraf": "2.6.1"
67+
"execa": "0.9.0"
7068
},
7169
"dependencies": {
7270
"@commitlint/top-level": "^7.5.0",

@commitlint/resolve-extends/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -67,8 +66,7 @@
6766
"babel-register": "6.26.0",
6867
"concurrently": "3.5.1",
6968
"cross-env": "5.1.1",
70-
"execa": "0.9.0",
71-
"rimraf": "2.6.1"
69+
"execa": "0.9.0"
7270
},
7371
"dependencies": {
7472
"babel-runtime": "6.26.0",

@commitlint/rules/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check --skip-import",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -68,8 +67,7 @@
6867
"conventional-changelog-angular": "1.6.6",
6968
"cross-env": "5.1.1",
7069
"globby": "8.0.1",
71-
"lodash": "4.17.11",
72-
"rimraf": "2.6.1"
70+
"lodash": "4.17.11"
7371
},
7472
"dependencies": {
7573
"@commitlint/ensure": "^7.5.2",

@commitlint/to-lines/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check",
1413
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
@@ -65,7 +64,6 @@
6564
"babel-preset-commitlint": "^7.5.0",
6665
"babel-register": "6.26.0",
6766
"concurrently": "3.5.1",
68-
"cross-env": "5.1.1",
69-
"rimraf": "2.6.1"
67+
"cross-env": "5.1.1"
7068
}
7169
}

@commitlint/top-level/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
1211
"deps": "dep-check",
1312
"pkg": "pkg-check",
1413
"start": "yarn watch",
@@ -46,8 +45,7 @@
4645
"babel-cli": "6.26.0",
4746
"babel-preset-commitlint": "^7.5.0",
4847
"babel-register": "6.26.0",
49-
"cross-env": "5.1.1",
50-
"rimraf": "2.6.1"
48+
"cross-env": "5.1.1"
5149
},
5250
"dependencies": {
5351
"find-up": "^2.1.0"

@commitlint/travis-cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
},
1111
"scripts": {
1212
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
13-
"clean": "npx rimraf lib",
1413
"deps": "dep-check",
1514
"pkg": "pkg-check --skip-main",
1615
"start": "ava -c 4 --verbose --watch",

@packages/babel-preset-commitlint/index.test.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
"files": [
77
"index.js"
88
],
9-
"scripts": {
10-
"deps": "dep-check",
11-
"pkg": "pkg-check",
12-
"start": "ava --watch --verbose",
13-
"test": "ava --verbose"
14-
},
159
"ava": {
1610
"files": [
1711
"test.js",
@@ -49,7 +43,6 @@
4943
},
5044
"license": "MIT",
5145
"devDependencies": {
52-
"@commitlint/utils": "^7.5.0",
5346
"ava": "0.22.0",
5447
"babel-core": "6.26.0"
5548
},

@packages/test/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
],
99
"scripts": {
1010
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
11-
"clean": "npx rimraf lib",
12-
"deps": "dep-check",
13-
"pkg": "pkg-check --skip-import",
1411
"start": "concurrently \"ava --watch --verbose\" \"yarn run watch\"",
1512
"test": "ava --verbose",
1613
"watch": "babel src --out-dir lib --watch --source-maps"
@@ -56,19 +53,15 @@
5653
},
5754
"license": "MIT",
5855
"dependencies": {
59-
"@commitlint/utils": "^7.5.0",
6056
"@marionebl/sander": "0.6.1",
6157
"execa": "0.9.0",
6258
"pkg-dir": "2.0.0"
6359
},
6460
"devDependencies": {
65-
"@commitlint/utils": "^7.5.0",
66-
"ava": "0.22.0",
6761
"babel-cli": "6.26.0",
6862
"babel-preset-commitlint": "^7.5.0",
6963
"babel-register": "6.26.0",
7064
"concurrently": "3.5.1",
71-
"cross-env": "5.1.1",
72-
"rimraf": "2.6.1"
65+
"cross-env": "5.1.1"
7366
}
7467
}

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,21 @@ Copyright by @marionebl. All `commitlint` packages are released under the MIT li
187187
```sh
188188
git clone [email protected]:conventional-changelog/commitlint.git
189189
cd commitlint
190-
npx yarn install
191-
npx yarn run build # run build tasks
192-
npx yarn start # run tests, again on change
190+
yarn
191+
yarn run build # run build tasks
192+
yarn start # run tests, again on change
193193
```
194194

195195
For more information on how to contribute please take a look at our [contribution guide](./.github/CONTRIBUTING.md).
196196

197197
### Publishing a release
198198

199199
```sh
200-
npx yarn run clean
201-
npx yarn install
202-
npx yarn run build
203-
npx yarn test
204-
npx yarn run publish
200+
yarn clean
201+
yarn install
202+
yarn run build
203+
yarn test
204+
yarn run publish
205205
```
206206

207207

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "lerna run build --stream --parallel --include-filtered-dependencies",
99
"watch": "lerna run watch --stream --parallel --include-filtered-dependencies",
10-
"clean": "npx lerna clean --yes && npx lerna run clean --stream --parallel --include-filtered-dependencies",
10+
"clean": "lerna clean --yes && lerna exec 'git clean -xdf lib' && git clean -xdf node_modules",
1111
"commit": "node @commitlint/prompt-cli/cli.js",
1212
"deps": "lerna run deps",
1313
"pkg": "lerna run pkg",

0 commit comments

Comments
 (0)