@nx/web 20.4.0-beta.0 → 20.4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/web",
|
|
3
|
-
"version": "20.4.0-beta.
|
|
3
|
+
"version": "20.4.0-beta.2",
|
|
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, Playwright, 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": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"http-server": "^14.1.0",
|
|
36
36
|
"picocolors": "^1.1.0",
|
|
37
37
|
"tslib": "^2.3.0",
|
|
38
|
-
"@nx/devkit": "20.4.0-beta.
|
|
39
|
-
"@nx/js": "20.4.0-beta.
|
|
38
|
+
"@nx/devkit": "20.4.0-beta.2",
|
|
39
|
+
"@nx/js": "20.4.0-beta.2"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
@@ -155,12 +155,11 @@ async function addProject(tree, options) {
|
|
|
155
155
|
name: (0, get_import_path_1.getImportPath)(tree, options.name),
|
|
156
156
|
version: '0.0.1',
|
|
157
157
|
private: true,
|
|
158
|
-
nx:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
},
|
|
158
|
+
nx: options.parsedTags?.length
|
|
159
|
+
? {
|
|
160
|
+
tags: options.parsedTags,
|
|
161
|
+
}
|
|
162
|
+
: undefined,
|
|
164
163
|
});
|
|
165
164
|
}
|
|
166
165
|
else {
|
|
@@ -193,10 +192,14 @@ async function applicationGenerator(host, schema) {
|
|
|
193
192
|
}
|
|
194
193
|
async function applicationGeneratorInternal(host, schema) {
|
|
195
194
|
const options = await normalizeOptions(host, schema);
|
|
195
|
+
if (options.isUsingTsSolutionConfig) {
|
|
196
|
+
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
|
|
197
|
+
}
|
|
196
198
|
const tasks = [];
|
|
197
199
|
const jsInitTask = await (0, js_1.initGenerator)(host, {
|
|
198
200
|
js: false,
|
|
199
201
|
skipFormat: true,
|
|
202
|
+
platform: 'web',
|
|
200
203
|
});
|
|
201
204
|
tasks.push(jsInitTask);
|
|
202
205
|
const webTask = await (0, init_1.webInitGenerator)(host, {
|
|
@@ -447,9 +450,6 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
447
450
|
}, options.linter === 'eslint'
|
|
448
451
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
449
452
|
: undefined);
|
|
450
|
-
if (options.isUsingTsSolutionConfig) {
|
|
451
|
-
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
|
|
452
|
-
}
|
|
453
453
|
if (!options.skipFormat) {
|
|
454
454
|
await (0, devkit_1.formatFiles)(host);
|
|
455
455
|
}
|
|
@@ -486,7 +486,9 @@ async function normalizeOptions(host, options) {
|
|
|
486
486
|
name: (0, devkit_1.names)(options.name).fileName,
|
|
487
487
|
compiler: options.compiler ?? 'babel',
|
|
488
488
|
bundler: options.bundler ?? 'webpack',
|
|
489
|
-
projectName:
|
|
489
|
+
projectName: isUsingTsSolutionConfig
|
|
490
|
+
? (0, get_import_path_1.getImportPath)(host, appProjectName)
|
|
491
|
+
: appProjectName,
|
|
490
492
|
strict: options.strict ?? true,
|
|
491
493
|
appProjectRoot,
|
|
492
494
|
e2eProjectRoot,
|