@microsoft/sp-build-web 1.20.0 → 1.20.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/SPWebBuildRig.d.ts.map +1 -1
- package/lib/SPWebBuildRig.js +7 -4
- package/package.json +9 -12
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;IAmGlD,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"}
|
package/lib/SPWebBuildRig.js
CHANGED
|
@@ -77,12 +77,12 @@ class SPWebBuildRig extends SPBuildRig_1.SPBuildRig {
|
|
|
77
77
|
super.setupSharedConfig();
|
|
78
78
|
gulp_core_build_webpack_1.webpack.taskConfig.webpack = require('webpack');
|
|
79
79
|
gulp_core_build_sass_1.default.mergeConfig({
|
|
80
|
-
preamble: '
|
|
81
|
-
postamble: '
|
|
80
|
+
preamble: '',
|
|
81
|
+
postamble: '',
|
|
82
82
|
sassMatch: ['src/**/*.scss', 'src/**/*.sass'],
|
|
83
83
|
useCSSModules: false,
|
|
84
84
|
warnOnCssInvalidPropertyName: true,
|
|
85
|
-
dropCssFiles: true,
|
|
85
|
+
dropCssFiles: true, // Drops .css files in the lib directory for webpack,
|
|
86
86
|
warnOnNonCSSModules: true,
|
|
87
87
|
// Cast is needed due to autoprefixer types mismatch due to workspace install in odsp-web
|
|
88
88
|
autoprefixerOptions: {
|
|
@@ -148,7 +148,9 @@ class SPWebBuildRig extends SPBuildRig_1.SPBuildRig {
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.serve, {
|
|
151
|
-
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,
|
|
151
|
+
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,
|
|
152
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
153
|
+
result.get(WebBuildRigConstants_1.WebBuildRigConstants.tasks.bundle).executable, gulp_core_build_serve_1.reload, this._postTelemetryTask))),
|
|
152
154
|
arguments: (yargs) => {
|
|
153
155
|
return yargs
|
|
154
156
|
.option('port', {
|
|
@@ -183,6 +185,7 @@ class SPWebBuildRig extends SPBuildRig_1.SPBuildRig {
|
|
|
183
185
|
arguments: taskDefinition.arguments
|
|
184
186
|
});
|
|
185
187
|
});
|
|
188
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
186
189
|
result.set(BuildRigConstants_1.BuildRigConstants.tasks.default, result.get(WebBuildRigConstants_1.WebBuildRigConstants.tasks.bundle));
|
|
187
190
|
return result;
|
|
188
191
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-build-web",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.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,25 +10,22 @@
|
|
|
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.17.
|
|
15
|
-
"@microsoft/gulp-core-build-serve": "3.
|
|
16
|
-
"@microsoft/gulp-core-build-typescript": "8.6.
|
|
17
|
-
"@microsoft/gulp-core-build-webpack": "6.0.
|
|
18
|
-
"@microsoft/rush-lib": "5.117.3",
|
|
19
|
-
"@rushstack/node-core-library": "4.0.2",
|
|
13
|
+
"@microsoft/gulp-core-build": "3.19.0",
|
|
14
|
+
"@microsoft/gulp-core-build-sass": "4.17.3",
|
|
15
|
+
"@microsoft/gulp-core-build-serve": "3.13.0",
|
|
16
|
+
"@microsoft/gulp-core-build-typescript": "8.6.3",
|
|
17
|
+
"@microsoft/gulp-core-build-webpack": "6.0.3",
|
|
20
18
|
"gulp": "4.0.2",
|
|
21
|
-
"postcss": "^8.4.19",
|
|
22
19
|
"semver": "~7.3.2",
|
|
23
20
|
"true-case-path": "~2.2.1",
|
|
24
21
|
"webpack": "~5.88.1",
|
|
25
22
|
"yargs": "~4.6.0",
|
|
26
|
-
"@microsoft/sp-build-core-tasks": "1.20.
|
|
23
|
+
"@microsoft/sp-build-core-tasks": "1.20.2"
|
|
27
24
|
},
|
|
28
25
|
"devDependencies": {
|
|
29
|
-
"@rushstack/heft": "0.
|
|
26
|
+
"@rushstack/heft": "0.67.2",
|
|
30
27
|
"@types/semver": "7.3.8",
|
|
31
|
-
"eslint": "8.
|
|
28
|
+
"eslint": "8.57.1",
|
|
32
29
|
"@odsp-web-tools/internal-node-rig": "0.1.0"
|
|
33
30
|
},
|
|
34
31
|
"scripts": {
|