Skip to content

Commit bd07d2c

Browse files
incremental builds
1 parent ba3b5e4 commit bd07d2c

33 files changed

+251
-84
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package-lock.json
55
_ignite
66
.vscode/
77
binary
8-
8+
**/tsconfig.tsbuildinfo
99

1010
# Created by https://www.gitignore.io/api/node,intellij,sublimetext,visualstudiocode
1111
# Edit at https://www.gitignore.io/?templates=node,intellij,sublimetext,visualstudiocode

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"plugins/*"
2323
],
2424
"scripts": {
25-
"clean": "lerna clean --yes && rm -rf node_modules && rm -rf packages/*/dist && rm -rf plugins/*/dist",
25+
"clean": "lerna clean --yes && rimraf node_modules '+(packages|plugins)/**/+(dist|tsconfig.tsbuildinfo)'",
2626
"semver:check": "./scripts/post-install.sh",
27-
"build": "lerna run build --stream",
28-
"build:watch": "lerna run build --parallel -- --watch --preserveWatchOutput",
27+
"build": "tsc -b tsconfig.dev.json",
28+
"start": "npm run build -- --watch",
2929
"lint": "tslint -p . --format stylish",
3030
"precommit": "lint-staged",
3131
"test": "jest --runInBand",

packages/cli/package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"cli"
3434
],
3535
"scripts": {
36-
"build": "tsc -p tsconfig.json",
37-
"build:watch": "npm run build -- -w",
36+
"build": "tsc -b",
37+
"start": "npm run build -- -w",
3838
"lint": "tslint -p . --format stylish",
3939
"test": "jest --maxWorkers=2",
4040
"bundle": "rimraf binary && pkg . --out-path binary && yarn gzip",
@@ -55,7 +55,6 @@
5555
"@types/command-line-usage": "^5.0.1",
5656
"@types/dedent": "^0.7.0",
5757
"@types/signale": "^1.2.1",
58-
"pkg": "^4.4.0",
59-
"rimraf": "^3.0.0"
58+
"pkg": "^4.4.0"
6059
}
6160
}

packages/cli/tsconfig.json

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../core"
14+
},
15+
{
16+
"path": "../../plugins/npm"
17+
},
18+
{
19+
"path": "../../plugins/released"
20+
}
21+
]
722
}

packages/core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"node"
3131
],
3232
"scripts": {
33-
"build": "tsc -p tsconfig.json",
34-
"build:watch": "npm run build -- -w",
33+
"build": "tsc -b",
34+
"start": "npm run build -- -w",
3535
"lint": "tslint -p . --format stylish",
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},

packages/core/tsconfig.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2-
"compilerOptions": {
3-
"outDir": "./dist"
4-
},
52
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
5+
"compilerOptions": {
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
9+
}
710
}

plugins/chrome/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"web store"
3232
],
3333
"scripts": {
34-
"build": "tsc -p tsconfig.json",
35-
"build:watch": "npm run build -- -w",
34+
"build": "tsc -b",
35+
"start": "npm run build -- -w",
3636
"lint": "tslint -p . --format stylish",
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},

plugins/chrome/tsconfig.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/conventional-commits/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"conventional commits"
3131
],
3232
"scripts": {
33-
"build": "tsc -p tsconfig.json",
34-
"build:watch": "npm run build -- -w",
33+
"build": "tsc -b",
34+
"start": "npm run build -- -w",
3535
"lint": "tslint -p . --format stylish",
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/git-tag/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"changelog"
3030
],
3131
"scripts": {
32-
"build": "tsc -p tsconfig.json",
33-
"build:watch": "npm run build -- -w",
32+
"build": "tsc -b",
33+
"start": "npm run build -- -w",
3434
"lint": "tslint -p . --format stylish",
3535
"test": "jest --maxWorkers=2 --config ../../package.json"
3636
},

plugins/git-tag/tsconfig.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/jira/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"changelog"
3131
],
3232
"scripts": {
33-
"build": "tsc -p tsconfig.json",
34-
"build:watch": "npm run build -- -w",
33+
"build": "tsc -b",
34+
"start": "npm run build -- -w",
3535
"lint": "tslint -p . --format stylish",
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},

plugins/jira/tsconfig.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/maven/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"comment"
3232
],
3333
"scripts": {
34-
"build": "tsc -p tsconfig.json",
35-
"build:watch": "npm run build -- -w",
34+
"build": "tsc -b",
35+
"start": "npm run build -- -w",
3636
"lint": "tslint -p . --format stylish",
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},

plugins/maven/tsconfig.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/npm/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"lerna"
3232
],
3333
"scripts": {
34-
"build": "tsc -p tsconfig.json",
35-
"build:watch": "npm run build -- -w",
34+
"build": "tsc -b",
35+
"start": "npm run build -- -w",
3636
"lint": "tslint -p . --format stylish",
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},

plugins/npm/tsconfig.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/omit-commits/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"omit"
3232
],
3333
"scripts": {
34-
"build": "tsc -p tsconfig.json",
35-
"build:watch": "npm run build -- -w",
34+
"build": "tsc -b",
35+
"start": "npm run build -- -w",
3636
"lint": "tslint -p . --format stylish",
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},

plugins/omit-commits/tsconfig.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/omit-release-notes/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"omit"
3232
],
3333
"scripts": {
34-
"build": "tsc -p tsconfig.json",
35-
"build:watch": "npm run build -- -w",
34+
"build": "tsc -b",
35+
"start": "npm run build -- -w",
3636
"lint": "tslint -p . --format stylish",
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},
+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/released/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"comment"
3232
],
3333
"scripts": {
34-
"build": "tsc -p tsconfig.json",
35-
"build:watch": "npm run build -- -w",
34+
"build": "tsc -b",
35+
"start": "npm run build -- -w",
3636
"lint": "tslint -p . --format stylish",
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},

plugins/released/tsconfig.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*", "../../typings/**/*"],
4+
25
"compilerOptions": {
3-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"composite": true
49
},
5-
"extends": "../../tsconfig.json",
6-
"include": ["src/**/*", "../../typings/**/*"]
10+
11+
"references": [
12+
{
13+
"path": "../../packages/core"
14+
}
15+
]
716
}

plugins/slack/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"slack"
3131
],
3232
"scripts": {
33-
"build": "tsc -p tsconfig.json",
34-
"build:watch": "npm run build -- -w",
33+
"build": "tsc -b",
34+
"start": "npm run build -- -w",
3535
"lint": "tslint -p . --format stylish",
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},

0 commit comments

Comments
 (0)