@nx/web 16.0.0-beta.1
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/CHANGELOG.md +8 -0
- package/LICENSE +22 -0
- package/README.md +63 -0
- package/babel.d.ts +1 -0
- package/babel.js +7 -0
- package/babel.js.map +1 -0
- package/executors.json +46 -0
- package/generators.json +45 -0
- package/index.d.ts +3 -0
- package/index.js +10 -0
- package/index.js.map +1 -0
- package/migrations.json +90 -0
- package/package.json +47 -0
- package/src/executors/dev-server/compat.d.ts +2 -0
- package/src/executors/dev-server/compat.js +6 -0
- package/src/executors/dev-server/compat.js.map +1 -0
- package/src/executors/dev-server/dev-server.impl.d.ts +7 -0
- package/src/executors/dev-server/dev-server.impl.js +19 -0
- package/src/executors/dev-server/dev-server.impl.js.map +1 -0
- package/src/executors/dev-server/schema.json +81 -0
- package/src/executors/file-server/compat.d.ts +2 -0
- package/src/executors/file-server/compat.js +6 -0
- package/src/executors/file-server/compat.js.map +1 -0
- package/src/executors/file-server/file-server.impl.d.ts +8 -0
- package/src/executors/file-server/file-server.impl.js +181 -0
- package/src/executors/file-server/file-server.impl.js.map +1 -0
- package/src/executors/file-server/schema.d.ts +17 -0
- package/src/executors/file-server/schema.json +84 -0
- package/src/executors/rollup/compat.d.ts +2 -0
- package/src/executors/rollup/compat.js +6 -0
- package/src/executors/rollup/compat.js.map +1 -0
- package/src/executors/rollup/rollup.impl.d.ts +8 -0
- package/src/executors/rollup/rollup.impl.js +19 -0
- package/src/executors/rollup/rollup.impl.js.map +1 -0
- package/src/executors/rollup/schema.d.ts +29 -0
- package/src/executors/rollup/schema.json +153 -0
- package/src/executors/webpack/compat.d.ts +2 -0
- package/src/executors/webpack/compat.js +6 -0
- package/src/executors/webpack/compat.js.map +1 -0
- package/src/executors/webpack/schema.json +374 -0
- package/src/executors/webpack/webpack.impl.d.ts +7 -0
- package/src/executors/webpack/webpack.impl.js +19 -0
- package/src/executors/webpack/webpack.impl.js.map +1 -0
- package/src/generators/application/application.d.ts +5 -0
- package/src/generators/application/application.js +221 -0
- package/src/generators/application/application.js.map +1 -0
- package/src/generators/application/files/app-vite/.babelrc__tmpl__ +5 -0
- package/src/generators/application/files/app-vite/index.html__tmpl__ +16 -0
- package/src/generators/application/files/app-vite/public/favicon.ico +0 -0
- package/src/generators/application/files/app-vite/src/app/app.element.__style__ +416 -0
- package/src/generators/application/files/app-vite/src/app/app.element.spec.ts__tmpl__ +21 -0
- package/src/generators/application/files/app-vite/src/app/app.element.ts__tmpl__ +375 -0
- package/src/generators/application/files/app-vite/src/assets/.gitkeep +0 -0
- package/src/generators/application/files/app-vite/src/main.ts__tmpl__ +1 -0
- package/src/generators/application/files/app-vite/src/styles.__style__ +1 -0
- package/src/generators/application/files/app-vite/tsconfig.app.json +9 -0
- package/src/generators/application/files/app-vite/tsconfig.json__tmpl__ +27 -0
- package/src/generators/application/files/app-webpack/.babelrc__tmpl__ +5 -0
- package/src/generators/application/files/app-webpack/src/app/app.element.__style__ +416 -0
- package/src/generators/application/files/app-webpack/src/app/app.element.spec.ts__tmpl__ +21 -0
- package/src/generators/application/files/app-webpack/src/app/app.element.ts__tmpl__ +375 -0
- package/src/generators/application/files/app-webpack/src/assets/.gitkeep +0 -0
- package/src/generators/application/files/app-webpack/src/environments/environment.prod.ts__tmpl__ +3 -0
- package/src/generators/application/files/app-webpack/src/environments/environment.ts__tmpl__ +6 -0
- package/src/generators/application/files/app-webpack/src/favicon.ico +0 -0
- package/src/generators/application/files/app-webpack/src/index.html +14 -0
- package/src/generators/application/files/app-webpack/src/main.ts__tmpl__ +1 -0
- package/src/generators/application/files/app-webpack/src/styles.__style__ +1 -0
- package/src/generators/application/files/app-webpack/tsconfig.app.json +9 -0
- package/src/generators/application/files/app-webpack/tsconfig.json +10 -0
- package/src/generators/application/files/app-webpack/webpack.config.js__tmpl__ +8 -0
- package/src/generators/application/schema.d.ts +18 -0
- package/src/generators/application/schema.json +107 -0
- package/src/generators/init/init.d.ts +5 -0
- package/src/generators/init/init.js +57 -0
- package/src/generators/init/init.js.map +1 -0
- package/src/generators/init/schema.d.ts +8 -0
- package/src/generators/init/schema.json +45 -0
- package/src/generators/static-serve/schema.json +24 -0
- package/src/generators/static-serve/static-serve-configuration.d.ts +9 -0
- package/src/generators/static-serve/static-serve-configuration.js +72 -0
- package/src/generators/static-serve/static-serve-configuration.js.map +1 -0
- package/src/migrations/update-13-0-0/remove-deprecated-options-13-0-0.d.ts +2 -0
- package/src/migrations/update-13-0-0/remove-deprecated-options-13-0-0.js +34 -0
- package/src/migrations/update-13-0-0/remove-deprecated-options-13-0-0.js.map +1 -0
- package/src/migrations/update-13-0-0/remove-node-sass-13-0-0.d.ts +6 -0
- package/src/migrations/update-13-0-0/remove-node-sass-13-0-0.js +25 -0
- package/src/migrations/update-13-0-0/remove-node-sass-13-0-0.js.map +1 -0
- package/src/migrations/update-13-0-0/remove-webpack-5-packages-13-0-0.d.ts +2 -0
- package/src/migrations/update-13-0-0/remove-webpack-5-packages-13-0-0.js +33 -0
- package/src/migrations/update-13-0-0/remove-webpack-5-packages-13-0-0.js.map +1 -0
- package/src/migrations/update-13-3-0/rename-build-to-webpack.d.ts +2 -0
- package/src/migrations/update-13-3-0/rename-build-to-webpack.js +19 -0
- package/src/migrations/update-13-3-0/rename-build-to-webpack.js.map +1 -0
- package/src/migrations/update-13-3-0/rename-package-to-rollup.d.ts +2 -0
- package/src/migrations/update-13-3-0/rename-package-to-rollup.js +19 -0
- package/src/migrations/update-13-3-0/rename-package-to-rollup.js.map +1 -0
- package/src/migrations/update-13-8-0/add-postcss-config-option.d.ts +2 -0
- package/src/migrations/update-13-8-0/add-postcss-config-option.js +26 -0
- package/src/migrations/update-13-8-0/add-postcss-config-option.js.map +1 -0
- package/src/migrations/update-14-1-7/rollup-format-backwards-compatibility.d.ts +2 -0
- package/src/migrations/update-14-1-7/rollup-format-backwards-compatibility.js +23 -0
- package/src/migrations/update-14-1-7/rollup-format-backwards-compatibility.js.map +1 -0
- package/src/migrations/update-14-7-6/update-webpack-executor.d.ts +2 -0
- package/src/migrations/update-14-7-6/update-webpack-executor.js +27 -0
- package/src/migrations/update-14-7-6/update-webpack-executor.js.map +1 -0
- package/src/migrations/update-15-0-0/add-babel-inputs.d.ts +2 -0
- package/src/migrations/update-15-0-0/add-babel-inputs.js +13 -0
- package/src/migrations/update-15-0-0/add-babel-inputs.js.map +1 -0
- package/src/migrations/update-15-0-0/update-rollup-executor.d.ts +2 -0
- package/src/migrations/update-15-0-0/update-rollup-executor.js +38 -0
- package/src/migrations/update-15-0-0/update-rollup-executor.js.map +1 -0
- package/src/migrations/update-15-5-4/update-babel-preset.d.ts +2 -0
- package/src/migrations/update-15-5-4/update-babel-preset.js +37 -0
- package/src/migrations/update-15-5-4/update-babel-preset.js.map +1 -0
- package/src/migrations/update-15-9-1/add-dropped-dependencies.d.ts +2 -0
- package/src/migrations/update-15-9-1/add-dropped-dependencies.js +40 -0
- package/src/migrations/update-15-9-1/add-dropped-dependencies.js.map +1 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
- package/src/plugins/webpack-nx-build-coordination-plugin.d.ts +1 -0
- package/src/plugins/webpack-nx-build-coordination-plugin.js +6 -0
- package/src/plugins/webpack-nx-build-coordination-plugin.js.map +1 -0
- package/src/utils/fs.d.ts +1 -0
- package/src/utils/fs.js +5 -0
- package/src/utils/fs.js.map +1 -0
- package/src/utils/normalize.d.ts +1 -0
- package/src/utils/normalize.js +5 -0
- package/src/utils/normalize.js.map +1 -0
- package/src/utils/versions.d.ts +4 -0
- package/src/utils/versions.js +8 -0
- package/src/utils/versions.js.map +1 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const child_process_1 = require("child_process");
|
|
5
|
+
const chalk = require("chalk");
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
const ignore_1 = require("ignore");
|
|
8
|
+
const fs_1 = require("fs");
|
|
9
|
+
const chokidar_1 = require("chokidar");
|
|
10
|
+
const os_1 = require("os");
|
|
11
|
+
const path_1 = require("path");
|
|
12
|
+
const package_json_1 = require("nx/src/utils/package-json");
|
|
13
|
+
// platform specific command name
|
|
14
|
+
const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
|
|
15
|
+
function getHttpServerArgs(options) {
|
|
16
|
+
const args = ['-c-1'];
|
|
17
|
+
if (options.cors) {
|
|
18
|
+
args.push(`--cors`);
|
|
19
|
+
}
|
|
20
|
+
if (options.port) {
|
|
21
|
+
args.push(`-p=${options.port}`);
|
|
22
|
+
}
|
|
23
|
+
if (options.host) {
|
|
24
|
+
args.push(`-a=${options.host}`);
|
|
25
|
+
}
|
|
26
|
+
if (options.ssl) {
|
|
27
|
+
args.push(`-S`);
|
|
28
|
+
}
|
|
29
|
+
if (options.sslCert) {
|
|
30
|
+
args.push(`-C=${options.sslCert}`);
|
|
31
|
+
}
|
|
32
|
+
if (options.sslKey) {
|
|
33
|
+
args.push(`-K=${options.sslKey}`);
|
|
34
|
+
}
|
|
35
|
+
if (options.proxyUrl) {
|
|
36
|
+
args.push(`-P=${options.proxyUrl}`);
|
|
37
|
+
}
|
|
38
|
+
if (options.proxyOptions) {
|
|
39
|
+
Object.keys(options.proxyOptions).forEach((key) => {
|
|
40
|
+
args.push(`--proxy-options.${key}=${options.proxyOptions[key]}`);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return args;
|
|
44
|
+
}
|
|
45
|
+
function getBuildTargetCommand(options) {
|
|
46
|
+
const cmd = ['nx', 'run', options.buildTarget];
|
|
47
|
+
if (options.parallel) {
|
|
48
|
+
cmd.push(`--parallel`);
|
|
49
|
+
}
|
|
50
|
+
if (options.maxParallel) {
|
|
51
|
+
cmd.push(`--maxParallel=${options.maxParallel}`);
|
|
52
|
+
}
|
|
53
|
+
return cmd;
|
|
54
|
+
}
|
|
55
|
+
function getBuildTargetOutputPath(options, context) {
|
|
56
|
+
if (options.staticFilePath) {
|
|
57
|
+
return options.staticFilePath;
|
|
58
|
+
}
|
|
59
|
+
let buildOptions;
|
|
60
|
+
try {
|
|
61
|
+
const target = (0, devkit_1.parseTargetString)(options.buildTarget, context.projectGraph);
|
|
62
|
+
buildOptions = (0, devkit_1.readTargetOptions)(target, context);
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
throw new Error(`Invalid buildTarget: ${options.buildTarget}`);
|
|
66
|
+
}
|
|
67
|
+
// TODO: vsavkin we should also check outputs
|
|
68
|
+
const outputPath = buildOptions.outputPath;
|
|
69
|
+
if (!outputPath) {
|
|
70
|
+
throw new Error(`Unable to get the outputPath from buildTarget ${options.buildTarget}. Make sure ${options.buildTarget} has an outputPath property or manually provide an staticFilePath property`);
|
|
71
|
+
}
|
|
72
|
+
return outputPath;
|
|
73
|
+
}
|
|
74
|
+
function getIgnoredGlobs(root) {
|
|
75
|
+
const ig = (0, ignore_1.default)();
|
|
76
|
+
try {
|
|
77
|
+
ig.add((0, fs_1.readFileSync)(`${root}/.gitignore`, 'utf-8'));
|
|
78
|
+
}
|
|
79
|
+
catch (_a) { }
|
|
80
|
+
try {
|
|
81
|
+
ig.add((0, fs_1.readFileSync)(`${root}/.nxignore`, 'utf-8'));
|
|
82
|
+
}
|
|
83
|
+
catch (_b) { }
|
|
84
|
+
return ig;
|
|
85
|
+
}
|
|
86
|
+
function createFileWatcher(root, changeHandler) {
|
|
87
|
+
const ignoredGlobs = getIgnoredGlobs(root);
|
|
88
|
+
const layout = (0, devkit_1.workspaceLayout)();
|
|
89
|
+
const watcher = (0, chokidar_1.watch)([
|
|
90
|
+
(0, devkit_1.joinPathFragments)(layout.appsDir, '**'),
|
|
91
|
+
(0, devkit_1.joinPathFragments)(layout.libsDir, '**'),
|
|
92
|
+
], {
|
|
93
|
+
cwd: root,
|
|
94
|
+
ignoreInitial: true,
|
|
95
|
+
});
|
|
96
|
+
watcher.on('all', (_event, path) => {
|
|
97
|
+
if (ignoredGlobs.ignores(path))
|
|
98
|
+
return;
|
|
99
|
+
changeHandler();
|
|
100
|
+
});
|
|
101
|
+
return () => watcher.close();
|
|
102
|
+
}
|
|
103
|
+
function fileServerExecutor(options, context) {
|
|
104
|
+
return tslib_1.__asyncGenerator(this, arguments, function* fileServerExecutor_1() {
|
|
105
|
+
let running = false;
|
|
106
|
+
const run = () => {
|
|
107
|
+
if (!running) {
|
|
108
|
+
running = true;
|
|
109
|
+
try {
|
|
110
|
+
const args = getBuildTargetCommand(options);
|
|
111
|
+
(0, child_process_1.execFileSync)(pmCmd, args, {
|
|
112
|
+
stdio: [0, 1, 2],
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
catch (_a) {
|
|
116
|
+
throw new Error(`Build target failed: ${chalk.bold(options.buildTarget)}`);
|
|
117
|
+
}
|
|
118
|
+
finally {
|
|
119
|
+
running = false;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
let disposeWatch;
|
|
124
|
+
if (options.watch) {
|
|
125
|
+
disposeWatch = createFileWatcher(context.root, run);
|
|
126
|
+
}
|
|
127
|
+
// perform initial run
|
|
128
|
+
run();
|
|
129
|
+
const outputPath = getBuildTargetOutputPath(options, context);
|
|
130
|
+
if (options.spa) {
|
|
131
|
+
const src = (0, path_1.join)(outputPath, 'index.html');
|
|
132
|
+
const dst = (0, path_1.join)(outputPath, '404.html');
|
|
133
|
+
// See: https://github.com/http-party/http-server#magic-files
|
|
134
|
+
(0, fs_1.copyFileSync)(src, dst);
|
|
135
|
+
}
|
|
136
|
+
const args = getHttpServerArgs(options);
|
|
137
|
+
const { path: pathToHttpServerPkgJson, packageJson } = (0, package_json_1.readModulePackageJson)('http-server', module.paths);
|
|
138
|
+
const pathToHttpServerBin = packageJson.bin['http-server'];
|
|
139
|
+
const pathToHttpServer = (0, path_1.resolve)(pathToHttpServerPkgJson.replace('package.json', ''), pathToHttpServerBin);
|
|
140
|
+
const serve = (0, child_process_1.fork)(pathToHttpServer, [outputPath, ...args], {
|
|
141
|
+
stdio: 'pipe',
|
|
142
|
+
cwd: context.root,
|
|
143
|
+
env: Object.assign({ FORCE_COLOR: 'true' }, process.env),
|
|
144
|
+
});
|
|
145
|
+
const processExitListener = () => {
|
|
146
|
+
serve.kill();
|
|
147
|
+
if (disposeWatch) {
|
|
148
|
+
disposeWatch();
|
|
149
|
+
}
|
|
150
|
+
if (options.spa) {
|
|
151
|
+
(0, fs_1.unlinkSync)((0, path_1.join)(outputPath, '404.html'));
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
process.on('exit', processExitListener);
|
|
155
|
+
process.on('SIGTERM', processExitListener);
|
|
156
|
+
serve.stdout.on('data', (chunk) => {
|
|
157
|
+
if (chunk.toString().indexOf('GET') === -1) {
|
|
158
|
+
process.stdout.write(chunk);
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
serve.stderr.on('data', (chunk) => {
|
|
162
|
+
process.stderr.write(chunk);
|
|
163
|
+
});
|
|
164
|
+
yield yield tslib_1.__await({
|
|
165
|
+
success: true,
|
|
166
|
+
baseUrl: `${options.ssl ? 'https' : 'http'}://${options.host}:${options.port}`,
|
|
167
|
+
});
|
|
168
|
+
return yield tslib_1.__await(new Promise((res) => {
|
|
169
|
+
serve.on('exit', (code) => {
|
|
170
|
+
if (code == 0) {
|
|
171
|
+
res({ success: true });
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
res({ success: false });
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}));
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
exports.default = fileServerExecutor;
|
|
181
|
+
//# sourceMappingURL=file-server.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-server.impl.js","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/file-server.impl.ts"],"names":[],"mappings":";;;AAAA,iDAAmD;AACnD,+BAA+B;AAC/B,uCAMoB;AACpB,mCAA4B;AAC5B,2BAA4D;AAE5D,uCAAiC;AACjC,2BAA8B;AAC9B,+BAAqC;AACrC,4DAAkE;AAElE,iCAAiC;AACjC,MAAM,KAAK,GAAG,IAAA,aAAQ,GAAE,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;AAEzD,SAAS,iBAAiB,CAAC,OAAe;IACxC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAEtB,IAAI,OAAO,CAAC,IAAI,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACrB;IAED,IAAI,OAAO,CAAC,IAAI,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;KACjC;IACD,IAAI,OAAO,CAAC,IAAI,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;KACjC;IACD,IAAI,OAAO,CAAC,GAAG,EAAE;QACf,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACjB;IACD,IAAI,OAAO,CAAC,OAAO,EAAE;QACnB,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;KACpC;IACD,IAAI,OAAO,CAAC,MAAM,EAAE;QAClB,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;KACnC;IACD,IAAI,OAAO,CAAC,QAAQ,EAAE;QACpB,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;KACrC;IAED,IAAI,OAA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GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,MAAM,OAAO,CAAC,IAAI,IAC1D,OAAO,CAAC,IACV,EAAE;SACH,CAAA,CAAC;QAEF,6BAAO,IAAI,OAAO,CAAuB,CAAC,GAAG,EAAE,EAAE;YAC/C,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;gBACxB,IAAI,IAAI,IAAI,CAAC,EAAE;oBACb,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;iBACxB;qBAAM;oBACL,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;iBACzB;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,EAAC;IACL,CAAC;CAAA;AApGD,qCAoGC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Schema {
|
|
2
|
+
host: string;
|
|
3
|
+
port: number;
|
|
4
|
+
ssl: boolean;
|
|
5
|
+
sslKey?: string;
|
|
6
|
+
sslCert?: string;
|
|
7
|
+
proxyUrl?: string;
|
|
8
|
+
buildTarget: string;
|
|
9
|
+
parallel: boolean;
|
|
10
|
+
maxParallel?: number;
|
|
11
|
+
withDeps: boolean;
|
|
12
|
+
proxyOptions?: object;
|
|
13
|
+
watch?: boolean;
|
|
14
|
+
spa: boolean;
|
|
15
|
+
staticFilePath?: string;
|
|
16
|
+
cors?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "File Server",
|
|
5
|
+
"description": "Serve a web application from a folder.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"cli": "nx",
|
|
8
|
+
"properties": {
|
|
9
|
+
"buildTarget": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Target which builds the application."
|
|
12
|
+
},
|
|
13
|
+
"parallel": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "Build the target in parallel.",
|
|
16
|
+
"default": true
|
|
17
|
+
},
|
|
18
|
+
"maxParallel": {
|
|
19
|
+
"type": "number",
|
|
20
|
+
"description": "Max number of parallel jobs."
|
|
21
|
+
},
|
|
22
|
+
"port": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"description": "Port to listen on.",
|
|
25
|
+
"default": 4200
|
|
26
|
+
},
|
|
27
|
+
"host": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Host to listen on.",
|
|
30
|
+
"default": "localhost"
|
|
31
|
+
},
|
|
32
|
+
"ssl": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Serve using `HTTPS`.",
|
|
35
|
+
"default": false
|
|
36
|
+
},
|
|
37
|
+
"sslKey": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "SSL key to use for serving `HTTPS`."
|
|
40
|
+
},
|
|
41
|
+
"sslCert": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "SSL certificate to use for serving `HTTPS`."
|
|
44
|
+
},
|
|
45
|
+
"proxyUrl": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "URL to proxy unhandled requests to."
|
|
48
|
+
},
|
|
49
|
+
"proxyOptions": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"description": "Options for the proxy used by `http-server`.",
|
|
52
|
+
"default": {},
|
|
53
|
+
"properties": {
|
|
54
|
+
"secure": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"default": false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"additionalProperties": true
|
|
60
|
+
},
|
|
61
|
+
"watch": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"description": "Watch for file changes.",
|
|
64
|
+
"default": true
|
|
65
|
+
},
|
|
66
|
+
"spa": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"description": "Redirect 404 errors to index.html (useful for SPA's)",
|
|
69
|
+
"default": false,
|
|
70
|
+
"x-priority": "important"
|
|
71
|
+
},
|
|
72
|
+
"staticFilePath": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "Path where the build artifacts are located. If not provided then it will be infered from the buildTarget executor options as outputPath"
|
|
75
|
+
},
|
|
76
|
+
"cors": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"description": "Enable CORS",
|
|
79
|
+
"default": true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": ["buildTarget"]
|
|
84
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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('"@nrwl/web:rollup" executor is deprecated. Use "@nrwl/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
|
|
@@ -0,0 +1 @@
|
|
|
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,oGAAoG,CACrG,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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|