forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#3944 from iclanton/internal-node-rig
Use an internal node build rig for internal, non-cyclic projects and fix caching across the repo.
- Loading branch information
Showing
365 changed files
with
2,310 additions
and
1,407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json" | ||
"extends": "heft-rushstack-internal-node-rig/profiles/default/config/jest.config.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json", | ||
"compilerOptions": { | ||
"resolveJsonModule": true | ||
} | ||
"extends": "./node_modules/heft-rushstack-internal-node-rig/profiles/default/tsconfig-base.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json" | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json", | ||
|
||
// Enable code coverage for Jest | ||
"collectCoverage": true, | ||
"coverageDirectory": "<rootDir>/coverage", | ||
"coverageReporters": ["cobertura", "html"], | ||
|
||
// Use v8 coverage provider to avoid Babel | ||
"coverageProvider": "v8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/rush-project.json", | ||
|
||
"operationSettings": [ | ||
{ | ||
"operationName": "_phase:build", | ||
"outputFolderNames": [".heft", "release"] | ||
}, | ||
{ | ||
"operationName": "_phase:test", | ||
"outputFolderNames": ["coverage"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json" | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json", | ||
|
||
// Enable code coverage for Jest | ||
"collectCoverage": true, | ||
"coverageDirectory": "<rootDir>/coverage", | ||
"coverageReporters": ["cobertura", "html"], | ||
|
||
// Use v8 coverage provider to avoid Babel | ||
"coverageProvider": "v8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/rush-project.json", | ||
|
||
"operationSettings": [ | ||
{ | ||
"operationName": "_phase:build", | ||
"outputFolderNames": [".heft", "release"] | ||
}, | ||
{ | ||
"operationName": "_phase:test", | ||
"outputFolderNames": ["coverage"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
{ | ||
"extends": "@rushstack/heft-web-rig/profiles/app/config/jest.config.json", | ||
|
||
// Enable code coverage for Jest | ||
"collectCoverage": true, | ||
"coverageDirectory": "<rootDir>/coverage", | ||
"coverageReporters": ["cobertura", "html"], | ||
|
||
// Use v8 coverage provider to avoid Babel | ||
"coverageProvider": "v8", | ||
|
||
// Load the initappcontext.js stub when running tests | ||
"setupFiles": ["../lib-commonjs/stub/initappcontext.js"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "@rushstack/heft-web-rig/profiles/app/config/rush-project.json", | ||
|
||
"operationSettings": [ | ||
{ | ||
"operationName": "_phase:build", | ||
"outputFolderNames": [".heft", "release"] | ||
}, | ||
{ | ||
"operationName": "_phase:test", | ||
"outputFolderNames": ["coverage"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json" | ||
"extends": "heft-rushstack-internal-node-rig/profiles/default/config/jest.config.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json", | ||
"compilerOptions": { | ||
"types": ["heft-jest", "node"] | ||
} | ||
"extends": "./node_modules/heft-rushstack-internal-node-rig/profiles/default/tsconfig-base.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json", | ||
"compilerOptions": { | ||
"types": ["heft-jest", "node"] | ||
} | ||
"extends": "./node_modules/heft-rushstack-internal-node-rig/profiles/default/tsconfig-base.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json" | ||
"extends": "heft-rushstack-internal-node-rig/profiles/default/config/jest.config.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json", | ||
"compilerOptions": { | ||
"types": ["heft-jest", "node"] | ||
} | ||
"extends": "./node_modules/heft-rushstack-internal-node-rig/profiles/default/tsconfig-base.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json" | ||
"extends": "heft-rushstack-internal-node-rig/profiles/default/config/jest.config.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json", | ||
|
||
"compilerOptions": { | ||
"types": ["heft-jest", "node"] | ||
} | ||
"extends": "./node_modules/heft-rushstack-internal-node-rig/profiles/default/tsconfig-base.json" | ||
} |
12 changes: 11 additions & 1 deletion
12
build-tests-samples/heft-node-basic-tutorial/config/jest.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{ | ||
"extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json" | ||
"extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", | ||
|
||
// These additional properties exist for caching purposes in the rushstack repo | ||
|
||
// Enable code coverage for Jest | ||
"collectCoverage": true, | ||
"coverageDirectory": "<rootDir>/coverage", | ||
"coverageReporters": ["cobertura", "html"], | ||
|
||
// Use v8 coverage provider to avoid Babel | ||
"coverageProvider": "v8" | ||
} |
9 changes: 7 additions & 2 deletions
9
build-tests-samples/heft-node-basic-tutorial/config/rush-project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
// This file exists for caching purposes in the rushstack repo | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush-project.schema.json", | ||
|
||
"operationSettings": [ | ||
{ | ||
"operationName": "build", | ||
"outputFolderNames": ["lib", "dist"] | ||
"operationName": "_phase:build", | ||
"outputFolderNames": [".heft", "lib", "dist"] | ||
}, | ||
{ | ||
"operationName": "_phase:test", | ||
"outputFolderNames": ["coverage"] | ||
} | ||
] | ||
} |
14 changes: 12 additions & 2 deletions
14
build-tests-samples/heft-node-jest-tutorial/config/jest.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
{ | ||
"extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", | ||
"collectCoverage": true, | ||
|
||
"coverageThreshold": { | ||
"global": { | ||
"branches": 50, | ||
"functions": 50, | ||
"lines": 50, | ||
"statements": 50 | ||
} | ||
} | ||
}, | ||
|
||
// These additional properties exist for caching purposes in the rushstack repo | ||
|
||
// Enable code coverage for Jest | ||
"collectCoverage": true, | ||
"coverageDirectory": "<rootDir>/coverage", | ||
"coverageReporters": ["cobertura", "html"], | ||
|
||
// Use v8 coverage provider to avoid Babel | ||
"coverageProvider": "v8" | ||
} |
9 changes: 7 additions & 2 deletions
9
build-tests-samples/heft-node-jest-tutorial/config/rush-project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
// This file exists for caching purposes in the rushstack repo | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush-project.schema.json", | ||
|
||
"operationSettings": [ | ||
{ | ||
"operationName": "build", | ||
"outputFolderNames": ["lib", "dist"] | ||
"operationName": "_phase:build", | ||
"outputFolderNames": [".heft", "lib", "dist"] | ||
}, | ||
{ | ||
"operationName": "_phase:test", | ||
"outputFolderNames": ["coverage"] | ||
} | ||
] | ||
} |
12 changes: 11 additions & 1 deletion
12
build-tests-samples/heft-node-rig-tutorial/config/jest.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json" | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json", | ||
|
||
// These additional properties exist for caching purposes in the rushstack repo | ||
|
||
// Enable code coverage for Jest | ||
"collectCoverage": true, | ||
"coverageDirectory": "<rootDir>/coverage", | ||
"coverageReporters": ["cobertura", "html"], | ||
|
||
// Use v8 coverage provider to avoid Babel | ||
"coverageProvider": "v8" | ||
} |
15 changes: 15 additions & 0 deletions
15
build-tests-samples/heft-node-rig-tutorial/config/rush-project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This file exists for caching purposes in the rushstack repo | ||
{ | ||
"extends": "@rushstack/heft-node-rig/profiles/default/config/rush-project.json", | ||
|
||
"operationSettings": [ | ||
{ | ||
"operationName": "_phase:build", | ||
"outputFolderNames": [".heft", "release"] | ||
}, | ||
{ | ||
"operationName": "_phase:test", | ||
"outputFolderNames": ["coverage"] | ||
} | ||
] | ||
} |
Oops, something went wrong.