@nx/web 16.0.0-beta.5 → 16.0.0-beta.7
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/executors.json +0 -30
- package/migrations.json +6 -0
- package/package.json +5 -5
- package/src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors.d.ts +2 -0
- package/src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors.js +39 -0
- package/src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors.js.map +1 -0
- package/src/executors/dev-server/compat.d.ts +0 -2
- package/src/executors/dev-server/compat.js +0 -6
- package/src/executors/dev-server/compat.js.map +0 -1
- package/src/executors/dev-server/dev-server.impl.d.ts +0 -7
- package/src/executors/dev-server/dev-server.impl.js +0 -19
- package/src/executors/dev-server/dev-server.impl.js.map +0 -1
- package/src/executors/dev-server/schema.json +0 -81
- package/src/executors/rollup/compat.d.ts +0 -2
- package/src/executors/rollup/compat.js +0 -6
- package/src/executors/rollup/compat.js.map +0 -1
- package/src/executors/rollup/rollup.impl.d.ts +0 -8
- package/src/executors/rollup/rollup.impl.js +0 -19
- package/src/executors/rollup/rollup.impl.js.map +0 -1
- package/src/executors/rollup/schema.d.ts +0 -29
- package/src/executors/rollup/schema.json +0 -153
- package/src/executors/webpack/compat.d.ts +0 -2
- package/src/executors/webpack/compat.js +0 -6
- package/src/executors/webpack/compat.js.map +0 -1
- package/src/executors/webpack/schema.json +0 -374
- package/src/executors/webpack/webpack.impl.d.ts +0 -7
- package/src/executors/webpack/webpack.impl.js +0 -19
- package/src/executors/webpack/webpack.impl.js.map +0 -1
package/executors.json
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"builders": {
|
|
3
|
-
"webpack": {
|
|
4
|
-
"implementation": "./src/executors/webpack/compat",
|
|
5
|
-
"schema": "./src/executors/webpack/schema.json",
|
|
6
|
-
"description": "Build an application using Webpack."
|
|
7
|
-
},
|
|
8
|
-
"rollup": {
|
|
9
|
-
"implementation": "./src/executors/rollup/compat",
|
|
10
|
-
"schema": "./src/executors/rollup/schema.json",
|
|
11
|
-
"description": "Package a library using Rollup."
|
|
12
|
-
},
|
|
13
|
-
"dev-server": {
|
|
14
|
-
"implementation": "./src/executors/dev-server/compat",
|
|
15
|
-
"schema": "./src/executors/dev-server/schema.json",
|
|
16
|
-
"description": "Serve a web application."
|
|
17
|
-
},
|
|
18
3
|
"file-server": {
|
|
19
4
|
"implementation": "./src/executors/file-server/compat",
|
|
20
5
|
"schema": "./src/executors/file-server/schema.json",
|
|
@@ -22,21 +7,6 @@
|
|
|
22
7
|
}
|
|
23
8
|
},
|
|
24
9
|
"executors": {
|
|
25
|
-
"webpack": {
|
|
26
|
-
"implementation": "./src/executors/webpack/webpack.impl",
|
|
27
|
-
"schema": "./src/executors/webpack/schema.json",
|
|
28
|
-
"description": "Build an application using Webpack."
|
|
29
|
-
},
|
|
30
|
-
"rollup": {
|
|
31
|
-
"implementation": "./src/executors/rollup/rollup.impl",
|
|
32
|
-
"schema": "./src/executors/rollup/schema.json",
|
|
33
|
-
"description": "Package a library using Rollup."
|
|
34
|
-
},
|
|
35
|
-
"dev-server": {
|
|
36
|
-
"implementation": "./src/executors/dev-server/dev-server.impl",
|
|
37
|
-
"schema": "./src/executors/dev-server/schema.json",
|
|
38
|
-
"description": "Serve a web application."
|
|
39
|
-
},
|
|
40
10
|
"file-server": {
|
|
41
11
|
"implementation": "./src/executors/file-server/file-server.impl",
|
|
42
12
|
"schema": "./src/executors/file-server/schema.json",
|
package/migrations.json
CHANGED
|
@@ -65,6 +65,12 @@
|
|
|
65
65
|
"version": "16.0.0-beta.1",
|
|
66
66
|
"description": "Replace @nrwl/web with @nx/web",
|
|
67
67
|
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
|
68
|
+
},
|
|
69
|
+
"update-16-0-0-update-executors": {
|
|
70
|
+
"cli": "nx",
|
|
71
|
+
"version": "16.0.0-beta.4",
|
|
72
|
+
"description": "Replace @nrwl/web executors with @nx/webpack and @nx/rollup",
|
|
73
|
+
"implementation": "./src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors"
|
|
68
74
|
}
|
|
69
75
|
},
|
|
70
76
|
"packageJsonUpdates": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/web",
|
|
3
|
-
"version": "16.0.0-beta.
|
|
3
|
+
"version": "16.0.0-beta.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Web Components contains generators for managing Web Component applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"migrations": "./migrations.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nrwl/web": "16.0.0-beta.
|
|
34
|
-
"@nx/devkit": "16.0.0-beta.
|
|
35
|
-
"@nx/js": "16.0.0-beta.
|
|
33
|
+
"@nrwl/web": "16.0.0-beta.7",
|
|
34
|
+
"@nx/devkit": "16.0.0-beta.7",
|
|
35
|
+
"@nx/js": "16.0.0-beta.7",
|
|
36
36
|
"chalk": "^4.1.0",
|
|
37
37
|
"chokidar": "^3.5.1",
|
|
38
38
|
"http-server": "^14.1.0",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"types": "./index.d.ts",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "eb477479bf73bca940323a66e486221f00006c0f"
|
|
47
47
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const versions_1 = require("../../utils/versions");
|
|
6
|
+
function update(host) {
|
|
7
|
+
var _a, _b, _c, _d, _e, _f;
|
|
8
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
+
const projects = (0, devkit_1.getProjects)(host);
|
|
10
|
+
const deps = {};
|
|
11
|
+
for (const [name, config] of projects.entries()) {
|
|
12
|
+
let updated = false;
|
|
13
|
+
// webpack
|
|
14
|
+
if (((_b = (_a = config === null || config === void 0 ? void 0 : config.targets) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.executor) === '@nrwl/web:webpack') {
|
|
15
|
+
config.targets.build.executor = '@nx/webpack:webpack';
|
|
16
|
+
deps['@nx/webpack'] = versions_1.nxVersion;
|
|
17
|
+
updated = true;
|
|
18
|
+
}
|
|
19
|
+
if (((_d = (_c = config === null || config === void 0 ? void 0 : config.targets) === null || _c === void 0 ? void 0 : _c.serve) === null || _d === void 0 ? void 0 : _d.executor) === '@nrwl/web:dev-server') {
|
|
20
|
+
config.targets.serve.executor = '@nx/webpack:dev-server';
|
|
21
|
+
deps['@nx/webpack'] = versions_1.nxVersion;
|
|
22
|
+
updated = true;
|
|
23
|
+
}
|
|
24
|
+
// rollup
|
|
25
|
+
if (((_f = (_e = config === null || config === void 0 ? void 0 : config.targets) === null || _e === void 0 ? void 0 : _e.build) === null || _f === void 0 ? void 0 : _f.executor) === '@nrwl/web:rollup') {
|
|
26
|
+
config.targets.build.executor = '@nx/rollup:rollup';
|
|
27
|
+
deps['@nx/rollup'] = versions_1.nxVersion;
|
|
28
|
+
updated = true;
|
|
29
|
+
}
|
|
30
|
+
if (updated) {
|
|
31
|
+
(0, devkit_1.updateProjectConfiguration)(host, name, config);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
yield (0, devkit_1.formatFiles)(host);
|
|
35
|
+
return (0, devkit_1.addDependenciesToPackageJson)(host, {}, deps);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
exports.default = update;
|
|
39
|
+
//# sourceMappingURL=update-16-0-0-update-executors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-16-0-0-update-executors.js","sourceRoot":"","sources":["../../../../../../packages/web/src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors.ts"],"names":[],"mappings":";;;AAAA,uCAMoB;AACpB,mDAAiD;AAEjD,SAA8B,MAAM,CAAC,IAAU;;;QAC7C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QACnC,MAAM,IAAI,GAAG,EAAE,CAAC;QAEhB,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE;YAC/C,IAAI,OAAO,GAAG,KAAK,CAAC;YAEpB,UAAU;YACV,IAAI,CAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,KAAK,0CAAE,QAAQ,MAAK,mBAAmB,EAAE;gBAC5D,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,qBAAqB,CAAC;gBACtD,IAAI,CAAC,aAAa,CAAC,GAAG,oBAAS,CAAC;gBAChC,OAAO,GAAG,IAAI,CAAC;aAChB;YACD,IAAI,CAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,KAAK,0CAAE,QAAQ,MAAK,sBAAsB,EAAE;gBAC/D,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,wBAAwB,CAAC;gBACzD,IAAI,CAAC,aAAa,CAAC,GAAG,oBAAS,CAAC;gBAChC,OAAO,GAAG,IAAI,CAAC;aAChB;YAED,SAAS;YACT,IAAI,CAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,KAAK,0CAAE,QAAQ,MAAK,kBAAkB,EAAE;gBAC3D,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,mBAAmB,CAAC;gBACpD,IAAI,CAAC,YAAY,CAAC,GAAG,oBAAS,CAAC;gBAC/B,OAAO,GAAG,IAAI,CAAC;aAChB;YAED,IAAI,OAAO,EAAE;gBACX,IAAA,mCAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;aAChD;SACF;QAED,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAExB,OAAO,IAAA,qCAA4B,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;;CACrD;AAlCD,yBAkCC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
const dev_server_impl_1 = require("./dev-server.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(dev_server_impl_1.default);
|
|
6
|
-
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/dev-server/compat.ts"],"names":[],"mappings":";;AAAA,uCAA+C;AAE/C,uDAAkD;AAElD,kBAAe,IAAA,0BAAiB,EAAC,yBAAiB,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is here for backwards-compat.
|
|
3
|
-
* TODO(v16): remove in Nx 16.
|
|
4
|
-
*/
|
|
5
|
-
import { ExecutorContext } from '@nx/devkit';
|
|
6
|
-
export declare function devServerExecutor(options: any, context: ExecutorContext): AsyncGenerator<any, void, any>;
|
|
7
|
-
export default devServerExecutor;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.devServerExecutor = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* This is here for backwards-compat.
|
|
7
|
-
* TODO(v16): remove in Nx 16.
|
|
8
|
-
*/
|
|
9
|
-
const devkit_1 = require("@nx/devkit");
|
|
10
|
-
function devServerExecutor(options, context) {
|
|
11
|
-
return tslib_1.__asyncGenerator(this, arguments, function* devServerExecutor_1() {
|
|
12
|
-
const { devServerExecutor: baseDevServerExecutor } = require('@nx/webpack');
|
|
13
|
-
devkit_1.logger.warn('"@nx/web:dev-server" executor is deprecated. Use "@nx/webpack:dev-server" instead in your project.json.');
|
|
14
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(baseDevServerExecutor(Object.assign(Object.assign({}, options), { target: 'web' }), context))));
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.devServerExecutor = devServerExecutor;
|
|
18
|
-
exports.default = devServerExecutor;
|
|
19
|
-
//# sourceMappingURL=dev-server.impl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server.impl.js","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/dev-server/dev-server.impl.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAAqD;AAErD,SAAuB,iBAAiB,CACtC,OAAY,EACZ,OAAwB;;QAExB,MAAM,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;QAC5E,eAAM,CAAC,IAAI,CACT,yGAAyG,CAC1G,CAAC;QACF,sBAAA,KAAK,CAAC,CAAC,yBAAA,sBAAA,qBAAqB,iCAErB,OAAO,KACV,MAAM,EAAE,KAAK,KAEf,OAAO,CACR,CAAA,CAAA,CAAA,CAAC;IACJ,CAAC;CAAA;AAfD,8CAeC;AACD,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"outputCapture": "direct-nodejs",
|
|
4
|
-
"title": "Web Dev Server",
|
|
5
|
-
"description": "Serve a web application.",
|
|
6
|
-
"cli": "nx",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"buildTarget": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "Target which builds the application."
|
|
12
|
-
},
|
|
13
|
-
"port": {
|
|
14
|
-
"type": "number",
|
|
15
|
-
"description": "Port to listen on.",
|
|
16
|
-
"default": 4200
|
|
17
|
-
},
|
|
18
|
-
"host": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "Host to listen on.",
|
|
21
|
-
"default": "localhost"
|
|
22
|
-
},
|
|
23
|
-
"ssl": {
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"description": "Serve using `HTTPS`.",
|
|
26
|
-
"default": false
|
|
27
|
-
},
|
|
28
|
-
"sslKey": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "SSL key to use for serving `HTTPS`."
|
|
31
|
-
},
|
|
32
|
-
"sslCert": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "SSL certificate to use for serving `HTTPS`."
|
|
35
|
-
},
|
|
36
|
-
"watch": {
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"description": "Watches for changes and rebuilds application.",
|
|
39
|
-
"default": true
|
|
40
|
-
},
|
|
41
|
-
"liveReload": {
|
|
42
|
-
"type": "boolean",
|
|
43
|
-
"description": "Whether to reload the page on change, using live-reload.",
|
|
44
|
-
"default": true
|
|
45
|
-
},
|
|
46
|
-
"hmr": {
|
|
47
|
-
"type": "boolean",
|
|
48
|
-
"description": "Enable hot module replacement.",
|
|
49
|
-
"default": false
|
|
50
|
-
},
|
|
51
|
-
"publicHost": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "Public URL where the application will be served.",
|
|
54
|
-
"x-priority": "important"
|
|
55
|
-
},
|
|
56
|
-
"open": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"description": "Open the application in the browser.",
|
|
59
|
-
"default": false
|
|
60
|
-
},
|
|
61
|
-
"allowedHosts": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "This option allows you to whitelist services that are allowed to access the dev server."
|
|
64
|
-
},
|
|
65
|
-
"memoryLimit": {
|
|
66
|
-
"type": "number",
|
|
67
|
-
"description": "Memory limit for type checking service process in `MB`."
|
|
68
|
-
},
|
|
69
|
-
"maxWorkers": {
|
|
70
|
-
"type": "number",
|
|
71
|
-
"description": "Number of workers to use for type checking."
|
|
72
|
-
},
|
|
73
|
-
"baseHref": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"description": "Base url for the application being built.",
|
|
76
|
-
"x-priority": "important"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"additionalProperties": false,
|
|
80
|
-
"required": ["buildTarget"]
|
|
81
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
const rollup_impl_1 = require("./rollup.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(rollup_impl_1.default);
|
|
6
|
-
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/rollup/compat.ts"],"names":[],"mappings":";;AAAA,uCAA+C;AAE/C,+CAA2C;AAE3C,kBAAe,IAAA,0BAAiB,EAAC,qBAAc,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is here for backwards-compat.
|
|
3
|
-
* TODO(v16): remove in Nx 16.
|
|
4
|
-
*/
|
|
5
|
-
import { RollupExecutorOptions as WebRollupOptions } from '@nx/rollup';
|
|
6
|
-
export { WebRollupOptions };
|
|
7
|
-
export declare function rollupExecutor(options: any, context: any): AsyncGenerator<import("@nx/rollup").RollupExecutorEvent, any, undefined>;
|
|
8
|
-
export default rollupExecutor;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rollupExecutor = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* This is here for backwards-compat.
|
|
7
|
-
* TODO(v16): remove in Nx 16.
|
|
8
|
-
*/
|
|
9
|
-
const rollup_1 = require("@nx/rollup");
|
|
10
|
-
const logger_1 = require("nx/src/utils/logger");
|
|
11
|
-
function rollupExecutor(options, context) {
|
|
12
|
-
return tslib_1.__asyncGenerator(this, arguments, function* rollupExecutor_1() {
|
|
13
|
-
logger_1.logger.warn('"@nx/web:rollup" executor is deprecated. Use "@nx/rollup:rollup" instead in your project.json.');
|
|
14
|
-
return yield tslib_1.__await(yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues((0, rollup_1.rollupExecutor)(Object.assign(Object.assign({}, options), { main: options.main || options.entryFile }), context)))));
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.rollupExecutor = rollupExecutor;
|
|
18
|
-
exports.default = rollupExecutor;
|
|
19
|
-
//# sourceMappingURL=rollup.impl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.impl.js","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/rollup/rollup.impl.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAGoB;AACpB,gDAA6C;AAI7C,SAAuB,cAAc,CAAC,OAAY,EAAE,OAAY;;QAC9D,eAAM,CAAC,IAAI,CACT,gGAAgG,CACjG,CAAC;QACF,6BAAO,sBAAA,KAAK,CAAC,CAAC,yBAAA,sBAAA,IAAA,uBAAe,kCAEtB,OAAO,KACV,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,SAAS,KAEzC,OAAO,CACR,CAAA,CAAA,CAAA,EAAC;IACJ,CAAC;CAAA;AAXD,wCAWC;AACD,kBAAe,cAAc,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
type Compiler = 'babel' | 'swc';
|
|
2
|
-
|
|
3
|
-
export interface Globals {
|
|
4
|
-
moduleId: string;
|
|
5
|
-
global: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface WebRollupOptions {
|
|
9
|
-
outputPath: string;
|
|
10
|
-
tsConfig: string;
|
|
11
|
-
project: string;
|
|
12
|
-
entryFile: string;
|
|
13
|
-
extractCss?: boolean | string;
|
|
14
|
-
globals?: Globals[];
|
|
15
|
-
external?: string[];
|
|
16
|
-
rollupConfig?: string | string[];
|
|
17
|
-
watch?: boolean;
|
|
18
|
-
assets?: any[];
|
|
19
|
-
updateBuildableProjectDepsInPackageJson?: boolean;
|
|
20
|
-
buildableProjectDepsInPackageJsonType?: 'dependencies' | 'peerDependencies';
|
|
21
|
-
umdName?: string;
|
|
22
|
-
deleteOutputPath?: boolean;
|
|
23
|
-
format: string[];
|
|
24
|
-
compiler?: Compiler;
|
|
25
|
-
javascriptEnabled?: boolean;
|
|
26
|
-
// TODO(jack): remove this for Nx 16
|
|
27
|
-
skipTypeField?: boolean;
|
|
28
|
-
generateExportsField?: boolean;
|
|
29
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"outputCapture": "direct-nodejs",
|
|
4
|
-
"title": "Web Library Rollup Target (Experimental)",
|
|
5
|
-
"description": "Packages a library for different web usages (`UMD`, `ESM`, `CJS`).",
|
|
6
|
-
"cli": "nx",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"project": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "The path to package.json file."
|
|
12
|
-
},
|
|
13
|
-
"entryFile": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "The path to the entry file, relative to project.",
|
|
16
|
-
"x-completion-type": "file",
|
|
17
|
-
"x-completion-glob": "**/*@(.js|.ts)"
|
|
18
|
-
},
|
|
19
|
-
"outputPath": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "The output path of the generated files.",
|
|
22
|
-
"x-completion-type": "directory"
|
|
23
|
-
},
|
|
24
|
-
"deleteOutputPath": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"description": "Delete the output path before building.",
|
|
27
|
-
"default": true
|
|
28
|
-
},
|
|
29
|
-
"tsConfig": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "The path to tsconfig file.",
|
|
32
|
-
"x-completion-type": "file",
|
|
33
|
-
"x-completion-glob": "tsconfig.*.json"
|
|
34
|
-
},
|
|
35
|
-
"format": {
|
|
36
|
-
"type": "array",
|
|
37
|
-
"description": "Only build the specified comma-separated formats (`esm,umd,cjs`)",
|
|
38
|
-
"alias": "f",
|
|
39
|
-
"items": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"enum": ["esm", "umd", "cjs"]
|
|
42
|
-
},
|
|
43
|
-
"default": ["esm"],
|
|
44
|
-
"x-priority": "important"
|
|
45
|
-
},
|
|
46
|
-
"external": {
|
|
47
|
-
"type": "array",
|
|
48
|
-
"description": "A list of external modules that will not be bundled (`react`, `react-dom`, etc.).",
|
|
49
|
-
"items": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"watch": {
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"description": "Enable re-building when files change.",
|
|
56
|
-
"default": false
|
|
57
|
-
},
|
|
58
|
-
"updateBuildableProjectDepsInPackageJson": {
|
|
59
|
-
"type": "boolean",
|
|
60
|
-
"description": "Update buildable project dependencies in `package.json`.",
|
|
61
|
-
"default": true
|
|
62
|
-
},
|
|
63
|
-
"buildableProjectDepsInPackageJsonType": {
|
|
64
|
-
"type": "string",
|
|
65
|
-
"description": "When `updateBuildableProjectDepsInPackageJson` is `true`, this adds dependencies to either `peerDependencies` or `dependencies`.",
|
|
66
|
-
"enum": ["dependencies", "peerDependencies"],
|
|
67
|
-
"default": "peerDependencies"
|
|
68
|
-
},
|
|
69
|
-
"rollupConfig": {
|
|
70
|
-
"oneOf": [
|
|
71
|
-
{
|
|
72
|
-
"type": "array",
|
|
73
|
-
"items": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"x-completion-type": "file",
|
|
76
|
-
"x-completion-glob": "rollup?(*)@(.js|.ts)"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"type": "string",
|
|
81
|
-
"x-completion-type": "file",
|
|
82
|
-
"x-completion-glob": "rollup?(*)@(.js|.ts)"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"description": "Path to a function which takes a rollup config and returns an updated rollup config.",
|
|
86
|
-
"x-priority": "important"
|
|
87
|
-
},
|
|
88
|
-
"extractCss": {
|
|
89
|
-
"type": ["boolean", "string"],
|
|
90
|
-
"description": "CSS files will be extracted to the output folder. Alternatively custom filename can be provided (e.g. styles.css)",
|
|
91
|
-
"default": true
|
|
92
|
-
},
|
|
93
|
-
"assets": {
|
|
94
|
-
"type": "array",
|
|
95
|
-
"description": "List of static assets.",
|
|
96
|
-
"default": [],
|
|
97
|
-
"items": {
|
|
98
|
-
"$ref": "#/definitions/assetPattern"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"compiler": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"enum": ["babel", "swc"],
|
|
104
|
-
"default": "babel",
|
|
105
|
-
"description": "Which compiler to use.",
|
|
106
|
-
"x-priority": "important"
|
|
107
|
-
},
|
|
108
|
-
"javascriptEnabled": {
|
|
109
|
-
"type": "boolean",
|
|
110
|
-
"description": "Sets `javascriptEnabled` option for less loader",
|
|
111
|
-
"default": false
|
|
112
|
-
},
|
|
113
|
-
"generateExportsField": {
|
|
114
|
-
"type": "boolean",
|
|
115
|
-
"description": "Generate package.json with 'exports' field. This field defines entry points in the package and is used by Node and the TypeScript compiler.",
|
|
116
|
-
"default": false
|
|
117
|
-
},
|
|
118
|
-
"skipTypeField": {
|
|
119
|
-
"type": "boolean",
|
|
120
|
-
"description": "Prevents 'type' field from being added to compiled package.json file. Only use this if you are having an issue with this field.",
|
|
121
|
-
"default": false
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"required": ["tsConfig", "entryFile", "outputPath"],
|
|
125
|
-
"definitions": {
|
|
126
|
-
"assetPattern": {
|
|
127
|
-
"oneOf": [
|
|
128
|
-
{
|
|
129
|
-
"type": "object",
|
|
130
|
-
"properties": {
|
|
131
|
-
"glob": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"description": "The pattern to match."
|
|
134
|
-
},
|
|
135
|
-
"input": {
|
|
136
|
-
"type": "string",
|
|
137
|
-
"description": "The input directory path in which to apply `glob`. Defaults to the project root."
|
|
138
|
-
},
|
|
139
|
-
"output": {
|
|
140
|
-
"type": "string",
|
|
141
|
-
"description": "Relative path within the output folder."
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"additionalProperties": false,
|
|
145
|
-
"required": ["glob", "input", "output"]
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"type": "string"
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
const webpack_impl_1 = require("./webpack.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(webpack_impl_1.webpackExecutor);
|
|
6
|
-
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/webpack/compat.ts"],"names":[],"mappings":";;AAAA,uCAA+C;AAE/C,iDAAiD;AAEjD,kBAAe,IAAA,0BAAiB,EAAC,8BAAe,CAAC,CAAC"}
|
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"outputCapture": "direct-nodejs",
|
|
4
|
-
"title": "Webpack Executor",
|
|
5
|
-
"description": "Builds web applications using webpack.",
|
|
6
|
-
"cli": "nx",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"crossOrigin": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "The `crossorigin` attribute to use for generated javascript script tags. One of 'none' | 'anonymous' | 'use-credentials'."
|
|
12
|
-
},
|
|
13
|
-
"main": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "The name of the main entry-point file.",
|
|
16
|
-
"x-completion-type": "file",
|
|
17
|
-
"x-completion-glob": "**/*@(.js|.ts|.tsx)"
|
|
18
|
-
},
|
|
19
|
-
"tsConfig": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "The name of the Typescript configuration file.",
|
|
22
|
-
"x-completion-type": "file",
|
|
23
|
-
"x-completion-glob": "tsconfig.*.json"
|
|
24
|
-
},
|
|
25
|
-
"compiler": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "The compiler to use.",
|
|
28
|
-
"enum": ["babel", "swc"],
|
|
29
|
-
"default": "babel",
|
|
30
|
-
"x-priority": "important"
|
|
31
|
-
},
|
|
32
|
-
"outputPath": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "The output path of the generated files.",
|
|
35
|
-
"x-completion-type": "directory"
|
|
36
|
-
},
|
|
37
|
-
"deleteOutputPath": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"description": "Delete the output path before building.",
|
|
40
|
-
"default": true
|
|
41
|
-
},
|
|
42
|
-
"watch": {
|
|
43
|
-
"type": "boolean",
|
|
44
|
-
"description": "Enable re-building when files change.",
|
|
45
|
-
"default": false
|
|
46
|
-
},
|
|
47
|
-
"baseHref": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"description": "Base url for the application being built.",
|
|
50
|
-
"x-priority": "important"
|
|
51
|
-
},
|
|
52
|
-
"deployUrl": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "URL where the application will be deployed.",
|
|
55
|
-
"x-priority": "important"
|
|
56
|
-
},
|
|
57
|
-
"vendorChunk": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"description": "Use a separate bundle containing only vendor libraries.",
|
|
60
|
-
"default": true
|
|
61
|
-
},
|
|
62
|
-
"commonChunk": {
|
|
63
|
-
"type": "boolean",
|
|
64
|
-
"description": "Use a separate bundle containing code used across multiple bundles.",
|
|
65
|
-
"default": true
|
|
66
|
-
},
|
|
67
|
-
"runtimeChunk": {
|
|
68
|
-
"type": "boolean",
|
|
69
|
-
"description": "Use a separate bundle containing the runtime.",
|
|
70
|
-
"default": true
|
|
71
|
-
},
|
|
72
|
-
"sourceMap": {
|
|
73
|
-
"description": "Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.",
|
|
74
|
-
"default": true,
|
|
75
|
-
"oneOf": [
|
|
76
|
-
{
|
|
77
|
-
"type": "boolean"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"type": "string"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"progress": {
|
|
85
|
-
"type": "boolean",
|
|
86
|
-
"description": "Log progress to the console while building.",
|
|
87
|
-
"default": false
|
|
88
|
-
},
|
|
89
|
-
"assets": {
|
|
90
|
-
"type": "array",
|
|
91
|
-
"description": "List of static application assets.",
|
|
92
|
-
"default": [],
|
|
93
|
-
"items": {
|
|
94
|
-
"$ref": "#/definitions/assetPattern"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"index": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"description": "HTML File which will be contain the application.",
|
|
100
|
-
"x-completion-type": "file",
|
|
101
|
-
"x-completion-glob": "**/*@(.html|.htm)"
|
|
102
|
-
},
|
|
103
|
-
"scripts": {
|
|
104
|
-
"type": "array",
|
|
105
|
-
"description": "External Scripts which will be included before the main application entry.",
|
|
106
|
-
"items": {
|
|
107
|
-
"$ref": "#/definitions/extraEntryPoint"
|
|
108
|
-
},
|
|
109
|
-
"default": []
|
|
110
|
-
},
|
|
111
|
-
"styles": {
|
|
112
|
-
"type": "array",
|
|
113
|
-
"description": "External Styles which will be included with the application",
|
|
114
|
-
"items": {
|
|
115
|
-
"$ref": "#/definitions/extraEntryPoint"
|
|
116
|
-
},
|
|
117
|
-
"default": []
|
|
118
|
-
},
|
|
119
|
-
"budgets": {
|
|
120
|
-
"description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
|
|
121
|
-
"type": "array",
|
|
122
|
-
"items": {
|
|
123
|
-
"$ref": "#/definitions/budget"
|
|
124
|
-
},
|
|
125
|
-
"default": []
|
|
126
|
-
},
|
|
127
|
-
"namedChunks": {
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"description": "Names the produced bundles according to their entry file.",
|
|
130
|
-
"default": true
|
|
131
|
-
},
|
|
132
|
-
"outputHashing": {
|
|
133
|
-
"type": "string",
|
|
134
|
-
"description": "Define the output filename cache-busting hashing mode.",
|
|
135
|
-
"default": "none",
|
|
136
|
-
"enum": ["none", "all", "media", "bundles"]
|
|
137
|
-
},
|
|
138
|
-
"stylePreprocessorOptions": {
|
|
139
|
-
"description": "Options to pass to style preprocessors.",
|
|
140
|
-
"type": "object",
|
|
141
|
-
"properties": {
|
|
142
|
-
"includePaths": {
|
|
143
|
-
"description": "Paths to include. Paths will be resolved to project root.",
|
|
144
|
-
"type": "array",
|
|
145
|
-
"items": {
|
|
146
|
-
"type": "string"
|
|
147
|
-
},
|
|
148
|
-
"default": []
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"additionalProperties": false
|
|
152
|
-
},
|
|
153
|
-
"optimization": {
|
|
154
|
-
"description": "Enables optimization of the build output.",
|
|
155
|
-
"oneOf": [
|
|
156
|
-
{
|
|
157
|
-
"type": "object",
|
|
158
|
-
"properties": {
|
|
159
|
-
"scripts": {
|
|
160
|
-
"type": "boolean",
|
|
161
|
-
"description": "Enables optimization of the scripts output.",
|
|
162
|
-
"default": true
|
|
163
|
-
},
|
|
164
|
-
"styles": {
|
|
165
|
-
"type": "boolean",
|
|
166
|
-
"description": "Enables optimization of the styles output.",
|
|
167
|
-
"default": true
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"additionalProperties": false
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"type": "boolean"
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"extractCss": {
|
|
178
|
-
"type": "boolean",
|
|
179
|
-
"description": "Extract CSS into a `.css` file.",
|
|
180
|
-
"default": true
|
|
181
|
-
},
|
|
182
|
-
"subresourceIntegrity": {
|
|
183
|
-
"type": "boolean",
|
|
184
|
-
"description": "Enables the use of subresource integrity validation.",
|
|
185
|
-
"default": false
|
|
186
|
-
},
|
|
187
|
-
"polyfills": {
|
|
188
|
-
"type": "string",
|
|
189
|
-
"description": "Polyfills to load before application",
|
|
190
|
-
"x-completion-type": "file",
|
|
191
|
-
"x-completion-glob": "**/*@(.js|.ts|.tsx)"
|
|
192
|
-
},
|
|
193
|
-
"verbose": {
|
|
194
|
-
"type": "boolean",
|
|
195
|
-
"description": "Emits verbose output",
|
|
196
|
-
"default": false
|
|
197
|
-
},
|
|
198
|
-
"statsJson": {
|
|
199
|
-
"type": "boolean",
|
|
200
|
-
"description": "Generates a 'stats.json' file which can be analyzed using tools such as: 'webpack-bundle-analyzer' or `<https://webpack.github.io/analyse>`.",
|
|
201
|
-
"default": false
|
|
202
|
-
},
|
|
203
|
-
"extractLicenses": {
|
|
204
|
-
"type": "boolean",
|
|
205
|
-
"description": "Extract all licenses in a separate file, in the case of production builds only.",
|
|
206
|
-
"default": false
|
|
207
|
-
},
|
|
208
|
-
"memoryLimit": {
|
|
209
|
-
"type": "number",
|
|
210
|
-
"description": "Memory limit for type checking service process in `MB`.",
|
|
211
|
-
"default": 2048
|
|
212
|
-
},
|
|
213
|
-
"maxWorkers": {
|
|
214
|
-
"type": "number",
|
|
215
|
-
"description": "Number of workers to use for type checking.",
|
|
216
|
-
"default": 2
|
|
217
|
-
},
|
|
218
|
-
"fileReplacements": {
|
|
219
|
-
"description": "Replace files with other files in the build.",
|
|
220
|
-
"type": "array",
|
|
221
|
-
"items": {
|
|
222
|
-
"type": "object",
|
|
223
|
-
"properties": {
|
|
224
|
-
"replace": {
|
|
225
|
-
"type": "string",
|
|
226
|
-
"description": "The file to be replaced.",
|
|
227
|
-
"x-completion-type": "file"
|
|
228
|
-
},
|
|
229
|
-
"with": {
|
|
230
|
-
"type": "string",
|
|
231
|
-
"description": "The file to replace with.",
|
|
232
|
-
"x-completion-type": "file"
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
"additionalProperties": false,
|
|
236
|
-
"required": ["replace", "with"]
|
|
237
|
-
},
|
|
238
|
-
"default": []
|
|
239
|
-
},
|
|
240
|
-
"buildLibsFromSource": {
|
|
241
|
-
"type": "boolean",
|
|
242
|
-
"description": "Read buildable libraries from source instead of building them separately.",
|
|
243
|
-
"default": true
|
|
244
|
-
},
|
|
245
|
-
"generateIndexHtml": {
|
|
246
|
-
"type": "boolean",
|
|
247
|
-
"description": "Generates `index.html` file to the output path. This can be turned off if using a webpack plugin to generate HTML such as `html-webpack-plugin`.",
|
|
248
|
-
"default": true
|
|
249
|
-
},
|
|
250
|
-
"postcssConfig": {
|
|
251
|
-
"type": "string",
|
|
252
|
-
"description": "Set a path to PostCSS config that applies to the app and all libs. Defaults to `undefined`, which auto-detects postcss.config.js files in each `app`/`lib` directory."
|
|
253
|
-
},
|
|
254
|
-
"webpackConfig": {
|
|
255
|
-
"type": "string",
|
|
256
|
-
"description": "Path to a function which takes a webpack config, some context and returns the resulting webpack config. See https://nx.dev/guides/customize-webpack",
|
|
257
|
-
"x-completion-type": "file",
|
|
258
|
-
"x-completion-glob": "webpack?(*)@(.js|.ts)",
|
|
259
|
-
"x-priority": "important"
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
"required": ["tsConfig", "main", "index"],
|
|
263
|
-
"definitions": {
|
|
264
|
-
"assetPattern": {
|
|
265
|
-
"oneOf": [
|
|
266
|
-
{
|
|
267
|
-
"type": "object",
|
|
268
|
-
"properties": {
|
|
269
|
-
"glob": {
|
|
270
|
-
"type": "string",
|
|
271
|
-
"description": "The pattern to match."
|
|
272
|
-
},
|
|
273
|
-
"input": {
|
|
274
|
-
"type": "string",
|
|
275
|
-
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
276
|
-
},
|
|
277
|
-
"ignore": {
|
|
278
|
-
"description": "An array of globs to ignore.",
|
|
279
|
-
"type": "array",
|
|
280
|
-
"items": {
|
|
281
|
-
"type": "string"
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
"output": {
|
|
285
|
-
"type": "string",
|
|
286
|
-
"description": "Absolute path within the output."
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
"additionalProperties": false,
|
|
290
|
-
"required": ["glob", "input", "output"]
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"type": "string"
|
|
294
|
-
}
|
|
295
|
-
]
|
|
296
|
-
},
|
|
297
|
-
"budget": {
|
|
298
|
-
"type": "object",
|
|
299
|
-
"properties": {
|
|
300
|
-
"type": {
|
|
301
|
-
"type": "string",
|
|
302
|
-
"description": "The type of budget.",
|
|
303
|
-
"enum": ["all", "allScript", "any", "anyScript", "bundle", "initial"]
|
|
304
|
-
},
|
|
305
|
-
"name": {
|
|
306
|
-
"type": "string",
|
|
307
|
-
"description": "The name of the bundle."
|
|
308
|
-
},
|
|
309
|
-
"baseline": {
|
|
310
|
-
"type": "string",
|
|
311
|
-
"description": "The baseline size for comparison."
|
|
312
|
-
},
|
|
313
|
-
"maximumWarning": {
|
|
314
|
-
"type": "string",
|
|
315
|
-
"description": "The maximum threshold for warning relative to the baseline."
|
|
316
|
-
},
|
|
317
|
-
"maximumError": {
|
|
318
|
-
"type": "string",
|
|
319
|
-
"description": "The maximum threshold for error relative to the baseline."
|
|
320
|
-
},
|
|
321
|
-
"minimumWarning": {
|
|
322
|
-
"type": "string",
|
|
323
|
-
"description": "The minimum threshold for warning relative to the baseline."
|
|
324
|
-
},
|
|
325
|
-
"minimumError": {
|
|
326
|
-
"type": "string",
|
|
327
|
-
"description": "The minimum threshold for error relative to the baseline."
|
|
328
|
-
},
|
|
329
|
-
"warning": {
|
|
330
|
-
"type": "string",
|
|
331
|
-
"description": "The threshold for warning relative to the baseline (min & max)."
|
|
332
|
-
},
|
|
333
|
-
"error": {
|
|
334
|
-
"type": "string",
|
|
335
|
-
"description": "The threshold for error relative to the baseline (min & max)."
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
"additionalProperties": false,
|
|
339
|
-
"required": ["type"]
|
|
340
|
-
},
|
|
341
|
-
"extraEntryPoint": {
|
|
342
|
-
"oneOf": [
|
|
343
|
-
{
|
|
344
|
-
"type": "object",
|
|
345
|
-
"properties": {
|
|
346
|
-
"input": {
|
|
347
|
-
"type": "string",
|
|
348
|
-
"description": "The file to include.",
|
|
349
|
-
"x-completion-type": "file",
|
|
350
|
-
"x-completion-glob": "**/*@(.css|.scss|.less|.sass|.styl|.stylus)"
|
|
351
|
-
},
|
|
352
|
-
"bundleName": {
|
|
353
|
-
"type": "string",
|
|
354
|
-
"description": "The bundle name for this extra entry point."
|
|
355
|
-
},
|
|
356
|
-
"inject": {
|
|
357
|
-
"type": "boolean",
|
|
358
|
-
"description": "If the bundle will be referenced in the HTML file.",
|
|
359
|
-
"default": true
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
"additionalProperties": false,
|
|
363
|
-
"required": ["input"]
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"type": "string",
|
|
367
|
-
"description": "The file to include.",
|
|
368
|
-
"x-completion-type": "file",
|
|
369
|
-
"x-completion-glob": "**/*@(.css|.scss|.less|.sass|.styl|.stylus)"
|
|
370
|
-
}
|
|
371
|
-
]
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webpackExecutor = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* For backwards compat.
|
|
7
|
-
* TODO(v16): Remove in Nx 16.
|
|
8
|
-
*/
|
|
9
|
-
const devkit_1 = require("@nx/devkit");
|
|
10
|
-
function webpackExecutor(options, context) {
|
|
11
|
-
return tslib_1.__asyncGenerator(this, arguments, function* webpackExecutor_1() {
|
|
12
|
-
const { webpackExecutor: baseWebpackExecutor } = require('@nx/webpack');
|
|
13
|
-
devkit_1.logger.warn('"@nx/web:webpack" executor is deprecated. Use "@nx/webpack:webpack" instead in your project.json.');
|
|
14
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(baseWebpackExecutor(Object.assign(Object.assign({}, options), { target: 'web' }), context))));
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.webpackExecutor = webpackExecutor;
|
|
18
|
-
exports.default = webpackExecutor;
|
|
19
|
-
//# sourceMappingURL=webpack.impl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.impl.js","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/webpack/webpack.impl.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAAqD;AAErD,SAAuB,eAAe,CAAC,OAAY,EAAE,OAAwB;;QAC3E,MAAM,EAAE,eAAe,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;QACxE,eAAM,CAAC,IAAI,CACT,mGAAmG,CACpG,CAAC;QACF,sBAAA,KAAK,CAAC,CAAC,yBAAA,sBAAA,mBAAmB,iCAEnB,OAAO,KACV,MAAM,EAAE,KAAK,KAEf,OAAO,CACR,CAAA,CAAA,CAAA,CAAC;IACJ,CAAC;CAAA;AAZD,0CAYC;AAED,kBAAe,eAAe,CAAC"}
|