Skip to content

Commit

Permalink
Fix caching for other projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Sep 19, 2023
1 parent d292b8a commit d0e3b31
Show file tree
Hide file tree
Showing 149 changed files with 1,005 additions and 213 deletions.
10 changes: 9 additions & 1 deletion apps/api-extractor/config/jest.config.json
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"
}
14 changes: 14 additions & 0 deletions apps/api-extractor/config/rush-project.json
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"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
10 changes: 9 additions & 1 deletion apps/heft/config/jest.config.json
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"
}
14 changes: 14 additions & 0 deletions apps/heft/config/rush-project.json
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"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
2 changes: 1 addition & 1 deletion apps/lockfile-explorer-web/config/heft.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Optionally specifies another JSON config file that this file extends from. This provides a way for standard
* settings to be shared across multiple projects.
*/
"extends": "@rushstack/heft-web-rig/profiles/app/config/heft.json",
"extends": "local-web-rig/profiles/app/config/heft.json",

"phasesByName": {
"build": {
Expand Down
2 changes: 1 addition & 1 deletion apps/lockfile-explorer-web/config/jest.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@rushstack/heft-web-rig/profiles/app/config/jest.config.json",
"extends": "local-web-rig/profiles/app/config/jest.config.json",

// Load the initappcontext.js stub when running tests
"setupFiles": ["../lib-commonjs/stub/initappcontext.js"]
Expand Down
2 changes: 1 addition & 1 deletion apps/lockfile-explorer-web/config/rig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",

"rigPackageName": "@rushstack/heft-web-rig",
"rigPackageName": "local-web-rig",
"rigProfile": "app"
}
4 changes: 1 addition & 3 deletions apps/lockfile-explorer-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
},
"devDependencies": {
"@rushstack/eslint-config": "workspace:*",
"@rushstack/heft-web-rig": "workspace:*",
"@rushstack/heft": "workspace:*",
"@types/heft-jest": "1.0.1",
"@types/react-dom": "16.9.14",
"@types/react": "16.14.23",
"@types/webpack-env": "1.18.0"
"local-web-rig": "workspace:*"
}
}
7 changes: 1 addition & 6 deletions apps/lockfile-explorer-web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "./node_modules/@rushstack/heft-web-rig/profiles/app/tsconfig-base.json",
"compilerOptions": {
"types": ["heft-jest", "webpack-env"],
"target": "es2017",
"lib": ["es2017", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"]
}
"extends": "./node_modules/local-web-rig/profiles/app/tsconfig-base.json"
}
2 changes: 1 addition & 1 deletion apps/lockfile-explorer-web/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const path = require('path');
const createWebpackConfig = require('@rushstack/heft-web-rig/profiles/app/webpack-base.config');
const createWebpackConfig = require('local-web-rig/profiles/app/webpack-base.config');

module.exports = function createConfig(env, argv) {
return createWebpackConfig({
Expand Down
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"
}
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"]
}
]
}
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"
}
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"]
}
]
}
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"
}
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"]
}
]
}
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"
}
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"]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": "@rushstack/heft-jest-plugin/includes/jest-web.config.json"
"extends": "@rushstack/heft-jest-plugin/includes/jest-web.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"
}
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"]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": "@rushstack/heft-web-rig/profiles/library/config/jest.config.json"
"extends": "@rushstack/heft-web-rig/profiles/app/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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",

"rigPackageName": "@rushstack/heft-web-rig",
"rigProfile": "library"
"rigProfile": "app"
}
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-web-rig/profiles/app/config/rush-project.json",

"operationSettings": [
{
"operationName": "_phase:build",
"outputFolderNames": [".heft", "release"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": "@rushstack/heft-web-rig/profiles/library/config/jest.config.json"
"extends": "@rushstack/heft-web-rig/profiles/library/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"
}
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-web-rig/profiles/library/config/rush-project.json",

"operationSettings": [
{
"operationName": "_phase:build",
"outputFolderNames": [".heft", "release"]
},
{
"operationName": "_phase:test",
"outputFolderNames": ["coverage"]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,15 @@
"!lib-commonjs/**/__tests__/**",
"!lib-commonjs/**/__fixtures__/**",
"!lib-commonjs/**/__mocks__/**"
]
],

// 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"
}
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"]
}
]
}
Loading

0 comments on commit d0e3b31

Please sign in to comment.