@microsoft/sp-build-web 1.17.4 → 1.18.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/BuildRigConstants.js +1 -1
- package/lib/SPBuildRig.d.ts +2 -6
- package/lib/SPBuildRig.d.ts.map +1 -1
- package/lib/SPBuildRig.js +4 -1
- package/lib/SPWebBuildRig.d.ts +3 -3
- package/lib/SPWebBuildRig.d.ts.map +1 -1
- package/lib/WebBuildRigConstants.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/package.json +10 -9
package/lib/BuildRigConstants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BuildRigConstants = void 0;
|
|
4
|
-
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/typedef
|
|
5
5
|
exports.BuildRigConstants = {
|
|
6
6
|
tasks: {
|
|
7
7
|
build: 'build',
|
package/lib/SPBuildRig.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Gulp from 'gulp';
|
|
1
|
+
import type * as Gulp from 'gulp';
|
|
2
2
|
import * as yargs from 'yargs';
|
|
3
3
|
import * as coreBuild from '@microsoft/gulp-core-build';
|
|
4
4
|
export declare const preCopy: coreBuild.CopyTask;
|
|
@@ -15,8 +15,6 @@ export interface ISPBuildRigArgs {
|
|
|
15
15
|
/**
|
|
16
16
|
* All SPFx build rigs can be tested in a specific locale using this flag,
|
|
17
17
|
* which is defined in the localization code
|
|
18
|
-
*
|
|
19
|
-
* @todo 253519 remove this once this logic is in GCB/the Task definition
|
|
20
18
|
*/
|
|
21
19
|
locale: string;
|
|
22
20
|
/**
|
|
@@ -30,8 +28,6 @@ export interface ISPBuildRigArgs {
|
|
|
30
28
|
* Represents the a task which is registered to the gulp command line
|
|
31
29
|
* The arguments function is evaluated if this is the current task, it should
|
|
32
30
|
* interact with yargs to define any custom values.
|
|
33
|
-
*
|
|
34
|
-
* @todo 178074 this code should be removed
|
|
35
31
|
*/
|
|
36
32
|
export interface ITaskDefinition {
|
|
37
33
|
executable: coreBuild.IExecutable;
|
|
@@ -70,7 +66,7 @@ export declare class SPBuildRig {
|
|
|
70
66
|
addPostTypescriptTask(tasks: coreBuild.IExecutable | coreBuild.IExecutable[]): void;
|
|
71
67
|
/**
|
|
72
68
|
* Register additional sub-tasks to run after the typescript subtask.
|
|
73
|
-
* @deprecated
|
|
69
|
+
* @deprecated - Use {@link addPostTypescriptTask} instead
|
|
74
70
|
*/
|
|
75
71
|
addBuildTasks(tasks: coreBuild.IExecutable | coreBuild.IExecutable[]): void;
|
|
76
72
|
/**
|
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;
|
|
1
|
+
{"version":3,"file":"SPBuildRig.d.ts","sourceRoot":"","sources":["../src/SPBuildRig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAC;AAClC,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;;;OAGG;IACH,MAAM,EAAE,MA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,IAAI;IAIlF;;;OAGG;IACI,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,EAAE,GAAG,IAAI;IAIrF;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI;IAoChC;;;;OAIG;IACH,SAAS,CAAC,QAAQ,IAAI,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;IAOnC;;;;;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
|
@@ -56,6 +56,7 @@ class SPBuildRig {
|
|
|
56
56
|
// If they are just looking for the task list, save time by not reading config files
|
|
57
57
|
if (!this.args.tasks) {
|
|
58
58
|
// Configure tasks for a normal build
|
|
59
|
+
// eslint-disable-next-line no-console
|
|
59
60
|
console.log('Build target: ' +
|
|
60
61
|
(this.args.ship
|
|
61
62
|
? BuildRigConstants_1.BuildRigConstants.flavors.ship.toUpperCase()
|
|
@@ -71,10 +72,12 @@ class SPBuildRig {
|
|
|
71
72
|
coreBuild.mergeConfig({
|
|
72
73
|
rootPath: normalizedRootPath
|
|
73
74
|
});
|
|
75
|
+
// eslint-disable-next-line no-console
|
|
74
76
|
console.log(`Normalized project rootPath from "${originalRootPath}" to ${normalizedRootPath}`);
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
catch (e) {
|
|
80
|
+
// eslint-disable-next-line no-console
|
|
78
81
|
console.error(`An error occurred when normalizing the project root path: ${e}`);
|
|
79
82
|
}
|
|
80
83
|
// If they are just looking for the task list, save time by not reading config files
|
|
@@ -110,7 +113,7 @@ class SPBuildRig {
|
|
|
110
113
|
}
|
|
111
114
|
/**
|
|
112
115
|
* Register additional sub-tasks to run after the typescript subtask.
|
|
113
|
-
* @deprecated
|
|
116
|
+
* @deprecated - Use {@link addPostTypescriptTask} instead
|
|
114
117
|
*/
|
|
115
118
|
addBuildTasks(tasks) {
|
|
116
119
|
this.addTaskOrListOfTasks(tasks, this._postTypescriptTasks);
|
package/lib/SPWebBuildRig.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Yargs from 'yargs';
|
|
2
|
-
import { IExecutable } from '@microsoft/gulp-core-build';
|
|
3
|
-
import { ISPBuildRigArgs, ITaskDefinition, SPBuildRig } from './SPBuildRig';
|
|
1
|
+
import type * as Yargs from 'yargs';
|
|
2
|
+
import { type IExecutable } from '@microsoft/gulp-core-build';
|
|
3
|
+
import { type ISPBuildRigArgs, type ITaskDefinition, SPBuildRig } from './SPBuildRig';
|
|
4
4
|
export interface ISPWebBuildRigArgs extends ISPBuildRigArgs {
|
|
5
5
|
debug: boolean;
|
|
6
6
|
notest: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SPWebBuildRig.d.ts","sourceRoot":"","sources":["../src/SPWebBuildRig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SPWebBuildRig.d.ts","sourceRoot":"","sources":["../src/SPWebBuildRig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,OAAO,EAEL,KAAK,WAAW,EAKjB,MAAM,4BAA4B,CAAC;AAQpC,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAGtF,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAIpC,CAAC;AAEF,qBAAa,aAAc,SAAQ,UAAU;IAC3C,SAAS,CAAC,IAAI,EAAE,kBAAkB,CAAC;IACnC,SAAS,CAAC,gBAAgB,EAAE,WAAW,EAAE,CAAM;IAExC,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,EAAE,GAAG,IAAI;IAIlE,SAAS,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI;IAqChC,SAAS,CAAC,iBAAiB,IAAI,IAAI;IA6CnC,SAAS,CAAC,oBAAoB,IAAI,IAAI;IAOtC,SAAS,CAAC,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC;IAiGlD,SAAS,CAAC,WAAW,IAAI,WAAW;IAIpC,SAAS,CAAC,eAAe,IAAI,WAAW;IAIxC,SAAS,CAAC,gBAAgB,IAAI,WAAW;IAIzC,SAAS,CAAC,aAAa,IAAI,WAAW;IAWtC,SAAS,CAAC,kBAAkB,IAAI,WAAW;IAI3C,SAAS,CAAC,qBAAqB,IAAI,WAAW;CAG/C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WebBuildRigConstants = void 0;
|
|
4
|
-
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/typedef
|
|
5
5
|
exports.WebBuildRigConstants = {
|
|
6
6
|
tasks: {
|
|
7
7
|
test: 'test',
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export * from './SPWebBuildRig';
|
|
|
8
8
|
export * from './WebBuildRigConstants';
|
|
9
9
|
export * from './SPBuildRig';
|
|
10
10
|
import { SPWebBuildRig } from './SPWebBuildRig';
|
|
11
|
-
import * as Gulp from 'gulp';
|
|
11
|
+
import type * as Gulp from 'gulp';
|
|
12
12
|
export declare const rig: SPWebBuildRig;
|
|
13
13
|
export declare const initialize: (gulp: typeof Gulp) => SPWebBuildRig;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACxF,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4BAA4B,CAAC;AAE3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAC;AAElC,eAAO,MAAM,GAAG,EAAE,aAAmC,CAAC;AAGtD,eAAO,MAAM,UAAU,EAAE,CAAC,IAAI,EAAE,OAAO,IAAI,KAAK,aAG/C,CAAC"}
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-build-web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0-beta.2",
|
|
4
4
|
"description": "SharePoint Framework build rig for web projects",
|
|
5
5
|
"license": "https://aka.ms/spfx/license",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
"main": "lib/index.js",
|
|
11
11
|
"typings": "lib/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@microsoft/gulp-core-build": "3.
|
|
14
|
-
"@microsoft/gulp-core-build-sass": "4.
|
|
13
|
+
"@microsoft/gulp-core-build": "3.18.0",
|
|
14
|
+
"@microsoft/gulp-core-build-sass": "4.17.0",
|
|
15
15
|
"@microsoft/gulp-core-build-serve": "3.12.0",
|
|
16
|
-
"@microsoft/gulp-core-build-typescript": "8.
|
|
17
|
-
"@microsoft/gulp-core-build-webpack": "5.
|
|
18
|
-
"@microsoft/rush-lib": "5.
|
|
19
|
-
"@rushstack/node-core-library": "3.
|
|
16
|
+
"@microsoft/gulp-core-build-typescript": "8.6.0",
|
|
17
|
+
"@microsoft/gulp-core-build-webpack": "5.3.0",
|
|
18
|
+
"@microsoft/rush-lib": "5.100.1",
|
|
19
|
+
"@rushstack/node-core-library": "3.59.4",
|
|
20
20
|
"@types/webpack": "4.41.24",
|
|
21
21
|
"gulp": "4.0.2",
|
|
22
22
|
"postcss": "^8.4.19",
|
|
@@ -24,11 +24,12 @@
|
|
|
24
24
|
"true-case-path": "~2.2.1",
|
|
25
25
|
"webpack": "~4.44.2",
|
|
26
26
|
"yargs": "~4.6.0",
|
|
27
|
-
"@microsoft/sp-build-core-tasks": "1.
|
|
27
|
+
"@microsoft/sp-build-core-tasks": "1.18.0-beta.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@rushstack/heft": "0.
|
|
30
|
+
"@rushstack/heft": "0.50.6",
|
|
31
31
|
"@types/semver": "7.3.8",
|
|
32
|
+
"eslint": "8.7.0",
|
|
32
33
|
"@odsp-web-tools/internal-node-rig": "0.1.0"
|
|
33
34
|
},
|
|
34
35
|
"scripts": {
|