@microsoft/sp-build-web 1.20.2 → 1.21.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/SPBuildRig.js DELETED
@@ -1,250 +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 yargs = __importStar(require("yargs"));
28
- const semver = __importStar(require("semver"));
29
- const true_case_path_1 = require("true-case-path");
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
- throw new Error(`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
- }
54
- // Initialize yargs & figure out which command we are running
55
- const yargsArgs = this.getYargs();
56
- const command = yargsArgs.argv._[0];
57
- this.args = yargsArgs.argv;
58
- // Collect the tasks which need to be registered
59
- const tasks = this.getTasks();
60
- // Reset the args and reconfigure based on the selected command
61
- yargsArgs.reset();
62
- if (tasks.has(command)) {
63
- const task = tasks.get(command);
64
- if (task && task.arguments) {
65
- task.arguments(yargsArgs);
66
- }
67
- }
68
- // Note this overrides the getters for ship and production on args
69
- this.args.ship = this.args.production = this.args.production || this.args.ship;
70
- // Since gulp-core-build doesn't recognize the --ship flag, ensure it gets the right state
71
- coreBuild.mergeConfig({
72
- production: this.args.ship,
73
- shouldWarningsFailBuild: this.args.ship
74
- });
75
- // Register all the tasks with gulp-core-build
76
- tasks.forEach((definition, name) => {
77
- coreBuild.task(name, definition.executable);
78
- });
79
- // If they are just looking for the task list, save time by not reading config files
80
- if (!this.args.tasks) {
81
- // Configure tasks for a normal build
82
- // eslint-disable-next-line no-console
83
- console.log('Build target: ' +
84
- (this.args.ship
85
- ? BuildRigConstants_1.BuildRigConstants.flavors.ship.toUpperCase()
86
- : BuildRigConstants_1.BuildRigConstants.flavors.debug.toUpperCase()));
87
- this.setupSharedConfig();
88
- }
89
- coreBuild.initialize(gulp);
90
- // Try to ensure the casing of the rootPath is correct
91
- try {
92
- const originalRootPath = coreBuild.getConfig().rootPath;
93
- const normalizedRootPath = (0, true_case_path_1.trueCasePathSync)(originalRootPath);
94
- if (normalizedRootPath !== originalRootPath) {
95
- coreBuild.mergeConfig({
96
- rootPath: normalizedRootPath
97
- });
98
- // eslint-disable-next-line no-console
99
- console.log(`Normalized project rootPath from "${originalRootPath}" to ${normalizedRootPath}`);
100
- }
101
- }
102
- catch (e) {
103
- // eslint-disable-next-line no-console
104
- console.error(`An error occurred when normalizing the project root path: ${e}`);
105
- }
106
- // If they are just looking for the task list, save time by not reading config files
107
- if (!this.args.tasks) {
108
- this.finalizeSharedConfig();
109
- }
110
- }
111
- /**
112
- * Register additional telemetry sub-tasks to run at the end of the sequence
113
- */
114
- addPostTelemetryTask(tasks) {
115
- this.addTaskOrListOfTasks(tasks, this._postTelemetryTask);
116
- }
117
- /**
118
- * Register additional telemetry sub-tasks to run at the beginning of the sequence
119
- */
120
- addPreTelemetryTask(tasks) {
121
- this.addTaskOrListOfTasks(tasks, this._preTelemetryTask);
122
- }
123
- /**
124
- * Register additional sub-tasks to run before the typescript subtask.
125
- * Note, this is meant to be used in a gulpfile.js to inject one-off subtasks
126
- */
127
- addPreBuildTask(tasks) {
128
- this.addTaskOrListOfTasks(tasks, this._preBuildTasks);
129
- }
130
- /**
131
- * Register additional sub-tasks to run after the typescript subtask.
132
- * Note, this is meant to be used in a gulpfile.js to inject one-off subtasks
133
- */
134
- addPostTypescriptTask(tasks) {
135
- this.addTaskOrListOfTasks(tasks, this._postTypescriptTasks);
136
- }
137
- /**
138
- * Register additional sub-tasks to run after the typescript subtask.
139
- * @deprecated - Use {@link addPostTypescriptTask} instead
140
- */
141
- addBuildTasks(tasks) {
142
- this.addTaskOrListOfTasks(tasks, this._postTypescriptTasks);
143
- }
144
- /**
145
- * Register additional sub-tasks to run after the entire build.
146
- * Note, this is meant to be used in a gulpfile.js to inject one-off subtasks
147
- */
148
- addPostBuildTask(tasks) {
149
- this.addTaskOrListOfTasks(tasks, this._postBuildTasks);
150
- }
151
- /**
152
- * Override this function to register more top-level command line arguments (i.e. not task-specific).
153
- * Ideally, extend the ICoreBuildArgs when hooking into this function
154
- *
155
- * Registers the command line arguments which are available for this rig
156
- */
157
- getYargs() {
158
- return yargs
159
- .usage()
160
- .option('production', {
161
- alias: 'p',
162
- describe: 'build in ship mode with full localization and minimization',
163
- boolean: true
164
- })
165
- .option('ship', {
166
- alias: 'p',
167
- describe: 'build in ship mode with full localization and minimization',
168
- boolean: true
169
- })
170
- .option('verbose', {
171
- describe: 'run the build with verbose logging'
172
- })
173
- .option('tasks', {
174
- alias: ['T', 'tasks-simple'],
175
- describe: 'shows the list of tasks which can be run'
176
- })
177
- .help('h')
178
- .global(['production', 'verbose', 'h'])
179
- .option('locale', {
180
- describe: 'override the default culture (e.g. "fr-fr")',
181
- type: 'string'
182
- })
183
- .option('lite', {
184
- alias: 'l',
185
- describe: 'Speeds up the build by running the minimal set of tasks required to produce an executable output',
186
- type: 'boolean'
187
- })
188
- .command(BuildRigConstants_1.BuildRigConstants.tasks.build, 'build the project')
189
- .command(BuildRigConstants_1.BuildRigConstants.tasks.default, 'equivalent to bundle');
190
- }
191
- /**
192
- * Override this function to create new top-level tasks which can be executed via the command line
193
- *
194
- * Register 2 tasks, build and default, which simply copy files, then run typescript and tslint
195
- */
196
- getTasks() {
197
- const result = new Map();
198
- result.set(BuildRigConstants_1.BuildRigConstants.tasks.build, { executable: this.getBuildTask() });
199
- result.set(BuildRigConstants_1.BuildRigConstants.tasks.default, { executable: this.getBuildTask() });
200
- return result;
201
- }
202
- /**
203
- * Override this function to overwrite the "build" task
204
- */
205
- getBuildTask() {
206
- return coreBuild.serial(exports.preCopy, coreBuild.serial(this._preBuildTasks), this.getCoreBuildTask(), coreBuild.serial(this._postBuildTasks), exports.postCopy);
207
- }
208
- /**
209
- * Override this function to redefine the core build loop
210
- */
211
- getCoreBuildTask() {
212
- 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)));
213
- }
214
- /**
215
- * Override this function to do configuration before the configuration .json files have been loaded
216
- */
217
- setupSharedConfig() {
218
- exports.preCopy.name = 'pre-copy';
219
- exports.postCopy.name = 'post-copy';
220
- // adding release folder to the list of folders to be removed during the clean task run
221
- coreBuild.clean.getCleanMatch = () => ['release'];
222
- }
223
- /**
224
- * Override this function to do configuration after the configuration .json files have been loaded
225
- *
226
- * This function cleans up the shared config by populating task config properties that depend on other tasks'
227
- * user-defined properties.
228
- */
229
- finalizeSharedConfig() {
230
- if (this.args.lite) {
231
- this._disableTasks(gulp_core_build_typescript_1.lintCmd);
232
- }
233
- }
234
- addTaskOrListOfTasks(tasks, array) {
235
- if (tasks.length) {
236
- array.push(...tasks);
237
- }
238
- else {
239
- array.push(tasks);
240
- }
241
- }
242
- _disableTasks(...tasks) {
243
- tasks.forEach((task) => {
244
- task.isEnabled = () => false;
245
- coreBuild.verbose(`Disabling task: ${task.name}`);
246
- });
247
- }
248
- }
249
- exports.SPBuildRig = SPBuildRig;
250
- //# 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