@nx/web 17.3.0-beta.5 → 17.3.0-beta.8
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": "17.3.0-beta.
|
|
3
|
+
"version": "17.3.0-beta.8",
|
|
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": "17.3.0-beta.
|
|
38
|
-
"@nx/js": "17.3.0-beta.
|
|
39
|
-
"@nrwl/web": "17.3.0-beta.
|
|
37
|
+
"@nx/devkit": "17.3.0-beta.8",
|
|
38
|
+
"@nx/js": "17.3.0-beta.8",
|
|
39
|
+
"@nrwl/web": "17.3.0-beta.8"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
@@ -10,6 +10,7 @@ const versions_2 = require("../../utils/versions");
|
|
|
10
10
|
const init_1 = require("../init/init");
|
|
11
11
|
const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
|
|
12
12
|
const has_webpack_plugin_1 = require("../../utils/has-webpack-plugin");
|
|
13
|
+
const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
|
|
13
14
|
function createApplicationFiles(tree, options) {
|
|
14
15
|
if (options.bundler === 'vite') {
|
|
15
16
|
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, './files/app-vite'), options.appProjectRoot, {
|
|
@@ -99,6 +100,7 @@ async function setupBundler(tree, options) {
|
|
|
99
100
|
}
|
|
100
101
|
else if (options.bundler === 'none') {
|
|
101
102
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
|
|
103
|
+
(0, add_build_target_defaults_1.addBuildTargetDefaults)(tree, `@nx/js:${options.compiler}`);
|
|
102
104
|
project.targets.build = {
|
|
103
105
|
executor: `@nx/js:${options.compiler}`,
|
|
104
106
|
outputs: ['{options.outputPath}'],
|
|
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.webInitGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("../../utils/versions");
|
|
6
|
-
function updateDependencies(tree) {
|
|
6
|
+
function updateDependencies(tree, schema) {
|
|
7
7
|
const tasks = [];
|
|
8
8
|
tasks.push((0, devkit_1.removeDependenciesFromPackageJson)(tree, ['@nx/web'], []));
|
|
9
|
-
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/web': versions_1.nxVersion }));
|
|
9
|
+
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/web': versions_1.nxVersion }, undefined, schema.keepExistingVersions));
|
|
10
10
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
11
11
|
}
|
|
12
12
|
async function webInitGenerator(tree, schema) {
|
|
13
13
|
let installTask = () => { };
|
|
14
14
|
if (!schema.skipPackageJson) {
|
|
15
|
-
installTask = updateDependencies(tree);
|
|
15
|
+
installTask = updateDependencies(tree, schema);
|
|
16
16
|
}
|
|
17
17
|
if (!schema.skipFormat) {
|
|
18
18
|
await (0, devkit_1.formatFiles)(tree);
|
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
"type": "boolean",
|
|
17
17
|
"default": false,
|
|
18
18
|
"x-priority": "internal"
|
|
19
|
+
},
|
|
20
|
+
"keepExistingVersions": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"x-priority": "internal",
|
|
23
|
+
"description": "Keep existing dependencies versions",
|
|
24
|
+
"default": false
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
27
|
"required": []
|