@rushstack/heft-web-rig 0.15.0-rc.5 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -12
- package/profiles/app/config/heft.json +141 -55
- package/profiles/app/config/jest.config.json +1 -16
- package/profiles/app/config/typescript.json +13 -0
- package/profiles/app/tsconfig-base.json +2 -5
- package/profiles/library/config/heft.json +141 -55
- package/profiles/library/config/jest.config.json +1 -16
- package/profiles/library/config/typescript.json +13 -0
- package/profiles/library/tsconfig-base.json +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/heft-web-rig",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "A rig package for web browser projects that build using Heft",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
"directory": "rigs/heft-web-rig"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@rushstack/heft": "0.
|
|
12
|
+
"@rushstack/heft": "^0.50.7"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@types/heft-jest": "1.0.1",
|
|
16
15
|
"autoprefixer": "~10.4.2",
|
|
17
16
|
"css-loader": "~6.6.0",
|
|
18
17
|
"css-minimizer-webpack-plugin": "~3.4.1",
|
|
@@ -27,21 +26,18 @@
|
|
|
27
26
|
"source-map-loader": "~3.0.1",
|
|
28
27
|
"style-loader": "~3.3.1",
|
|
29
28
|
"terser-webpack-plugin": "~5.3.1",
|
|
30
|
-
"typescript": "~
|
|
29
|
+
"typescript": "~5.0.4",
|
|
31
30
|
"url-loader": "~4.1.1",
|
|
32
31
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
33
32
|
"webpack-merge": "~5.8.0",
|
|
34
33
|
"webpack": "~5.80.0",
|
|
35
|
-
"@microsoft/api-extractor": "7.
|
|
36
|
-
"@rushstack/heft-
|
|
37
|
-
"@rushstack/heft-
|
|
38
|
-
"@rushstack/heft-
|
|
39
|
-
"@rushstack/heft-sass-plugin": "0.9.0-rc.5",
|
|
40
|
-
"@rushstack/heft-typescript-plugin": "0.1.0-rc.5",
|
|
41
|
-
"@rushstack/heft-webpack5-plugin": "0.7.0-rc.5"
|
|
34
|
+
"@microsoft/api-extractor": "7.35.1",
|
|
35
|
+
"@rushstack/heft-jest-plugin": "0.5.13",
|
|
36
|
+
"@rushstack/heft-webpack5-plugin": "0.6.12",
|
|
37
|
+
"@rushstack/heft-sass-plugin": "0.9.3"
|
|
42
38
|
},
|
|
43
39
|
"devDependencies": {
|
|
44
|
-
"@rushstack/heft": "0.
|
|
40
|
+
"@rushstack/heft": "0.50.7"
|
|
45
41
|
},
|
|
46
42
|
"scripts": {
|
|
47
43
|
"build": "",
|
|
@@ -10,61 +10,147 @@
|
|
|
10
10
|
*/
|
|
11
11
|
// "extends": "base-project/config/heft.json",
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
13
|
+
"eventActions": [
|
|
14
|
+
// {
|
|
15
|
+
// /**
|
|
16
|
+
// * (Required) The kind of built-in operation that should be performed.
|
|
17
|
+
// * The "deleteGlobs" action deletes files or folders that match the specified glob patterns.
|
|
18
|
+
// */
|
|
19
|
+
// "actionKind": "deleteGlobs",
|
|
20
|
+
//
|
|
21
|
+
// /**
|
|
22
|
+
// * (Required) The Heft stage when this action should be performed. Note that heft.json event actions
|
|
23
|
+
// * are scheduled after any plugin tasks have processed the event. For example, a "compile" event action
|
|
24
|
+
// * will be performed after the TypeScript compiler has been invoked.
|
|
25
|
+
// *
|
|
26
|
+
// * Options: "clean", "pre-compile", "compile", "bundle", "post-build"
|
|
27
|
+
// */
|
|
28
|
+
// "heftEvent": "clean",
|
|
29
|
+
//
|
|
30
|
+
// /**
|
|
31
|
+
// * (Required) A user-defined tag whose purpose is to allow configs to replace/delete handlers that
|
|
32
|
+
// * were added by other configs.
|
|
33
|
+
// */
|
|
34
|
+
// "actionId": "my-example-action",
|
|
35
|
+
//
|
|
36
|
+
// /**
|
|
37
|
+
// * (Required) Glob patterns to be deleted. The paths are resolved relative to the project folder.
|
|
38
|
+
// * Documentation for supported glob syntaxes: https://www.npmjs.com/package/fast-glob
|
|
39
|
+
// */
|
|
40
|
+
// "globsToDelete": [
|
|
41
|
+
// "dist",
|
|
42
|
+
// "lib",
|
|
43
|
+
// "lib-esnext",
|
|
44
|
+
// "temp"
|
|
45
|
+
// ]
|
|
46
|
+
// },
|
|
47
|
+
//
|
|
48
|
+
// {
|
|
49
|
+
// /**
|
|
50
|
+
// * (Required) The kind of built-in operation that should be performed.
|
|
51
|
+
// * The "copyFiles" action copies files that match the specified patterns.
|
|
52
|
+
// */
|
|
53
|
+
// "actionKind": "copyFiles",
|
|
54
|
+
//
|
|
55
|
+
// /**
|
|
56
|
+
// * (Required) The Heft stage when this action should be performed. Note that heft.json event actions
|
|
57
|
+
// * are scheduled after any plugin tasks have processed the event. For example, a "compile" event action
|
|
58
|
+
// * will be performed after the TypeScript compiler has been invoked.
|
|
59
|
+
// *
|
|
60
|
+
// * Options: "pre-compile", "compile", "bundle", "post-build"
|
|
61
|
+
// */
|
|
62
|
+
// "heftEvent": "pre-compile",
|
|
63
|
+
//
|
|
64
|
+
// /**
|
|
65
|
+
// * (Required) A user-defined tag whose purpose is to allow configs to replace/delete handlers that
|
|
66
|
+
// * were added by other configs.
|
|
67
|
+
// */
|
|
68
|
+
// "actionId": "my-example-action",
|
|
69
|
+
//
|
|
70
|
+
// /**
|
|
71
|
+
// * (Required) An array of copy operations to run perform during the specified Heft event.
|
|
72
|
+
// */
|
|
73
|
+
// "copyOperations": [
|
|
74
|
+
// {
|
|
75
|
+
// /**
|
|
76
|
+
// * (Required) The base folder that files will be copied from, relative to the project root.
|
|
77
|
+
// * Settings such as "includeGlobs" and "excludeGlobs" will be resolved relative
|
|
78
|
+
// * to this folder.
|
|
79
|
+
// * NOTE: Assigning "sourceFolder" does not by itself select any files to be copied.
|
|
80
|
+
// */
|
|
81
|
+
// "sourceFolder": "src",
|
|
82
|
+
//
|
|
83
|
+
// /**
|
|
84
|
+
// * (Required) One or more folders that files will be copied into, relative to the project root.
|
|
85
|
+
// * If you specify more than one destination folder, Heft will read the input files only once, using
|
|
86
|
+
// * streams to efficiently write multiple outputs.
|
|
87
|
+
// */
|
|
88
|
+
// "destinationFolders": ["dist/assets"],
|
|
89
|
+
//
|
|
90
|
+
// /**
|
|
91
|
+
// * If specified, this option recursively scans all folders under "sourceFolder" and includes any files
|
|
92
|
+
// * that match the specified extensions. (If "fileExtensions" and "includeGlobs" are both
|
|
93
|
+
// * specified, their selections are added together.)
|
|
94
|
+
// */
|
|
95
|
+
// "fileExtensions": [".jpg", ".png"],
|
|
96
|
+
//
|
|
97
|
+
// /**
|
|
98
|
+
// * A list of glob patterns that select files to be copied. The paths are resolved relative
|
|
99
|
+
// * to "sourceFolder".
|
|
100
|
+
// * Documentation for supported glob syntaxes: https://www.npmjs.com/package/fast-glob
|
|
101
|
+
// */
|
|
102
|
+
// "includeGlobs": ["assets/*.md"],
|
|
103
|
+
//
|
|
104
|
+
// /**
|
|
105
|
+
// * A list of glob patterns that exclude files/folders from being copied. The paths are resolved relative
|
|
106
|
+
// * to "sourceFolder". These exclusions eliminate items that were selected by the "includeGlobs"
|
|
107
|
+
// * or "fileExtensions" setting.
|
|
108
|
+
// */
|
|
109
|
+
// "excludeGlobs": [],
|
|
110
|
+
//
|
|
111
|
+
// /**
|
|
112
|
+
// * Normally, when files are selected under a child folder, a corresponding folder will be created in
|
|
113
|
+
// * the destination folder. Specify flatten=true to discard the source path and copy all matching files
|
|
114
|
+
// * to the same folder. If two files have the same name an error will be reported.
|
|
115
|
+
// * The default value is false.
|
|
116
|
+
// */
|
|
117
|
+
// "flatten": false,
|
|
118
|
+
//
|
|
119
|
+
// /**
|
|
120
|
+
// * If true, filesystem hard links will be created instead of copying the file. Depending on the
|
|
121
|
+
// * operating system, this may be faster. (But note that it may cause unexpected behavior if a tool
|
|
122
|
+
// * modifies the link.) The default value is false.
|
|
123
|
+
// */
|
|
124
|
+
// "hardlink": false
|
|
125
|
+
// }
|
|
126
|
+
// ]
|
|
127
|
+
// }
|
|
55
128
|
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"pluginPackage": "@rushstack/heft-jest-plugin",
|
|
62
|
-
"options": {
|
|
63
|
-
"folderNameForTests": "lib-commonjs"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
129
|
+
{
|
|
130
|
+
"actionKind": "deleteGlobs",
|
|
131
|
+
"heftEvent": "clean",
|
|
132
|
+
"actionId": "defaultClean",
|
|
133
|
+
"globsToDelete": ["dist", "lib", "lib-amd", "lib-commonjs", "lib-es6", "temp"]
|
|
68
134
|
}
|
|
69
|
-
|
|
135
|
+
],
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The list of Heft plugins to be loaded.
|
|
139
|
+
*/
|
|
140
|
+
"heftPlugins": [
|
|
141
|
+
// {
|
|
142
|
+
// /**
|
|
143
|
+
// * The path to the plugin package.
|
|
144
|
+
// */
|
|
145
|
+
// "plugin": "path/to/my-plugin",
|
|
146
|
+
//
|
|
147
|
+
// /**
|
|
148
|
+
// * An optional object that provides additional settings that may be defined by the plugin.
|
|
149
|
+
// */
|
|
150
|
+
// // "options": { }
|
|
151
|
+
// }
|
|
152
|
+
{ "plugin": "@rushstack/heft-jest-plugin" },
|
|
153
|
+
{ "plugin": "@rushstack/heft-sass-plugin" },
|
|
154
|
+
{ "plugin": "@rushstack/heft-webpack5-plugin" }
|
|
155
|
+
]
|
|
70
156
|
}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json",
|
|
3
3
|
|
|
4
|
-
"testEnvironment": "jest-environment-jsdom"
|
|
5
|
-
|
|
6
|
-
// "Adding '<rootDir>/lib-commonjs' here enables lib-commonjs/__mocks__ to be used for mocking Node.js system modules
|
|
7
|
-
"roots": ["<rootDir>/lib-commonjs"],
|
|
8
|
-
|
|
9
|
-
"testMatch": ["<rootDir>/lib-commonjs/**/*.test.js"],
|
|
10
|
-
|
|
11
|
-
"collectCoverageFrom": [
|
|
12
|
-
"lib-commonjs/**/*.js",
|
|
13
|
-
"!lib-commonjs/**/*.d.ts",
|
|
14
|
-
"!lib-commonjs/**/*.test.js",
|
|
15
|
-
"!lib-commonjs/**/test/**",
|
|
16
|
-
"!lib-commonjs/**/__tests__/**",
|
|
17
|
-
"!lib-commonjs/**/__fixtures__/**",
|
|
18
|
-
"!lib-commonjs/**/__mocks__/**"
|
|
19
|
-
]
|
|
4
|
+
"testEnvironment": "jest-environment-jsdom"
|
|
20
5
|
}
|
|
@@ -43,6 +43,19 @@
|
|
|
43
43
|
*/
|
|
44
44
|
// "emitMjsExtensionForESModule": true,
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the intermediary folder that tests will use. Because Jest uses the
|
|
48
|
+
* Node.js runtime to execute tests, the module format must be CommonJS.
|
|
49
|
+
*
|
|
50
|
+
* The default value is "lib".
|
|
51
|
+
*/
|
|
52
|
+
"emitFolderNameForTests": "lib-commonjs",
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* If set to "true", the TSlint task will not be invoked.
|
|
56
|
+
*/
|
|
57
|
+
// "disableTslint": true,
|
|
58
|
+
|
|
46
59
|
/**
|
|
47
60
|
* Set this to change the maximum number of file handles that will be opened concurrently for writing.
|
|
48
61
|
* The default is 50.
|
|
@@ -20,15 +20,12 @@
|
|
|
20
20
|
"allowUnreachableCode": false,
|
|
21
21
|
"importHelpers": true,
|
|
22
22
|
|
|
23
|
-
"types": [
|
|
24
|
-
"typeRoots": ["../../../../../node_modules/@types", "../../node_modules/@types"],
|
|
23
|
+
"types": [],
|
|
25
24
|
|
|
26
25
|
"module": "esnext",
|
|
27
26
|
"moduleResolution": "node",
|
|
28
27
|
"target": "es5",
|
|
29
|
-
"lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"]
|
|
30
|
-
|
|
31
|
-
"incremental": true
|
|
28
|
+
"lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"]
|
|
32
29
|
},
|
|
33
30
|
"include": ["../../../../../src/**/*.ts", "../../../../../src/**/*.tsx"]
|
|
34
31
|
}
|
|
@@ -10,61 +10,147 @@
|
|
|
10
10
|
*/
|
|
11
11
|
// "extends": "base-project/config/heft.json",
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
13
|
+
"eventActions": [
|
|
14
|
+
// {
|
|
15
|
+
// /**
|
|
16
|
+
// * (Required) The kind of built-in operation that should be performed.
|
|
17
|
+
// * The "deleteGlobs" action deletes files or folders that match the specified glob patterns.
|
|
18
|
+
// */
|
|
19
|
+
// "actionKind": "deleteGlobs",
|
|
20
|
+
//
|
|
21
|
+
// /**
|
|
22
|
+
// * (Required) The Heft stage when this action should be performed. Note that heft.json event actions
|
|
23
|
+
// * are scheduled after any plugin tasks have processed the event. For example, a "compile" event action
|
|
24
|
+
// * will be performed after the TypeScript compiler has been invoked.
|
|
25
|
+
// *
|
|
26
|
+
// * Options: "clean", "pre-compile", "compile", "bundle", "post-build"
|
|
27
|
+
// */
|
|
28
|
+
// "heftEvent": "clean",
|
|
29
|
+
//
|
|
30
|
+
// /**
|
|
31
|
+
// * (Required) A user-defined tag whose purpose is to allow configs to replace/delete handlers that
|
|
32
|
+
// * were added by other configs.
|
|
33
|
+
// */
|
|
34
|
+
// "actionId": "my-example-action",
|
|
35
|
+
//
|
|
36
|
+
// /**
|
|
37
|
+
// * (Required) Glob patterns to be deleted. The paths are resolved relative to the project folder.
|
|
38
|
+
// * Documentation for supported glob syntaxes: https://www.npmjs.com/package/fast-glob
|
|
39
|
+
// */
|
|
40
|
+
// "globsToDelete": [
|
|
41
|
+
// "dist",
|
|
42
|
+
// "lib",
|
|
43
|
+
// "lib-esnext",
|
|
44
|
+
// "temp"
|
|
45
|
+
// ]
|
|
46
|
+
// },
|
|
47
|
+
//
|
|
48
|
+
// {
|
|
49
|
+
// /**
|
|
50
|
+
// * (Required) The kind of built-in operation that should be performed.
|
|
51
|
+
// * The "copyFiles" action copies files that match the specified patterns.
|
|
52
|
+
// */
|
|
53
|
+
// "actionKind": "copyFiles",
|
|
54
|
+
//
|
|
55
|
+
// /**
|
|
56
|
+
// * (Required) The Heft stage when this action should be performed. Note that heft.json event actions
|
|
57
|
+
// * are scheduled after any plugin tasks have processed the event. For example, a "compile" event action
|
|
58
|
+
// * will be performed after the TypeScript compiler has been invoked.
|
|
59
|
+
// *
|
|
60
|
+
// * Options: "pre-compile", "compile", "bundle", "post-build"
|
|
61
|
+
// */
|
|
62
|
+
// "heftEvent": "pre-compile",
|
|
63
|
+
//
|
|
64
|
+
// /**
|
|
65
|
+
// * (Required) A user-defined tag whose purpose is to allow configs to replace/delete handlers that
|
|
66
|
+
// * were added by other configs.
|
|
67
|
+
// */
|
|
68
|
+
// "actionId": "my-example-action",
|
|
69
|
+
//
|
|
70
|
+
// /**
|
|
71
|
+
// * (Required) An array of copy operations to run perform during the specified Heft event.
|
|
72
|
+
// */
|
|
73
|
+
// "copyOperations": [
|
|
74
|
+
// {
|
|
75
|
+
// /**
|
|
76
|
+
// * (Required) The base folder that files will be copied from, relative to the project root.
|
|
77
|
+
// * Settings such as "includeGlobs" and "excludeGlobs" will be resolved relative
|
|
78
|
+
// * to this folder.
|
|
79
|
+
// * NOTE: Assigning "sourceFolder" does not by itself select any files to be copied.
|
|
80
|
+
// */
|
|
81
|
+
// "sourceFolder": "src",
|
|
82
|
+
//
|
|
83
|
+
// /**
|
|
84
|
+
// * (Required) One or more folders that files will be copied into, relative to the project root.
|
|
85
|
+
// * If you specify more than one destination folder, Heft will read the input files only once, using
|
|
86
|
+
// * streams to efficiently write multiple outputs.
|
|
87
|
+
// */
|
|
88
|
+
// "destinationFolders": ["dist/assets"],
|
|
89
|
+
//
|
|
90
|
+
// /**
|
|
91
|
+
// * If specified, this option recursively scans all folders under "sourceFolder" and includes any files
|
|
92
|
+
// * that match the specified extensions. (If "fileExtensions" and "includeGlobs" are both
|
|
93
|
+
// * specified, their selections are added together.)
|
|
94
|
+
// */
|
|
95
|
+
// "fileExtensions": [".jpg", ".png"],
|
|
96
|
+
//
|
|
97
|
+
// /**
|
|
98
|
+
// * A list of glob patterns that select files to be copied. The paths are resolved relative
|
|
99
|
+
// * to "sourceFolder".
|
|
100
|
+
// * Documentation for supported glob syntaxes: https://www.npmjs.com/package/fast-glob
|
|
101
|
+
// */
|
|
102
|
+
// "includeGlobs": ["assets/*.md"],
|
|
103
|
+
//
|
|
104
|
+
// /**
|
|
105
|
+
// * A list of glob patterns that exclude files/folders from being copied. The paths are resolved relative
|
|
106
|
+
// * to "sourceFolder". These exclusions eliminate items that were selected by the "includeGlobs"
|
|
107
|
+
// * or "fileExtensions" setting.
|
|
108
|
+
// */
|
|
109
|
+
// "excludeGlobs": [],
|
|
110
|
+
//
|
|
111
|
+
// /**
|
|
112
|
+
// * Normally, when files are selected under a child folder, a corresponding folder will be created in
|
|
113
|
+
// * the destination folder. Specify flatten=true to discard the source path and copy all matching files
|
|
114
|
+
// * to the same folder. If two files have the same name an error will be reported.
|
|
115
|
+
// * The default value is false.
|
|
116
|
+
// */
|
|
117
|
+
// "flatten": false,
|
|
118
|
+
//
|
|
119
|
+
// /**
|
|
120
|
+
// * If true, filesystem hard links will be created instead of copying the file. Depending on the
|
|
121
|
+
// * operating system, this may be faster. (But note that it may cause unexpected behavior if a tool
|
|
122
|
+
// * modifies the link.) The default value is false.
|
|
123
|
+
// */
|
|
124
|
+
// "hardlink": false
|
|
125
|
+
// }
|
|
126
|
+
// ]
|
|
127
|
+
// }
|
|
55
128
|
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"pluginPackage": "@rushstack/heft-jest-plugin",
|
|
62
|
-
"options": {
|
|
63
|
-
"folderNameForTests": "lib-commonjs"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
129
|
+
{
|
|
130
|
+
"actionKind": "deleteGlobs",
|
|
131
|
+
"heftEvent": "clean",
|
|
132
|
+
"actionId": "defaultClean",
|
|
133
|
+
"globsToDelete": ["dist", "lib", "lib-amd", "lib-commonjs", "lib-es6", "temp"]
|
|
68
134
|
}
|
|
69
|
-
|
|
135
|
+
],
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The list of Heft plugins to be loaded.
|
|
139
|
+
*/
|
|
140
|
+
"heftPlugins": [
|
|
141
|
+
// {
|
|
142
|
+
// /**
|
|
143
|
+
// * The path to the plugin package.
|
|
144
|
+
// */
|
|
145
|
+
// "plugin": "path/to/my-plugin",
|
|
146
|
+
//
|
|
147
|
+
// /**
|
|
148
|
+
// * An optional object that provides additional settings that may be defined by the plugin.
|
|
149
|
+
// */
|
|
150
|
+
// // "options": { }
|
|
151
|
+
// }
|
|
152
|
+
{ "plugin": "@rushstack/heft-jest-plugin" },
|
|
153
|
+
{ "plugin": "@rushstack/heft-sass-plugin" },
|
|
154
|
+
{ "plugin": "@rushstack/heft-webpack5-plugin" }
|
|
155
|
+
]
|
|
70
156
|
}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json",
|
|
3
3
|
|
|
4
|
-
"testEnvironment": "jest-environment-jsdom"
|
|
5
|
-
|
|
6
|
-
// "Adding '<rootDir>/lib-commonjs' here enables lib-commonjs/__mocks__ to be used for mocking Node.js system modules
|
|
7
|
-
"roots": ["<rootDir>/lib-commonjs"],
|
|
8
|
-
|
|
9
|
-
"testMatch": ["<rootDir>/lib-commonjs/**/*.test.js"],
|
|
10
|
-
|
|
11
|
-
"collectCoverageFrom": [
|
|
12
|
-
"lib-commonjs/**/*.js",
|
|
13
|
-
"!lib-commonjs/**/*.d.ts",
|
|
14
|
-
"!lib-commonjs/**/*.test.js",
|
|
15
|
-
"!lib-commonjs/**/test/**",
|
|
16
|
-
"!lib-commonjs/**/__tests__/**",
|
|
17
|
-
"!lib-commonjs/**/__fixtures__/**",
|
|
18
|
-
"!lib-commonjs/**/__mocks__/**"
|
|
19
|
-
]
|
|
4
|
+
"testEnvironment": "jest-environment-jsdom"
|
|
20
5
|
}
|
|
@@ -43,6 +43,19 @@
|
|
|
43
43
|
*/
|
|
44
44
|
// "emitMjsExtensionForESModule": true,
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the intermediary folder that tests will use. Because Jest uses the
|
|
48
|
+
* Node.js runtime to execute tests, the module format must be CommonJS.
|
|
49
|
+
*
|
|
50
|
+
* The default value is "lib".
|
|
51
|
+
*/
|
|
52
|
+
"emitFolderNameForTests": "lib-commonjs",
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* If set to "true", the TSlint task will not be invoked.
|
|
56
|
+
*/
|
|
57
|
+
// "disableTslint": true,
|
|
58
|
+
|
|
46
59
|
/**
|
|
47
60
|
* Set this to change the maximum number of file handles that will be opened concurrently for writing.
|
|
48
61
|
* The default is 50.
|
|
@@ -20,15 +20,12 @@
|
|
|
20
20
|
"allowUnreachableCode": false,
|
|
21
21
|
"importHelpers": true,
|
|
22
22
|
|
|
23
|
-
"types": [
|
|
24
|
-
"typeRoots": ["../../../../../node_modules/@types", "../../node_modules/@types"],
|
|
23
|
+
"types": [],
|
|
25
24
|
|
|
26
25
|
"module": "esnext",
|
|
27
26
|
"moduleResolution": "node",
|
|
28
27
|
"target": "es5",
|
|
29
|
-
"lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"]
|
|
30
|
-
|
|
31
|
-
"incremental": true
|
|
28
|
+
"lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"]
|
|
32
29
|
},
|
|
33
30
|
"include": ["../../../../../src/**/*.ts", "../../../../../src/**/*.tsx"]
|
|
34
31
|
}
|