@microsoft/sp-build-web 1.21.0-beta.0 → 1.21.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.js DELETED
@@ -1,258 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.SPBuildRig = exports.postCopy = exports.preCopy = void 0;
27
- const fs = __importStar(require("fs"));
28
- const yargs = __importStar(require("yargs"));
29
- const semver = __importStar(require("semver"));
30
- const coreBuild = __importStar(require("@microsoft/gulp-core-build"));
31
- const gulp_core_build_typescript_1 = require("@microsoft/gulp-core-build-typescript");
32
- const BuildRigConstants_1 = require("./BuildRigConstants");
33
- exports.preCopy = new coreBuild.CopyTask();
34
- exports.postCopy = new coreBuild.CopyTask();
35
- /**
36
- * This class represents the basic shared build rig for all SPFx Rigs. It defines a few
37
- * simple sub-tasks, and only registers a "build" task.
38
- */
39
- class SPBuildRig {
40
- constructor() {
41
- this._preBuildTasks = [];
42
- this._postTypescriptTasks = [];
43
- this._postBuildTasks = [];
44
- this._postTelemetryTask = [];
45
- this._preTelemetryTask = [];
46
- this.nodeSupportedVersionRange = '>=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0 || >=18.17.1 <19.0.0 || >=20.11.0 <21.0.0';
47
- }
48
- initialize(gulp) {
49
- if (!semver.satisfies(process.version, this.nodeSupportedVersionRange)) {
50
- const nodeVersionMessage = `Your dev environment is running NodeJS version ${process.version} which does` +
51
- ' not meet the requirements for running this tool. This tool requires a version of NodeJS' +
52
- ` that matches "${this.nodeSupportedVersionRange}".`;
53
- if (process.env.SPFX_OVERRIDE_NODE_VERSION_CHECK === 'true') {
54
- // This environment variable is when testing new versions of NodeJS for compatibility.
55
- // eslint-disable-next-line no-console
56
- console.warn(nodeVersionMessage + ' Proceeding with execution due to override.');
57
- }
58
- else {
59
- throw new Error(nodeVersionMessage);
60
- }
61
- }
62
- // Initialize yargs & figure out which command we are running
63
- const yargsArgs = this.getYargs();
64
- const command = yargsArgs.argv._[0];
65
- this.args = yargsArgs.argv;
66
- // Collect the tasks which need to be registered
67
- const tasks = this.getTasks();
68
- // Reset the args and reconfigure based on the selected command
69
- yargsArgs.reset();
70
- if (tasks.has(command)) {
71
- const task = tasks.get(command);
72
- if (task && task.arguments) {
73
- task.arguments(yargsArgs);
74
- }
75
- }
76
- // Note this overrides the getters for ship and production on args
77
- this.args.ship = this.args.production = this.args.production || this.args.ship;
78
- // Since gulp-core-build doesn't recognize the --ship flag, ensure it gets the right state
79
- coreBuild.mergeConfig({
80
- production: this.args.ship,
81
- shouldWarningsFailBuild: this.args.ship
82
- });
83
- // Register all the tasks with gulp-core-build
84
- tasks.forEach((definition, name) => {
85
- coreBuild.task(name, definition.executable);
86
- });
87
- // If they are just looking for the task list, save time by not reading config files
88
- if (!this.args.tasks) {
89
- // Configure tasks for a normal build
90
- // eslint-disable-next-line no-console
91
- console.log('Build target: ' +
92
- (this.args.ship
93
- ? BuildRigConstants_1.BuildRigConstants.flavors.ship.toUpperCase()
94
- : BuildRigConstants_1.BuildRigConstants.flavors.debug.toUpperCase()));
95
- this.setupSharedConfig();
96
- }
97
- coreBuild.initialize(gulp);
98
- // Try to ensure the casing of the rootPath is correct
99
- try {
100
- const originalRootPath = coreBuild.getConfig().rootPath;
101
- const normalizedRootPath = fs.realpathSync.native(originalRootPath);
102
- if (normalizedRootPath !== originalRootPath) {
103
- coreBuild.mergeConfig({
104
- rootPath: normalizedRootPath
105
- });
106
- // eslint-disable-next-line no-console
107
- console.log(`Normalized project rootPath from "${originalRootPath}" to ${normalizedRootPath}`);
108
- }
109
- }
110
- catch (e) {
111
- // eslint-disable-next-line no-console
112
- console.error(`An error occurred when normalizing the project root path: ${e}`);
113
- }
114
- // If they are just looking for the task list, save time by not reading config files
115
- if (!this.args.tasks) {
116
- this.finalizeSharedConfig();
117
- }
118
- }
119
- /**
120
- * Register additional telemetry sub-tasks to run at the end of the sequence
121
- */
122
- addPostTelemetryTask(tasks) {
123
- this.addTaskOrListOfTasks(tasks, this._postTelemetryTask);
124
- }
125
- /**
126
- * Register additional telemetry sub-tasks to run at the beginning of the sequence
127
- */
128
- addPreTelemetryTask(tasks) {
129
- this.addTaskOrListOfTasks(tasks, this._preTelemetryTask);
130
- }
131
- /**
132
- * Register additional sub-tasks to run before the typescript subtask.
133
- * Note, this is meant to be used in a gulpfile.js to inject one-off subtasks
134
- */
135
- addPreBuildTask(tasks) {
136
- this.addTaskOrListOfTasks(tasks, this._preBuildTasks);
137
- }
138
- /**
139
- * Register additional sub-tasks to run after the typescript subtask.
140
- * Note, this is meant to be used in a gulpfile.js to inject one-off subtasks
141
- */
142
- addPostTypescriptTask(tasks) {
143
- this.addTaskOrListOfTasks(tasks, this._postTypescriptTasks);
144
- }
145
- /**
146
- * Register additional sub-tasks to run after the typescript subtask.
147
- * @deprecated - Use {@link addPostTypescriptTask} instead
148
- */
149
- addBuildTasks(tasks) {
150
- this.addTaskOrListOfTasks(tasks, this._postTypescriptTasks);
151
- }
152
- /**
153
- * Register additional sub-tasks to run after the entire build.
154
- * Note, this is meant to be used in a gulpfile.js to inject one-off subtasks
155
- */
156
- addPostBuildTask(tasks) {
157
- this.addTaskOrListOfTasks(tasks, this._postBuildTasks);
158
- }
159
- /**
160
- * Override this function to register more top-level command line arguments (i.e. not task-specific).
161
- * Ideally, extend the ICoreBuildArgs when hooking into this function
162
- *
163
- * Registers the command line arguments which are available for this rig
164
- */
165
- getYargs() {
166
- return yargs
167
- .usage()
168
- .option('production', {
169
- alias: 'p',
170
- describe: 'build in ship mode with full localization and minimization',
171
- boolean: true
172
- })
173
- .option('ship', {
174
- alias: 'p',
175
- describe: 'build in ship mode with full localization and minimization',
176
- boolean: true
177
- })
178
- .option('verbose', {
179
- describe: 'run the build with verbose logging'
180
- })
181
- .option('tasks', {
182
- alias: ['T', 'tasks-simple'],
183
- describe: 'shows the list of tasks which can be run'
184
- })
185
- .help('h')
186
- .global(['production', 'verbose', 'h'])
187
- .option('locale', {
188
- describe: 'override the default culture (e.g. "fr-fr")',
189
- type: 'string'
190
- })
191
- .option('lite', {
192
- alias: 'l',
193
- describe: 'Speeds up the build by running the minimal set of tasks required to produce an executable output',
194
- type: 'boolean'
195
- })
196
- .command(BuildRigConstants_1.BuildRigConstants.tasks.build, 'build the project')
197
- .command(BuildRigConstants_1.BuildRigConstants.tasks.default, 'equivalent to bundle');
198
- }
199
- /**
200
- * Override this function to create new top-level tasks which can be executed via the command line
201
- *
202
- * Register 2 tasks, build and default, which simply copy files, then run typescript and tslint
203
- */
204
- getTasks() {
205
- const result = new Map();
206
- result.set(BuildRigConstants_1.BuildRigConstants.tasks.build, { executable: this.getBuildTask() });
207
- result.set(BuildRigConstants_1.BuildRigConstants.tasks.default, { executable: this.getBuildTask() });
208
- return result;
209
- }
210
- /**
211
- * Override this function to overwrite the "build" task
212
- */
213
- getBuildTask() {
214
- return coreBuild.serial(exports.preCopy, coreBuild.serial(this._preBuildTasks), this.getCoreBuildTask(), coreBuild.serial(this._postBuildTasks), exports.postCopy);
215
- }
216
- /**
217
- * Override this function to redefine the core build loop
218
- */
219
- getCoreBuildTask() {
220
- 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)));
221
- }
222
- /**
223
- * Override this function to do configuration before the configuration .json files have been loaded
224
- */
225
- setupSharedConfig() {
226
- exports.preCopy.name = 'pre-copy';
227
- exports.postCopy.name = 'post-copy';
228
- // adding release folder to the list of folders to be removed during the clean task run
229
- coreBuild.clean.getCleanMatch = () => ['release'];
230
- }
231
- /**
232
- * Override this function to do configuration after the configuration .json files have been loaded
233
- *
234
- * This function cleans up the shared config by populating task config properties that depend on other tasks'
235
- * user-defined properties.
236
- */
237
- finalizeSharedConfig() {
238
- if (this.args.lite) {
239
- this._disableTasks(gulp_core_build_typescript_1.lintCmd);
240
- }
241
- }
242
- addTaskOrListOfTasks(tasks, array) {
243
- if (tasks.length) {
244
- array.push(...tasks);
245
- }
246
- else {
247
- array.push(tasks);
248
- }
249
- }
250
- _disableTasks(...tasks) {
251
- tasks.forEach((task) => {
252
- task.isEnabled = () => false;
253
- coreBuild.verbose(`Disabling task: ${task.name}`);
254
- });
255
- }
256
- }
257
- exports.SPBuildRig = SPBuildRig;
258
- //# sourceMappingURL=SPBuildRig.js.map
@@ -1 +0,0 @@
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"}
@@ -1,212 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SPWebBuildRig = exports.serveWatchFilter = void 0;
30
- const gulp_core_build_sass_1 = __importDefault(require("@microsoft/gulp-core-build-sass"));
31
- const gulp_core_build_serve_1 = require("@microsoft/gulp-core-build-serve");
32
- const gulp_core_build_1 = require("@microsoft/gulp-core-build");
33
- const gulp_core_build_webpack_1 = require("@microsoft/gulp-core-build-webpack");
34
- const spBuildCoreTasks = __importStar(require("@microsoft/sp-build-core-tasks"));
35
- const ConfigureWebpackTask_1 = require("@microsoft/sp-build-core-tasks/lib/webpack/ConfigureWebpackTask");
36
- const gulp_core_build_typescript_1 = require("@microsoft/gulp-core-build-typescript");
37
- const WebBuildRigConstants_1 = require("./WebBuildRigConstants");
38
- const SPBuildRig_1 = require("./SPBuildRig");
39
- const BuildRigConstants_1 = require("./BuildRigConstants");
40
- exports.serveWatchFilter = [
41
- 'src/**/*.{ts,tsx,scss,resx,js,json,html}',
42
- '!src/**/*.{scss.ts,resx.ts}',
43
- 'node_modules/*/*/dist/*.manifest.json'
44
- ];
45
- class SPWebBuildRig extends SPBuildRig_1.SPBuildRig {
46
- constructor() {
47
- super(...arguments);
48
- this._postBundleTasks = [];
49
- }
50
- addPostBundleTask(tasks) {
51
- this.addTaskOrListOfTasks(tasks, this._postBundleTasks);
52
- }
53
- getYargs() {
54
- return super
55
- .getYargs()
56
- .option('debug', {
57
- describe: 'runs tests in unit mode'
58
- })
59
- .option('upgrade', {
60
- describe: 'upgrades outdated files in the project'
61
- })
62
- .command(WebBuildRigConstants_1.WebBuildRigConstants.tasks.bundle, 'build, localize, and bundle the project')
63
- .command(WebBuildRigConstants_1.WebBuildRigConstants.tasks.deployAzureStorage, 'upload the assets to a development CDN')
64
- .command(WebBuildRigConstants_1.WebBuildRigConstants.tasks.packageSolution, 'package the project into a SPPKG')
65
- .command(WebBuildRigConstants_1.WebBuildRigConstants.tasks.test, 'build, localize, and bundle the project and run tests, and verify the coverage')
66
- .command(WebBuildRigConstants_1.WebBuildRigConstants.tasks.testOnly, 'run the tests without running the build')
67
- .command(WebBuildRigConstants_1.WebBuildRigConstants.tasks.serve, 'build and bundle the project and run the development server')
68
- .command(WebBuildRigConstants_1.WebBuildRigConstants.tasks.trustDevCert, "generates and trusts a development certificate if one isn't already present")
69
- .command(WebBuildRigConstants_1.WebBuildRigConstants.tasks.untrustDevCert, 'untrusts and deletes the development certificate if it exists')
70
- .command('default', 'equivalent to bundle and test')
71
- .option('entry', {
72
- describe: 'Select which entries should be bundled. This can match the GUID or the alias of the entry.',
73
- string: true
74
- });
75
- }
76
- setupSharedConfig() {
77
- super.setupSharedConfig();
78
- gulp_core_build_webpack_1.webpack.taskConfig.webpack = require('webpack');
79
- gulp_core_build_sass_1.default.mergeConfig({
80
- preamble: '',
81
- postamble: '',
82
- sassMatch: ['src/**/*.scss', 'src/**/*.sass'],
83
- useCSSModules: false,
84
- warnOnCssInvalidPropertyName: true,
85
- dropCssFiles: true, // Drops .css files in the lib directory for webpack,
86
- warnOnNonCSSModules: true,
87
- // Cast is needed due to autoprefixer types mismatch due to workspace install in odsp-web
88
- autoprefixerOptions: {
89
- overrideBrowserslist: ['> 1%', 'ie >= 11']
90
- }
91
- });
92
- spBuildCoreTasks.configureWebpack.mergeConfig({
93
- webpack: gulp_core_build_webpack_1.webpack,
94
- singleLocale: this.args.locale,
95
- useLegacyExternals: true
96
- });
97
- gulp_core_build_1.copyStaticAssets.setConfig({
98
- includeExtensions: [...ConfigureWebpackTask_1.FILE_LOADER_EXTENSIONS, 'resx']
99
- });
100
- gulp_core_build_typescript_1.tscCmd.mergeConfig({
101
- allowBuiltinCompiler: true
102
- });
103
- gulp_core_build_typescript_1.lintCmd.mergeConfig({
104
- allowBuiltinCompiler: true
105
- });
106
- gulp_core_build_typescript_1.apiExtractor.mergeConfig({
107
- allowBuiltinCompiler: true
108
- });
109
- gulp_core_build_1.jest.mergeConfig({
110
- writeNUnitResults: this.args.writeNUnitResults
111
- });
112
- }
113
- finalizeSharedConfig() {
114
- super.finalizeSharedConfig();
115
- if (this.args.lite || this.args.notest) {
116
- this._disableTasks(gulp_core_build_1.jest);
117
- }
118
- }
119
- getTasks() {
120
- const result = super.getTasks();
121
- result.set(BuildRigConstants_1.BuildRigConstants.tasks.build, {
122
- executable: this.getBuildTask()
123
- });
124
- result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.bundle, {
125
- executable: this.getBundleTask()
126
- });
127
- result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.deployAzureStorage, {
128
- executable: spBuildCoreTasks.deployAzureStorage
129
- });
130
- result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.packageSolution, {
131
- executable: spBuildCoreTasks.packageSolution
132
- });
133
- // @todo VSO #167343
134
- result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.test, {
135
- executable: this.getTestTask(),
136
- arguments: (yargs) => {
137
- return yargs
138
- .option('debug', {
139
- describe: 'run tests in debug mode'
140
- })
141
- .option('match', {
142
- describe: 'regular expression. Only run tests that match',
143
- string: true
144
- })
145
- .option('notest', {
146
- describe: 'run the build without running the test'
147
- });
148
- }
149
- });
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,
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))),
154
- arguments: (yargs) => {
155
- return yargs
156
- .option('port', {
157
- description: 'the port to serve on should be the next argument (e.g. "--port 80")'
158
- })
159
- .option('nobrowser', {
160
- description: "don't open a browser after initial bundle"
161
- })
162
- .option('config', {
163
- description: 'use this option to specify which configuration to use in the serve.json file'
164
- });
165
- }
166
- });
167
- result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.trustDevCert, {
168
- executable: gulp_core_build_serve_1.trustDevCert
169
- });
170
- result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.untrustDevCert, {
171
- executable: gulp_core_build_serve_1.untrustDevCert
172
- });
173
- result.set(WebBuildRigConstants_1.WebBuildRigConstants.tasks.testOnly, {
174
- executable: this.getTestOnlyTask(),
175
- arguments: (yargs) => {
176
- return yargs.option('writeNUnitResults', {
177
- description: 'write the jest results to an nunit test results file',
178
- boolean: true
179
- });
180
- }
181
- });
182
- result.forEach((taskDefinition, name) => {
183
- result.set(name, {
184
- 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)),
185
- arguments: taskDefinition.arguments
186
- });
187
- });
188
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
189
- result.set(BuildRigConstants_1.BuildRigConstants.tasks.default, result.get(WebBuildRigConstants_1.WebBuildRigConstants.tasks.bundle));
190
- return result;
191
- }
192
- getTestTask() {
193
- return (0, gulp_core_build_1.serial)(this.getBundleTask(), gulp_core_build_1.jest);
194
- }
195
- getTestOnlyTask() {
196
- return (0, gulp_core_build_1.serial)(gulp_core_build_1.jest);
197
- }
198
- getCoreBuildTask() {
199
- 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);
200
- }
201
- getBundleTask() {
202
- 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));
203
- }
204
- getPreWebpackTasks() {
205
- return (0, gulp_core_build_1.serial)();
206
- }
207
- getPreCopyAssetsTasks() {
208
- return (0, gulp_core_build_1.serial)();
209
- }
210
- }
211
- exports.SPWebBuildRig = SPWebBuildRig;
212
- //# sourceMappingURL=SPWebBuildRig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebBuildRigConstants.d.ts","sourceRoot":"","sources":["../src/WebBuildRigConstants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAWhC,CAAC"}
@@ -1 +0,0 @@
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 DELETED
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.initialize = exports.rig = exports.untrustDevCert = exports.trustDevCert = exports.reload = void 0;
18
- __exportStar(require("@microsoft/gulp-core-build-sass"), exports);
19
- __exportStar(require("@microsoft/gulp-core-build-typescript"), exports);
20
- // Don't export "serve" from GCB-serve. Export it from sp-build-core-tasks
21
- var gulp_core_build_serve_1 = require("@microsoft/gulp-core-build-serve");
22
- Object.defineProperty(exports, "reload", { enumerable: true, get: function () { return gulp_core_build_serve_1.reload; } });
23
- Object.defineProperty(exports, "trustDevCert", { enumerable: true, get: function () { return gulp_core_build_serve_1.trustDevCert; } });
24
- Object.defineProperty(exports, "untrustDevCert", { enumerable: true, get: function () { return gulp_core_build_serve_1.untrustDevCert; } });
25
- __exportStar(require("@microsoft/gulp-core-build-webpack"), exports);
26
- __exportStar(require("@microsoft/sp-build-core-tasks/lib/index"), exports);
27
- __exportStar(require("@microsoft/gulp-core-build"), exports);
28
- __exportStar(require("./SPWebBuildRig"), exports);
29
- __exportStar(require("./WebBuildRigConstants"), exports);
30
- __exportStar(require("./SPBuildRig"), exports);
31
- const SPWebBuildRig_1 = require("./SPWebBuildRig");
32
- exports.rig = new SPWebBuildRig_1.SPWebBuildRig();
33
- // Replace gcb.initialize to call our init stuff first.
34
- const initialize = (gulp) => {
35
- exports.rig.initialize(gulp);
36
- return exports.rig;
37
- };
38
- exports.initialize = initialize;
39
- //# sourceMappingURL=index.js.map
File without changes
File without changes
File without changes
File without changes
File without changes