Skip to content

Commit

Permalink
Convert the repo to phased build.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Jan 20, 2022
1 parent 765a4c2 commit aa3d2fb
Show file tree
Hide file tree
Showing 90 changed files with 302 additions and 109 deletions.
4 changes: 3 additions & 1 deletion apps/api-documenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"homepage": "https://api-extractor.com/",
"license": "MIT",
"scripts": {
"build": "heft test --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"bin": {
"api-documenter": "./bin/api-documenter"
Expand Down
4 changes: 3 additions & 1 deletion apps/api-extractor-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"typings": "dist/rollup.d.ts",
"license": "MIT",
"scripts": {
"build": "heft test --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"dependencies": {
"@microsoft/tsdoc": "0.13.2",
Expand Down
4 changes: 3 additions & 1 deletion apps/api-extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
},
"license": "MIT",
"scripts": {
"build": "heft test --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"dependencies": {
"@microsoft/api-extractor-model": "workspace:*",
Expand Down
6 changes: 4 additions & 2 deletions apps/heft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
},
"license": "MIT",
"scripts": {
"build": "heft test --clean",
"start": "heft test --clean --watch"
"build": "heft build --clean",
"start": "heft test --clean --watch",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"dependencies": {
"@rushstack/heft-config-file": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion apps/rundown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"engineStrict": true,
"homepage": "https://rushstack.io",
"scripts": {
"build": "heft build --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean"
},
"bin": {
"rundown": "./bin/rundown"
Expand Down
4 changes: 3 additions & 1 deletion apps/rush-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"main": "lib/index.js",
"typings": "dist/rush-lib.d.ts",
"scripts": {
"build": "heft test --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"license": "MIT",
"dependencies": {
Expand Down
6 changes: 4 additions & 2 deletions apps/rush/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
"engineStrict": true,
"homepage": "https://rushjs.io",
"scripts": {
"build": "heft test --clean",
"start": "node lib/start-dev-docs.js"
"build": "heft build --clean",
"start": "node lib/start-dev-docs.js",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"bin": {
"rush": "./bin/rush",
Expand Down
4 changes: 3 additions & 1 deletion build-tests-samples/heft-node-basic-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"build": "heft test --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion build-tests-samples/heft-node-jest-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"private": true,
"license": "MIT",
"scripts": {
"build": "heft test --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion build-tests-samples/heft-node-rig-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"build": "heft test --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"module": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": ""
"build": "",
"_phase:build": ""
},
"devDependencies": {
"@babel/core": "^7.14.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"version": "1.0.0",
"private": true,
"scripts": {
"build": "heft test --clean",
"start": "heft start"
"build": "heft build --clean",
"start": "heft start",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
6 changes: 4 additions & 2 deletions build-tests-samples/heft-webpack-basic-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"version": "1.0.0",
"private": true,
"scripts": {
"build": "heft test --clean",
"start": "heft start"
"build": "heft build --clean",
"start": "heft start",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests-samples/packlets-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"license": "MIT",
"scripts": {
"build": "heft build --clean",
"start": "node lib/start.js"
"start": "node lib/start.js",
"_phase:build": "heft build --clean"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-documenter-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"devDependencies": {
"@microsoft/api-documenter": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-extractor-lib1-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"typings": "dist/api-extractor-lib1-test.d.ts",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"devDependencies": {
"@microsoft/api-extractor": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-extractor-lib2-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"typings": "dist/api-extractor-lib2-test.d.ts",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"devDependencies": {
"@microsoft/api-extractor": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-extractor-lib3-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"typings": "dist/api-extractor-lib3-test.d.ts",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"dependencies": {
"api-extractor-lib1-test": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-extractor-scenarios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"typings": "dist/internal/api-extractor-test-01.d.ts",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"devDependencies": {
"@microsoft/api-extractor": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-extractor-test-01/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"typings": "dist/api-extractor-test-01.d.ts",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"dependencies": {
"@types/jest": "27.4.0",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-extractor-test-02/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"typings": "dist/api-extractor-test-02.d.ts",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"dependencies": {
"@types/semver": "7.3.5",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-extractor-test-03/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"version": "1.0.0",
"private": true,
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"devDependencies": {
"@types/jest": "27.4.0",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/api-extractor-test-04/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"typings": "dist/api-extractor-test-04.d.ts",
"scripts": {
"build": "node build.js"
"build": "node build.js",
"_phase:build": "node build.js"
},
"dependencies": {
"@microsoft/api-extractor": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/eslint-7-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"build": "heft build --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/heft-action-plugin-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"private": true,
"license": "MIT",
"scripts": {
"build": "heft my-custom-action"
"build": "heft build --clean",
"_phase:build": "heft build --clean"
},
"devDependencies": {
"@rushstack/heft": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/heft-action-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"build": "heft build --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/heft-copy-files-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"private": true,
"license": "MIT",
"scripts": {
"build": "heft build --clean --verbose"
"build": "heft build --clean",
"_phase:build": "heft build --clean"
},
"devDependencies": {
"@rushstack/heft": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion build-tests/heft-example-plugin-01/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"typings": "./lib/index.d.ts",
"scripts": {
"build": "heft build --clean",
"start": "heft start"
"start": "heft start",
"_phase:build": "heft build --clean"
},
"dependencies": {
"tapable": "1.1.3"
Expand Down
3 changes: 2 additions & 1 deletion build-tests/heft-example-plugin-02/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"typings": "./lib/index.d.ts",
"scripts": {
"build": "heft build --clean",
"start": "heft start"
"start": "heft start",
"_phase:build": "heft build --clean"
},
"peerDependencies": {
"heft-example-plugin-01": "workspace:*"
Expand Down
3 changes: 2 additions & 1 deletion build-tests/heft-fastify-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"scripts": {
"build": "heft build --clean",
"start": "heft start --clean",
"serve": "node lib/start.js"
"serve": "node lib/start.js",
"_phase:build": "heft build --clean"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
6 changes: 4 additions & 2 deletions build-tests/heft-jest-reporters-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"version": "1.0.0",
"private": true,
"scripts": {
"build": "heft test --clean",
"start": "heft start"
"build": "heft build --clean",
"start": "heft start",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@jest/reporters": "~27.4.2",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/heft-minimal-rig-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"private": true,
"license": "MIT",
"scripts": {
"build": ""
"build": "",
"_phase:build": ""
},
"dependencies": {
"typescript": "~4.5.2",
Expand Down
4 changes: 3 additions & 1 deletion build-tests/heft-minimal-rig-usage-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"private": true,
"license": "MIT",
"scripts": {
"build": "heft test --clean --verbose"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@rushstack/heft": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"type": "module",
"license": "MIT",
"scripts": {
"build": "heft test --clean --verbose"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@microsoft/api-extractor": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion build-tests/heft-node-everything-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"build": "heft test --clean --verbose"
"build": "heft build --clean",
"_phase:build": "heft build --clean",
"_phase:test": "heft test --no-build"
},
"devDependencies": {
"@microsoft/api-extractor": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion build-tests/heft-parameter-plugin-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"private": true,
"license": "MIT",
"scripts": {
"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"
"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",
"_phase:build": "",
"_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"
},
"devDependencies": {
"@rushstack/heft": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion build-tests/heft-parameter-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"build": "heft build --clean"
"build": "heft build --clean",
"_phase:build": "heft build --clean"
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
Expand Down
Loading

0 comments on commit aa3d2fb

Please sign in to comment.