@microsoft/sp-build-web 1.14.0 → 1.15.0-rc.0
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/SPBuildRig.d.ts.map +1 -1
- package/lib/SPBuildRig.js +4 -4
- package/lib/SPWebBuildRig.js +9 -9
- package/lib/index.js +9 -4
- package/package.json +10 -10
package/lib/SPBuildRig.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SPBuildRig.d.ts","sourceRoot":"","sources":["../src/SPBuildRig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,SAAS,MAAM,4BAA4B,CAAC;AAMxD,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,QAAmC,CAAC;AACpE,eAAO,MAAM,QAAQ,EAAE,SAAS,CAAC,QAAmC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,eAAe;IAE9B,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IAEd,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,SAAS,CAAC,WAAW,CAAC;IAClC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,qBAAa,UAAU;IACrB,SAAS,CAAC,cAAc,EAAE,SAAS,CAAC,WAAW,EAAE,CAAM;IACvD,SAAS,CAAC,oBAAoB,EAAE,SAAS,CAAC,WAAW,EAAE,CAAM;IAC7D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AI,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC;IASlD;;OAEG;IACH,SAAS,CAAC,YAAY,IAAI,SAAS,CAAC,WAAW;IAU/C;;OAEG;IACH,SAAS,CAAC,gBAAgB,IAAI,SAAS,CAAC,WAAW;IAOnD;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAKnC;;;;;OAKG;IACH,SAAS,CAAC,oBAAoB,IAAI,IAAI;IAMtC,SAAS,CAAC,oBAAoB,CAC5B,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,EAAE,EACtD,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,GAC7B,IAAI;IAQP,SAAS,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,GAAG,IAAI;CAMjE"}
|
package/lib/SPBuildRig.js
CHANGED
|
@@ -20,7 +20,7 @@ class SPBuildRig {
|
|
|
20
20
|
this._postBuildTasks = [];
|
|
21
21
|
this._postTelemetryTask = [];
|
|
22
22
|
this._preTelemetryTask = [];
|
|
23
|
-
this.nodeSupportedVersionRange = '>=
|
|
23
|
+
this.nodeSupportedVersionRange = '>=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0';
|
|
24
24
|
}
|
|
25
25
|
initialize(gulp) {
|
|
26
26
|
if (!semver.satisfies(process.version, this.nodeSupportedVersionRange)) {
|
|
@@ -66,7 +66,7 @@ class SPBuildRig {
|
|
|
66
66
|
// Try to ensure the casing of the rootPath is correct
|
|
67
67
|
try {
|
|
68
68
|
const originalRootPath = coreBuild.getConfig().rootPath;
|
|
69
|
-
const normalizedRootPath = true_case_path_1.trueCasePathSync(originalRootPath);
|
|
69
|
+
const normalizedRootPath = (0, true_case_path_1.trueCasePathSync)(originalRootPath);
|
|
70
70
|
if (normalizedRootPath !== originalRootPath) {
|
|
71
71
|
coreBuild.mergeConfig({
|
|
72
72
|
rootPath: normalizedRootPath
|
|
@@ -183,7 +183,7 @@ class SPBuildRig {
|
|
|
183
183
|
* Override this function to redefine the core build loop
|
|
184
184
|
*/
|
|
185
185
|
getCoreBuildTask() {
|
|
186
|
-
return coreBuild.parallel(gulp_core_build_typescript_1.
|
|
186
|
+
return coreBuild.parallel(gulp_core_build_typescript_1.lintCmd, coreBuild.serial(coreBuild.serial(gulp_core_build_typescript_1.tscCmd, gulp_core_build_typescript_1.apiExtractor), coreBuild.serial(...this._postTypescriptTasks)));
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* Override this function to do configuration before the configuration .json files have been loaded
|
|
@@ -200,7 +200,7 @@ class SPBuildRig {
|
|
|
200
200
|
*/
|
|
201
201
|
finalizeSharedConfig() {
|
|
202
202
|
if (this.args.lite) {
|
|
203
|
-
this._disableTasks(gulp_core_build_typescript_1.
|
|
203
|
+
this._disableTasks(gulp_core_build_typescript_1.lintCmd);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
addTaskOrListOfTasks(tasks, array) {
|
package/lib/SPWebBuildRig.js
CHANGED
|
@@ -74,7 +74,7 @@ class SPWebBuildRig extends SPBuildRig_1.SPBuildRig {
|
|
|
74
74
|
gulp_core_build_typescript_1.tscCmd.mergeConfig({
|
|
75
75
|
allowBuiltinCompiler: true
|
|
76
76
|
});
|
|
77
|
-
gulp_core_build_typescript_1.
|
|
77
|
+
gulp_core_build_typescript_1.lintCmd.mergeConfig({
|
|
78
78
|
allowBuiltinCompiler: true
|
|
79
79
|
});
|
|
80
80
|
gulp_core_build_typescript_1.apiExtractor.mergeConfig({
|
|
@@ -122,7 +122,7 @@ class SPWebBuildRig extends SPBuildRig_1.SPBuildRig {
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.serve, {
|
|
125
|
-
executable: gulp_core_build_1.serial(spBuildCoreTasks.serve, gulp_core_build_1.watch(exports.serveWatchFilter, gulp_core_build_1.serial(this._preTelemetryTask, result.get(WebBuildRigConstants_1.WebBuildRigConstants.tasks.bundle).executable, gulp_core_build_serve_1.reload, this._postTelemetryTask))),
|
|
125
|
+
executable: (0, gulp_core_build_1.serial)(spBuildCoreTasks.serve, (0, gulp_core_build_1.watch)(exports.serveWatchFilter, (0, gulp_core_build_1.serial)(this._preTelemetryTask, result.get(WebBuildRigConstants_1.WebBuildRigConstants.tasks.bundle).executable, gulp_core_build_serve_1.reload, this._postTelemetryTask))),
|
|
126
126
|
arguments: (yargs) => {
|
|
127
127
|
return yargs
|
|
128
128
|
.option('port', {
|
|
@@ -153,7 +153,7 @@ class SPWebBuildRig extends SPBuildRig_1.SPBuildRig {
|
|
|
153
153
|
});
|
|
154
154
|
result.forEach((taskDefinition, name) => {
|
|
155
155
|
result.set(name, {
|
|
156
|
-
executable: gulp_core_build_1.serial(gulp_core_build_1.serial(this._preTelemetryTask), taskDefinition.executable, gulp_core_build_1.serial(this._postTelemetryTask)),
|
|
156
|
+
executable: (0, gulp_core_build_1.serial)((0, gulp_core_build_1.serial)(this._preTelemetryTask), taskDefinition.executable, (0, gulp_core_build_1.serial)(this._postTelemetryTask)),
|
|
157
157
|
arguments: taskDefinition.arguments
|
|
158
158
|
});
|
|
159
159
|
});
|
|
@@ -161,22 +161,22 @@ class SPWebBuildRig extends SPBuildRig_1.SPBuildRig {
|
|
|
161
161
|
return result;
|
|
162
162
|
}
|
|
163
163
|
getTestTask() {
|
|
164
|
-
return gulp_core_build_1.serial(this.getBundleTask(), gulp_core_build_1.jest);
|
|
164
|
+
return (0, gulp_core_build_1.serial)(this.getBundleTask(), gulp_core_build_1.jest);
|
|
165
165
|
}
|
|
166
166
|
getTestOnlyTask() {
|
|
167
|
-
return gulp_core_build_1.serial(gulp_core_build_1.jest);
|
|
167
|
+
return (0, gulp_core_build_1.serial)(gulp_core_build_1.jest);
|
|
168
168
|
}
|
|
169
169
|
getCoreBuildTask() {
|
|
170
|
-
return gulp_core_build_1.parallel(gulp_core_build_1.serial(gulp_core_build_sass_1.default, super.getCoreBuildTask()), gulp_core_build_1.copyStaticAssets);
|
|
170
|
+
return (0, gulp_core_build_1.parallel)((0, gulp_core_build_1.serial)(gulp_core_build_sass_1.default, super.getCoreBuildTask()), gulp_core_build_1.copyStaticAssets);
|
|
171
171
|
}
|
|
172
172
|
getBundleTask() {
|
|
173
|
-
return gulp_core_build_1.serial(this.getBuildTask(), this.getPreWebpackTasks(), spBuildCoreTasks.configureWebpack, gulp_core_build_webpack_1.webpack, this.getPreCopyAssetsTasks(), gulp_core_build_1.parallel(this._postBundleTasks));
|
|
173
|
+
return (0, gulp_core_build_1.serial)(this.getBuildTask(), this.getPreWebpackTasks(), spBuildCoreTasks.configureWebpack, gulp_core_build_webpack_1.webpack, this.getPreCopyAssetsTasks(), (0, gulp_core_build_1.parallel)(this._postBundleTasks));
|
|
174
174
|
}
|
|
175
175
|
getPreWebpackTasks() {
|
|
176
|
-
return gulp_core_build_1.serial();
|
|
176
|
+
return (0, gulp_core_build_1.serial)();
|
|
177
177
|
}
|
|
178
178
|
getPreCopyAssetsTasks() {
|
|
179
|
-
return gulp_core_build_1.serial();
|
|
179
|
+
return (0, gulp_core_build_1.serial)();
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
exports.SPWebBuildRig = SPWebBuildRig;
|
package/lib/index.js
CHANGED
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
// tslint:disable:export-name
|
|
3
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
4
|
if (k2 === undefined) k2 = k;
|
|
5
|
-
Object.
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
6
10
|
}) : (function(o, m, k, k2) {
|
|
7
11
|
if (k2 === undefined) k2 = k;
|
|
8
12
|
o[k2] = m[k];
|
|
9
13
|
}));
|
|
10
14
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
11
|
-
for (var p in m) if (p !== "default" && !
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
12
16
|
};
|
|
13
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.initialize = exports.rig = void 0;
|
|
18
|
+
exports.initialize = exports.rig = exports.untrustDevCert = exports.trustDevCert = exports.reload = void 0;
|
|
15
19
|
__exportStar(require("@microsoft/gulp-core-build-sass"), exports);
|
|
16
20
|
__exportStar(require("@microsoft/gulp-core-build-typescript"), exports);
|
|
17
21
|
// Don't export "serve" from GCB-serve. Export it from sp-build-core-tasks
|
|
@@ -28,8 +32,9 @@ __exportStar(require("./SPBuildRig"), exports);
|
|
|
28
32
|
const SPWebBuildRig_1 = require("./SPWebBuildRig");
|
|
29
33
|
exports.rig = new SPWebBuildRig_1.SPWebBuildRig();
|
|
30
34
|
// Replace gcb.initialize to call our init stuff first.
|
|
31
|
-
|
|
35
|
+
const initialize = (gulp) => {
|
|
32
36
|
exports.rig.initialize(gulp);
|
|
33
37
|
return exports.rig;
|
|
34
38
|
};
|
|
39
|
+
exports.initialize = initialize;
|
|
35
40
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-build-web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0-rc.0",
|
|
4
4
|
"description": "SharePoint Framework build rig for web projects",
|
|
5
5
|
"license": "SEE LICENSE IN \"EULA\" FOLDER",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
7
7
|
"scripts": {},
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0"
|
|
9
|
+
"node": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0"
|
|
10
10
|
},
|
|
11
11
|
"main": "lib/index.js",
|
|
12
12
|
"typings": "lib/index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@microsoft/gulp-core-build": "3.17.
|
|
15
|
-
"@microsoft/gulp-core-build-sass": "4.
|
|
16
|
-
"@microsoft/gulp-core-build-serve": "3.9.
|
|
17
|
-
"@microsoft/gulp-core-build-typescript": "8.5.
|
|
18
|
-
"@microsoft/gulp-core-build-webpack": "5.2.
|
|
19
|
-
"@microsoft/rush-lib": "5.
|
|
20
|
-
"@microsoft/sp-build-core-tasks": "1.
|
|
21
|
-
"@rushstack/node-core-library": "3.45.
|
|
14
|
+
"@microsoft/gulp-core-build": "3.17.19",
|
|
15
|
+
"@microsoft/gulp-core-build-sass": "4.15.4",
|
|
16
|
+
"@microsoft/gulp-core-build-serve": "3.9.20",
|
|
17
|
+
"@microsoft/gulp-core-build-typescript": "8.5.31",
|
|
18
|
+
"@microsoft/gulp-core-build-webpack": "5.2.26",
|
|
19
|
+
"@microsoft/rush-lib": "5.69.0",
|
|
20
|
+
"@microsoft/sp-build-core-tasks": "1.15.0-rc.0",
|
|
21
|
+
"@rushstack/node-core-library": "3.45.5",
|
|
22
22
|
"@types/webpack": "4.41.24",
|
|
23
23
|
"gulp": "4.0.2",
|
|
24
24
|
"semver": "~7.3.2",
|