@nx/web 18.1.0-beta.0 → 18.1.0-beta.10
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/package.json +4 -4
- package/src/executors/file-server/file-server.impl.js +7 -0
- package/src/generators/application/application.js +4 -1
- package/src/generators/application/files/app-vite/src/app/app.element.ts__tmpl__ +1 -1
- package/src/generators/application/files/app-webpack/src/app/app.element.ts__tmpl__ +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/web",
|
|
3
|
-
"version": "18.1.0-beta.
|
|
3
|
+
"version": "18.1.0-beta.10",
|
|
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": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"detect-port": "^1.5.1",
|
|
35
35
|
"http-server": "^14.1.0",
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
|
-
"@nx/devkit": "18.1.0-beta.
|
|
38
|
-
"@nx/js": "18.1.0-beta.
|
|
39
|
-
"@nrwl/web": "18.1.0-beta.
|
|
37
|
+
"@nx/devkit": "18.1.0-beta.10",
|
|
38
|
+
"@nx/js": "18.1.0-beta.10",
|
|
39
|
+
"@nrwl/web": "18.1.0-beta.10"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
@@ -122,6 +122,12 @@ async function* fileServerExecutor(options, context) {
|
|
|
122
122
|
const run = () => {
|
|
123
123
|
if (!running) {
|
|
124
124
|
running = true;
|
|
125
|
+
/**
|
|
126
|
+
* Expose a variable to the build target to know if it's being run by the serve-static executor
|
|
127
|
+
* This is useful because a config might need to change if it's being run by serve-static without the user's input
|
|
128
|
+
* or if being ran by another executor (eg. E2E tests)
|
|
129
|
+
* */
|
|
130
|
+
process.env.NX_SERVE_STATIC_BUILD_RUNNING = 'true';
|
|
125
131
|
try {
|
|
126
132
|
const args = getBuildTargetCommand(options, context);
|
|
127
133
|
(0, child_process_1.execFileSync)(pmCmd, args, {
|
|
@@ -132,6 +138,7 @@ async function* fileServerExecutor(options, context) {
|
|
|
132
138
|
throw new Error(`Build target failed: ${chalk.bold(options.buildTarget)}`);
|
|
133
139
|
}
|
|
134
140
|
finally {
|
|
141
|
+
process.env.NX_SERVE_STATIC_BUILD_RUNNING = undefined;
|
|
135
142
|
running = false;
|
|
136
143
|
}
|
|
137
144
|
}
|
|
@@ -320,7 +320,10 @@ async function normalizeOptions(host, options) {
|
|
|
320
320
|
callingGenerator: '@nx/web:application',
|
|
321
321
|
});
|
|
322
322
|
options.projectNameAndRootFormat = projectNameAndRootFormat;
|
|
323
|
-
|
|
323
|
+
const nxJson = (0, devkit_1.readNxJson)(host);
|
|
324
|
+
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
325
|
+
nxJson.useInferencePlugins !== false;
|
|
326
|
+
options.addPlugin ??= addPluginDefault;
|
|
324
327
|
const e2eProjectName = `${appProjectName}-e2e`;
|
|
325
328
|
const e2eProjectRoot = `${appProjectRoot}-e2e`;
|
|
326
329
|
const npmScope = (0, get_npm_scope_1.getNpmScope)(host);
|
|
@@ -289,7 +289,7 @@ export class AppElement extends HTMLElement {
|
|
|
289
289
|
You can activate distributed tasks executions and caching by
|
|
290
290
|
running:
|
|
291
291
|
</p>
|
|
292
|
-
<pre>nx connect
|
|
292
|
+
<pre>nx connect</pre>
|
|
293
293
|
<a href="https://nx.app/?utm_source=nx-project" target="_blank" rel="noreferrer"> What is Nx Cloud? </a>
|
|
294
294
|
</div>
|
|
295
295
|
<a id="nx-repo" class="button-pill rounded shadow" href="https://github.com/nrwl/nx?utm_source=nx-project" target="_blank" rel="noreferrer">
|
|
@@ -289,7 +289,7 @@ export class AppElement extends HTMLElement {
|
|
|
289
289
|
You can activate distributed tasks executions and caching by
|
|
290
290
|
running:
|
|
291
291
|
</p>
|
|
292
|
-
<pre>nx connect
|
|
292
|
+
<pre>nx connect</pre>
|
|
293
293
|
<a href="https://nx.app/?utm_source=nx-project" target="_blank" rel="noreferrer"> What is Nx Cloud? </a>
|
|
294
294
|
</div>
|
|
295
295
|
<a id="nx-repo" class="button-pill rounded shadow" href="https://github.com/nrwl/nx?utm_source=nx-project" target="_blank" rel="noreferrer">
|