@nx/web 0.0.0-pr-28229-afe192c → 0.0.0-pr-28453-54fa63c
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/migrations.json +1 -14
- package/package.json +3 -3
- package/src/executors/file-server/file-server.impl.js +0 -1
- package/src/generators/application/application.js +2 -0
- package/src/generators/init/init.js +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +0 -2
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +0 -9
- package/src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors.d.ts +0 -2
- package/src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors.js +0 -34
package/migrations.json
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generators": {
|
|
3
|
-
"update-16-0-0-add-nx-packages": {
|
|
4
|
-
"cli": "nx",
|
|
5
|
-
"version": "16.0.0-beta.1",
|
|
6
|
-
"description": "Replace @nrwl/web with @nx/web",
|
|
7
|
-
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
|
8
|
-
},
|
|
9
|
-
"update-16-0-0-update-executors": {
|
|
10
|
-
"cli": "nx",
|
|
11
|
-
"version": "16.0.0-beta.4",
|
|
12
|
-
"description": "Replace @nrwl/web executors with @nx/webpack and @nx/rollup",
|
|
13
|
-
"implementation": "./src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
2
|
+
"generators": {},
|
|
16
3
|
"packageJsonUpdates": {
|
|
17
4
|
"17.3.0": {
|
|
18
5
|
"version": "17.3.0-beta.3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/web",
|
|
3
|
-
"version": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-28453-54fa63c",
|
|
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": "0.0.0-pr-
|
|
39
|
-
"@nx/js": "0.0.0-pr-
|
|
38
|
+
"@nx/devkit": "0.0.0-pr-28453-54fa63c",
|
|
39
|
+
"@nx/js": "0.0.0-pr-28453-54fa63c"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
@@ -15,6 +15,7 @@ const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaul
|
|
|
15
15
|
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
16
16
|
const static_serve_configuration_1 = require("../static-serve/static-serve-configuration");
|
|
17
17
|
const find_plugin_for_config_file_1 = require("@nx/devkit/src/utils/find-plugin-for-config-file");
|
|
18
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
18
19
|
function createApplicationFiles(tree, options) {
|
|
19
20
|
if (options.bundler === 'vite') {
|
|
20
21
|
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, './files/app-vite'), options.appProjectRoot, {
|
|
@@ -160,6 +161,7 @@ async function applicationGenerator(host, schema) {
|
|
|
160
161
|
});
|
|
161
162
|
}
|
|
162
163
|
async function applicationGeneratorInternal(host, schema) {
|
|
164
|
+
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(host, 'web', 'application');
|
|
163
165
|
const options = await normalizeOptions(host, schema);
|
|
164
166
|
const tasks = [];
|
|
165
167
|
const jsInitTask = await (0, js_1.initGenerator)(host, {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.webInitGenerator = webInitGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
5
6
|
const versions_1 = require("../../utils/versions");
|
|
6
7
|
function updateDependencies(tree, schema) {
|
|
7
8
|
const tasks = [];
|
|
@@ -10,6 +11,7 @@ function updateDependencies(tree, schema) {
|
|
|
10
11
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
11
12
|
}
|
|
12
13
|
async function webInitGenerator(tree, schema) {
|
|
14
|
+
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'web', 'init');
|
|
13
15
|
let installTask = () => { };
|
|
14
16
|
if (!schema.skipPackageJson) {
|
|
15
17
|
installTask = updateDependencies(tree, schema);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = replacePackage;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const replace_package_1 = require("@nx/devkit/src/utils/replace-package");
|
|
6
|
-
async function replacePackage(tree) {
|
|
7
|
-
await (0, replace_package_1.replaceNrwlPackageWithNxPackage)(tree, '@nrwl/web', '@nx/web');
|
|
8
|
-
await (0, devkit_1.formatFiles)(tree);
|
|
9
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = update;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const versions_1 = require("../../utils/versions");
|
|
6
|
-
async function update(host) {
|
|
7
|
-
const projects = (0, devkit_1.getProjects)(host);
|
|
8
|
-
const deps = {};
|
|
9
|
-
for (const [name, config] of projects.entries()) {
|
|
10
|
-
let updated = false;
|
|
11
|
-
// webpack
|
|
12
|
-
if (config?.targets?.build?.executor === '@nrwl/web:webpack') {
|
|
13
|
-
config.targets.build.executor = '@nx/webpack:webpack';
|
|
14
|
-
deps['@nx/webpack'] = versions_1.nxVersion;
|
|
15
|
-
updated = true;
|
|
16
|
-
}
|
|
17
|
-
if (config?.targets?.serve?.executor === '@nrwl/web:dev-server') {
|
|
18
|
-
config.targets.serve.executor = '@nx/webpack:dev-server';
|
|
19
|
-
deps['@nx/webpack'] = versions_1.nxVersion;
|
|
20
|
-
updated = true;
|
|
21
|
-
}
|
|
22
|
-
// rollup
|
|
23
|
-
if (config?.targets?.build?.executor === '@nrwl/web:rollup') {
|
|
24
|
-
config.targets.build.executor = '@nx/rollup:rollup';
|
|
25
|
-
deps['@nx/rollup'] = versions_1.nxVersion;
|
|
26
|
-
updated = true;
|
|
27
|
-
}
|
|
28
|
-
if (updated) {
|
|
29
|
-
(0, devkit_1.updateProjectConfiguration)(host, name, config);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
await (0, devkit_1.formatFiles)(host);
|
|
33
|
-
return (0, devkit_1.addDependenciesToPackageJson)(host, {}, deps);
|
|
34
|
-
}
|