@microsoft/sp-build-web 1.22.2 → 1.23.0-beta.2
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/lib-commonjs/SPBuildRig.js +7 -22
- package/lib-commonjs/SPWebBuildRig.js +1 -18
- package/lib-esm/SPBuildRig.js +7 -22
- package/lib-esm/SPWebBuildRig.js +1 -18
- package/package.json +6 -6
|
@@ -25,19 +25,6 @@ const _semver = /*#__PURE__*/ _interop_require_wildcard(require("semver"));
|
|
|
25
25
|
const _gulpcorebuild = /*#__PURE__*/ _interop_require_wildcard(require("@microsoft/gulp-core-build"));
|
|
26
26
|
const _gulpcorebuildtypescript = require("@microsoft/gulp-core-build-typescript");
|
|
27
27
|
const _BuildRigConstants = require("./BuildRigConstants");
|
|
28
|
-
function _define_property(obj, key, value) {
|
|
29
|
-
if (key in obj) {
|
|
30
|
-
Object.defineProperty(obj, key, {
|
|
31
|
-
value: value,
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true
|
|
35
|
-
});
|
|
36
|
-
} else {
|
|
37
|
-
obj[key] = value;
|
|
38
|
-
}
|
|
39
|
-
return obj;
|
|
40
|
-
}
|
|
41
28
|
function _getRequireWildcardCache(nodeInterop) {
|
|
42
29
|
if (typeof WeakMap !== "function") return null;
|
|
43
30
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -82,6 +69,13 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
82
69
|
const preCopy = new _gulpcorebuild.CopyTask();
|
|
83
70
|
const postCopy = new _gulpcorebuild.CopyTask();
|
|
84
71
|
class SPBuildRig {
|
|
72
|
+
_preBuildTasks = [];
|
|
73
|
+
_postTypescriptTasks = [];
|
|
74
|
+
_postBuildTasks = [];
|
|
75
|
+
_postTelemetryTask = [];
|
|
76
|
+
_preTelemetryTask = [];
|
|
77
|
+
args;
|
|
78
|
+
nodeSupportedVersionRange = '>=18.17.1 <19.0.0 || >=20.11.0 <21.0.0 || >=22.14.0 <23.0.0';
|
|
85
79
|
initialize(gulp) {
|
|
86
80
|
if (!_semver.satisfies(process.version, this.nodeSupportedVersionRange)) {
|
|
87
81
|
const nodeVersionMessage = `Your dev environment is running NodeJS version ${process.version} which does` + ' not meet the requirements for running this tool. This tool requires a version of NodeJS' + ` that matches "${this.nodeSupportedVersionRange}".`;
|
|
@@ -272,15 +266,6 @@ class SPBuildRig {
|
|
|
272
266
|
_gulpcorebuild.verbose(`Disabling task: ${task.name}`);
|
|
273
267
|
});
|
|
274
268
|
}
|
|
275
|
-
constructor(){
|
|
276
|
-
_define_property(this, "_preBuildTasks", []);
|
|
277
|
-
_define_property(this, "_postTypescriptTasks", []);
|
|
278
|
-
_define_property(this, "_postBuildTasks", []);
|
|
279
|
-
_define_property(this, "_postTelemetryTask", []);
|
|
280
|
-
_define_property(this, "_preTelemetryTask", []);
|
|
281
|
-
_define_property(this, "args", void 0);
|
|
282
|
-
_define_property(this, "nodeSupportedVersionRange", '>=18.17.1 <19.0.0 || >=20.11.0 <21.0.0 || >=22.14.0 <23.0.0');
|
|
283
|
-
}
|
|
284
269
|
}
|
|
285
270
|
|
|
286
271
|
//# sourceMappingURL=./SPBuildRig.js.map
|
|
@@ -26,19 +26,6 @@ const _gulpcorebuildtypescript = require("@microsoft/gulp-core-build-typescript"
|
|
|
26
26
|
const _WebBuildRigConstants = require("./WebBuildRigConstants");
|
|
27
27
|
const _SPBuildRig = require("./SPBuildRig");
|
|
28
28
|
const _BuildRigConstants = require("./BuildRigConstants");
|
|
29
|
-
function _define_property(obj, key, value) {
|
|
30
|
-
if (key in obj) {
|
|
31
|
-
Object.defineProperty(obj, key, {
|
|
32
|
-
value: value,
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true,
|
|
35
|
-
writable: true
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
obj[key] = value;
|
|
39
|
-
}
|
|
40
|
-
return obj;
|
|
41
|
-
}
|
|
42
29
|
function _interop_require_default(obj) {
|
|
43
30
|
return obj && obj.__esModule ? obj : {
|
|
44
31
|
default: obj
|
|
@@ -91,6 +78,7 @@ const serveWatchFilter = [
|
|
|
91
78
|
'node_modules/*/*/dist/*.manifest.json'
|
|
92
79
|
];
|
|
93
80
|
class SPWebBuildRig extends _SPBuildRig.SPBuildRig {
|
|
81
|
+
_postBundleTasks = [];
|
|
94
82
|
addPostBundleTask(tasks) {
|
|
95
83
|
this.addTaskOrListOfTasks(tasks, this._postBundleTasks);
|
|
96
84
|
}
|
|
@@ -240,11 +228,6 @@ class SPWebBuildRig extends _SPBuildRig.SPBuildRig {
|
|
|
240
228
|
getPreCopyAssetsTasks() {
|
|
241
229
|
return (0, _gulpcorebuild.serial)();
|
|
242
230
|
}
|
|
243
|
-
constructor(...args){
|
|
244
|
-
super(...args);
|
|
245
|
-
_define_property(this, "args", void 0);
|
|
246
|
-
_define_property(this, "_postBundleTasks", []);
|
|
247
|
-
}
|
|
248
231
|
}
|
|
249
232
|
|
|
250
233
|
//# sourceMappingURL=./SPWebBuildRig.js.map
|
package/lib-esm/SPBuildRig.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
1
|
import * as fs from 'node:fs';
|
|
15
2
|
import * as yargs from 'yargs';
|
|
16
3
|
import * as semver from 'semver';
|
|
@@ -23,6 +10,13 @@ export const postCopy = new coreBuild.CopyTask();
|
|
|
23
10
|
* This class represents the basic shared build rig for all SPFx Rigs. It defines a few
|
|
24
11
|
* simple sub-tasks, and only registers a "build" task.
|
|
25
12
|
*/ export class SPBuildRig {
|
|
13
|
+
_preBuildTasks = [];
|
|
14
|
+
_postTypescriptTasks = [];
|
|
15
|
+
_postBuildTasks = [];
|
|
16
|
+
_postTelemetryTask = [];
|
|
17
|
+
_preTelemetryTask = [];
|
|
18
|
+
args;
|
|
19
|
+
nodeSupportedVersionRange = '>=18.17.1 <19.0.0 || >=20.11.0 <21.0.0 || >=22.14.0 <23.0.0';
|
|
26
20
|
initialize(gulp) {
|
|
27
21
|
if (!semver.satisfies(process.version, this.nodeSupportedVersionRange)) {
|
|
28
22
|
const nodeVersionMessage = `Your dev environment is running NodeJS version ${process.version} which does` + ' not meet the requirements for running this tool. This tool requires a version of NodeJS' + ` that matches "${this.nodeSupportedVersionRange}".`;
|
|
@@ -213,15 +207,6 @@ export const postCopy = new coreBuild.CopyTask();
|
|
|
213
207
|
coreBuild.verbose(`Disabling task: ${task.name}`);
|
|
214
208
|
});
|
|
215
209
|
}
|
|
216
|
-
constructor(){
|
|
217
|
-
_define_property(this, "_preBuildTasks", []);
|
|
218
|
-
_define_property(this, "_postTypescriptTasks", []);
|
|
219
|
-
_define_property(this, "_postBuildTasks", []);
|
|
220
|
-
_define_property(this, "_postTelemetryTask", []);
|
|
221
|
-
_define_property(this, "_preTelemetryTask", []);
|
|
222
|
-
_define_property(this, "args", void 0);
|
|
223
|
-
_define_property(this, "nodeSupportedVersionRange", '>=18.17.1 <19.0.0 || >=20.11.0 <21.0.0 || >=22.14.0 <23.0.0');
|
|
224
|
-
}
|
|
225
210
|
}
|
|
226
211
|
|
|
227
212
|
//# sourceMappingURL=./SPBuildRig.js.map
|
package/lib-esm/SPWebBuildRig.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
1
|
import sass from '@microsoft/gulp-core-build-sass';
|
|
15
2
|
import { reload, trustDevCert, untrustDevCert } from '@microsoft/gulp-core-build-serve';
|
|
16
3
|
import { copyStaticAssets, jest, parallel, serial, watch } from '@microsoft/gulp-core-build';
|
|
@@ -27,6 +14,7 @@ export const serveWatchFilter = [
|
|
|
27
14
|
'node_modules/*/*/dist/*.manifest.json'
|
|
28
15
|
];
|
|
29
16
|
export class SPWebBuildRig extends SPBuildRig {
|
|
17
|
+
_postBundleTasks = [];
|
|
30
18
|
addPostBundleTask(tasks) {
|
|
31
19
|
this.addTaskOrListOfTasks(tasks, this._postBundleTasks);
|
|
32
20
|
}
|
|
@@ -176,11 +164,6 @@ export class SPWebBuildRig extends SPBuildRig {
|
|
|
176
164
|
getPreCopyAssetsTasks() {
|
|
177
165
|
return serial();
|
|
178
166
|
}
|
|
179
|
-
constructor(...args){
|
|
180
|
-
super(...args);
|
|
181
|
-
_define_property(this, "args", void 0);
|
|
182
|
-
_define_property(this, "_postBundleTasks", []);
|
|
183
|
-
}
|
|
184
167
|
}
|
|
185
168
|
|
|
186
169
|
//# sourceMappingURL=./SPWebBuildRig.js.map
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-build-web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0-beta.2",
|
|
4
4
|
"description": "SharePoint Framework build rig for web projects",
|
|
5
|
-
"license": "https://aka.ms/spfx/license",
|
|
6
5
|
"homepage": "http://aka.ms/spfx",
|
|
6
|
+
"license": "https://aka.ms/spfx/license",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18.17.1 <19.0.0 || >=22.14.0 < 23.0.0"
|
|
9
9
|
},
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@microsoft/gulp-core-build-webpack": "6.0.3",
|
|
39
39
|
"gulp": "4.0.2",
|
|
40
40
|
"semver": "~7.7.0",
|
|
41
|
-
"webpack": "
|
|
41
|
+
"webpack": "5.105.4",
|
|
42
42
|
"yargs": "~4.6.0",
|
|
43
|
-
"@microsoft/sp-build-core-tasks": "1.
|
|
43
|
+
"@microsoft/sp-build-core-tasks": "1.23.0-beta.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@rushstack/heft": "1.
|
|
46
|
+
"@rushstack/heft": "1.2.7",
|
|
47
47
|
"@types/semver": "7.7.0",
|
|
48
|
-
"eslint": "
|
|
48
|
+
"eslint": "9.37.0",
|
|
49
49
|
"@msinternal/internal-node-rig": "0.1.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|