Skip to content

Commit aa3d2fb

Browse files
committed
Convert the repo to phased build.
1 parent 765a4c2 commit aa3d2fb

File tree

90 files changed

+302
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+302
-109
lines changed

apps/api-documenter/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"homepage": "https://api-extractor.com/",
1111
"license": "MIT",
1212
"scripts": {
13-
"build": "heft test --clean"
13+
"build": "heft build --clean",
14+
"_phase:build": "heft build --clean",
15+
"_phase:test": "heft test --no-build"
1416
},
1517
"bin": {
1618
"api-documenter": "./bin/api-documenter"

apps/api-extractor-model/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"typings": "dist/rollup.d.ts",
1313
"license": "MIT",
1414
"scripts": {
15-
"build": "heft test --clean"
15+
"build": "heft build --clean",
16+
"_phase:build": "heft build --clean",
17+
"_phase:test": "heft test --no-build"
1618
},
1719
"dependencies": {
1820
"@microsoft/tsdoc": "0.13.2",

apps/api-extractor/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
},
3333
"license": "MIT",
3434
"scripts": {
35-
"build": "heft test --clean"
35+
"build": "heft build --clean",
36+
"_phase:build": "heft build --clean",
37+
"_phase:test": "heft test --no-build"
3638
},
3739
"dependencies": {
3840
"@microsoft/api-extractor-model": "workspace:*",

apps/heft/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
},
2929
"license": "MIT",
3030
"scripts": {
31-
"build": "heft test --clean",
32-
"start": "heft test --clean --watch"
31+
"build": "heft build --clean",
32+
"start": "heft test --clean --watch",
33+
"_phase:build": "heft build --clean",
34+
"_phase:test": "heft test --no-build"
3335
},
3436
"dependencies": {
3537
"@rushstack/heft-config-file": "workspace:*",

apps/rundown/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"engineStrict": true,
1414
"homepage": "https://rushstack.io",
1515
"scripts": {
16-
"build": "heft build --clean"
16+
"build": "heft build --clean",
17+
"_phase:build": "heft build --clean"
1718
},
1819
"bin": {
1920
"rundown": "./bin/rundown"

apps/rush-lib/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"main": "lib/index.js",
1616
"typings": "dist/rush-lib.d.ts",
1717
"scripts": {
18-
"build": "heft test --clean"
18+
"build": "heft build --clean",
19+
"_phase:build": "heft build --clean",
20+
"_phase:test": "heft test --no-build"
1921
},
2022
"license": "MIT",
2123
"dependencies": {

apps/rush/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
"engineStrict": true,
2525
"homepage": "https://rushjs.io",
2626
"scripts": {
27-
"build": "heft test --clean",
28-
"start": "node lib/start-dev-docs.js"
27+
"build": "heft build --clean",
28+
"start": "node lib/start-dev-docs.js",
29+
"_phase:build": "heft build --clean",
30+
"_phase:test": "heft test --no-build"
2931
},
3032
"bin": {
3133
"rush": "./bin/rush",

build-tests-samples/heft-node-basic-tutorial/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"main": "lib/index.js",
77
"license": "MIT",
88
"scripts": {
9-
"build": "heft test --clean"
9+
"build": "heft build --clean",
10+
"_phase:build": "heft build --clean",
11+
"_phase:test": "heft test --no-build"
1012
},
1113
"devDependencies": {
1214
"@rushstack/eslint-config": "workspace:*",

build-tests-samples/heft-node-jest-tutorial/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": "heft test --clean"
8+
"build": "heft build --clean",
9+
"_phase:build": "heft build --clean",
10+
"_phase:test": "heft test --no-build"
911
},
1012
"devDependencies": {
1113
"@rushstack/eslint-config": "workspace:*",

build-tests-samples/heft-node-rig-tutorial/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"main": "lib/index.js",
77
"license": "MIT",
88
"scripts": {
9-
"build": "heft test --clean"
9+
"build": "heft build --clean",
10+
"_phase:build": "heft build --clean",
11+
"_phase:test": "heft test --no-build"
1012
},
1113
"devDependencies": {
1214
"@rushstack/eslint-config": "workspace:*",

build-tests-samples/heft-storybook-react-tutorial-storykit/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"module": "dist/index.js",
88
"types": "dist/index.d.ts",
99
"scripts": {
10-
"build": ""
10+
"build": "",
11+
"_phase:build": ""
1112
},
1213
"devDependencies": {
1314
"@babel/core": "^7.14.8",

build-tests-samples/heft-storybook-react-tutorial/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
"version": "1.0.0",
55
"private": true,
66
"scripts": {
7-
"build": "heft test --clean",
8-
"start": "heft start"
7+
"build": "heft build --clean",
8+
"start": "heft start",
9+
"_phase:build": "heft build --clean",
10+
"_phase:test": "heft test --no-build"
911
},
1012
"devDependencies": {
1113
"@rushstack/eslint-config": "workspace:*",

build-tests-samples/heft-webpack-basic-tutorial/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
"version": "1.0.0",
55
"private": true,
66
"scripts": {
7-
"build": "heft test --clean",
8-
"start": "heft start"
7+
"build": "heft build --clean",
8+
"start": "heft start",
9+
"_phase:build": "heft build --clean",
10+
"_phase:test": "heft test --no-build"
911
},
1012
"devDependencies": {
1113
"@rushstack/eslint-config": "workspace:*",

build-tests-samples/packlets-tutorial/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"license": "MIT",
77
"scripts": {
88
"build": "heft build --clean",
9-
"start": "node lib/start.js"
9+
"start": "node lib/start.js",
10+
"_phase:build": "heft build --clean"
1011
},
1112
"devDependencies": {
1213
"@rushstack/eslint-config": "workspace:*",

build-tests/api-documenter-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"typings": "lib/index.d.ts",
88
"scripts": {
9-
"build": "node build.js"
9+
"build": "node build.js",
10+
"_phase:build": "node build.js"
1011
},
1112
"devDependencies": {
1213
"@microsoft/api-documenter": "workspace:*",

build-tests/api-extractor-lib1-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"typings": "dist/api-extractor-lib1-test.d.ts",
88
"scripts": {
9-
"build": "node build.js"
9+
"build": "node build.js",
10+
"_phase:build": "node build.js"
1011
},
1112
"devDependencies": {
1213
"@microsoft/api-extractor": "workspace:*",

build-tests/api-extractor-lib2-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"typings": "dist/api-extractor-lib2-test.d.ts",
88
"scripts": {
9-
"build": "node build.js"
9+
"build": "node build.js",
10+
"_phase:build": "node build.js"
1011
},
1112
"devDependencies": {
1213
"@microsoft/api-extractor": "workspace:*",

build-tests/api-extractor-lib3-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"typings": "dist/api-extractor-lib3-test.d.ts",
88
"scripts": {
9-
"build": "node build.js"
9+
"build": "node build.js",
10+
"_phase:build": "node build.js"
1011
},
1112
"dependencies": {
1213
"api-extractor-lib1-test": "workspace:*"

build-tests/api-extractor-scenarios/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"typings": "dist/internal/api-extractor-test-01.d.ts",
88
"scripts": {
9-
"build": "node build.js"
9+
"build": "node build.js",
10+
"_phase:build": "node build.js"
1011
},
1112
"devDependencies": {
1213
"@microsoft/api-extractor": "workspace:*",

build-tests/api-extractor-test-01/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"typings": "dist/api-extractor-test-01.d.ts",
88
"scripts": {
9-
"build": "node build.js"
9+
"build": "node build.js",
10+
"_phase:build": "node build.js"
1011
},
1112
"dependencies": {
1213
"@types/jest": "27.4.0",

build-tests/api-extractor-test-02/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"typings": "dist/api-extractor-test-02.d.ts",
88
"scripts": {
9-
"build": "node build.js"
9+
"build": "node build.js",
10+
"_phase:build": "node build.js"
1011
},
1112
"dependencies": {
1213
"@types/semver": "7.3.5",

build-tests/api-extractor-test-03/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"version": "1.0.0",
55
"private": true,
66
"scripts": {
7-
"build": "node build.js"
7+
"build": "node build.js",
8+
"_phase:build": "node build.js"
89
},
910
"devDependencies": {
1011
"@types/jest": "27.4.0",

build-tests/api-extractor-test-04/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"typings": "dist/api-extractor-test-04.d.ts",
88
"scripts": {
9-
"build": "node build.js"
9+
"build": "node build.js",
10+
"_phase:build": "node build.js"
1011
},
1112
"dependencies": {
1213
"@microsoft/api-extractor": "workspace:*",

build-tests/eslint-7-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"license": "MIT",
88
"scripts": {
9-
"build": "heft build --clean"
9+
"build": "heft build --clean",
10+
"_phase:build": "heft build --clean"
1011
},
1112
"devDependencies": {
1213
"@rushstack/eslint-config": "workspace:*",

build-tests/heft-action-plugin-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": "heft my-custom-action"
8+
"build": "heft build --clean",
9+
"_phase:build": "heft build --clean"
910
},
1011
"devDependencies": {
1112
"@rushstack/heft": "workspace:*",

build-tests/heft-action-plugin/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"license": "MIT",
88
"scripts": {
9-
"build": "heft build --clean"
9+
"build": "heft build --clean",
10+
"_phase:build": "heft build --clean"
1011
},
1112
"devDependencies": {
1213
"@rushstack/eslint-config": "workspace:*",

build-tests/heft-copy-files-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": "heft build --clean --verbose"
8+
"build": "heft build --clean",
9+
"_phase:build": "heft build --clean"
910
},
1011
"devDependencies": {
1112
"@rushstack/heft": "workspace:*"

build-tests/heft-example-plugin-01/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"typings": "./lib/index.d.ts",
88
"scripts": {
99
"build": "heft build --clean",
10-
"start": "heft start"
10+
"start": "heft start",
11+
"_phase:build": "heft build --clean"
1112
},
1213
"dependencies": {
1314
"tapable": "1.1.3"

build-tests/heft-example-plugin-02/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"typings": "./lib/index.d.ts",
88
"scripts": {
99
"build": "heft build --clean",
10-
"start": "heft start"
10+
"start": "heft start",
11+
"_phase:build": "heft build --clean"
1112
},
1213
"peerDependencies": {
1314
"heft-example-plugin-01": "workspace:*"

build-tests/heft-fastify-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"scripts": {
99
"build": "heft build --clean",
1010
"start": "heft start --clean",
11-
"serve": "node lib/start.js"
11+
"serve": "node lib/start.js",
12+
"_phase:build": "heft build --clean"
1213
},
1314
"devDependencies": {
1415
"@rushstack/eslint-config": "workspace:*",

build-tests/heft-jest-reporters-test/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
"version": "1.0.0",
55
"private": true,
66
"scripts": {
7-
"build": "heft test --clean",
8-
"start": "heft start"
7+
"build": "heft build --clean",
8+
"start": "heft start",
9+
"_phase:build": "heft build --clean",
10+
"_phase:test": "heft test --no-build"
911
},
1012
"devDependencies": {
1113
"@jest/reporters": "~27.4.2",

build-tests/heft-minimal-rig-test/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": ""
8+
"build": "",
9+
"_phase:build": ""
910
},
1011
"dependencies": {
1112
"typescript": "~4.5.2",

build-tests/heft-minimal-rig-usage-test/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": "heft test --clean --verbose"
8+
"build": "heft build --clean",
9+
"_phase:build": "heft build --clean",
10+
"_phase:test": "heft test --no-build"
911
},
1012
"devDependencies": {
1113
"@rushstack/heft": "workspace:*",

build-tests/heft-node-everything-esm-module-test/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"type": "module",
88
"license": "MIT",
99
"scripts": {
10-
"build": "heft test --clean --verbose"
10+
"build": "heft build --clean",
11+
"_phase:build": "heft build --clean",
12+
"_phase:test": "heft test --no-build"
1113
},
1214
"devDependencies": {
1315
"@microsoft/api-extractor": "workspace:*",

build-tests/heft-node-everything-test/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"main": "lib/index.js",
77
"license": "MIT",
88
"scripts": {
9-
"build": "heft test --clean --verbose"
9+
"build": "heft build --clean",
10+
"_phase:build": "heft build --clean",
11+
"_phase:test": "heft test --no-build"
1012
},
1113
"devDependencies": {
1214
"@microsoft/api-extractor": "workspace:*",

build-tests/heft-parameter-plugin-test/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": "heft test --clean --custom-parameter --custom-string-parameter test --custom-number-parameter 5 --custom-string-list-parameter eevee -x togepi -x mareep --custom-choice-parameter red --custom-choice-list-parameter totodile -y gudetama -y wobbuffet"
8+
"build": "heft test --clean --custom-parameter --custom-string-parameter test --custom-number-parameter 5 --custom-string-list-parameter eevee -x togepi -x mareep --custom-choice-parameter red --custom-choice-list-parameter totodile -y gudetama -y wobbuffet",
9+
"_phase:build": "",
10+
"_phase:test": "heft test --custom-parameter --custom-string-parameter test --custom-number-parameter 5 --custom-string-list-parameter eevee -x togepi -x mareep --custom-choice-parameter red --custom-choice-list-parameter totodile -y gudetama -y wobbuffet"
911
},
1012
"devDependencies": {
1113
"@rushstack/heft": "workspace:*",

build-tests/heft-parameter-plugin/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "lib/index.js",
77
"license": "MIT",
88
"scripts": {
9-
"build": "heft build --clean"
9+
"build": "heft build --clean",
10+
"_phase:build": "heft build --clean"
1011
},
1112
"devDependencies": {
1213
"@rushstack/eslint-config": "workspace:*",

0 commit comments

Comments
 (0)