@nx/node 18.0.0-beta.0 → 18.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/migrations.json +9 -0
- package/package.json +6 -6
- package/src/generators/application/application.d.ts +2 -2
- package/src/generators/application/application.js +17 -2
- package/src/generators/application/schema.json +1 -1
- package/src/generators/e2e-project/e2e-project.js +4 -0
- package/src/generators/e2e-project/schema.json +1 -1
- package/src/generators/init/schema.json +1 -1
- package/src/generators/library/schema.json +1 -1
- package/src/generators/setup-docker/schema.json +1 -1
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +1 -1
package/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/node",
|
|
3
|
-
"version": "18.0.0-beta.
|
|
3
|
+
"version": "18.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"tslib": "^2.3.0",
|
|
34
|
-
"@nx/devkit": "18.0.0-beta.
|
|
35
|
-
"@nx/jest": "18.0.0-beta.
|
|
36
|
-
"@nx/js": "18.0.0-beta.
|
|
37
|
-
"@nx/eslint": "18.0.0-beta.
|
|
38
|
-
"@nrwl/node": "18.0.0-beta.
|
|
34
|
+
"@nx/devkit": "18.0.0-beta.1",
|
|
35
|
+
"@nx/jest": "18.0.0-beta.1",
|
|
36
|
+
"@nx/js": "18.0.0-beta.1",
|
|
37
|
+
"@nx/eslint": "18.0.0-beta.1",
|
|
38
|
+
"@nrwl/node": "18.0.0-beta.1"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
@@ -5,6 +5,6 @@ export interface NormalizedSchema extends Schema {
|
|
|
5
5
|
parsedTags: string[];
|
|
6
6
|
}
|
|
7
7
|
export declare function addLintingToApplication(tree: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
|
|
8
|
-
export declare function applicationGenerator(tree: Tree, schema: Schema): Promise<
|
|
9
|
-
export declare function applicationGeneratorInternal(tree: Tree, schema: Schema): Promise<
|
|
8
|
+
export declare function applicationGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
9
|
+
export declare function applicationGeneratorInternal(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
10
10
|
export default applicationGenerator;
|
|
@@ -14,6 +14,7 @@ const init_1 = require("../init/init");
|
|
|
14
14
|
const setup_docker_1 = require("../setup-docker/setup-docker");
|
|
15
15
|
const has_webpack_plugin_1 = require("../../utils/has-webpack-plugin");
|
|
16
16
|
const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
|
|
17
|
+
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
17
18
|
function getWebpackBuildConfig(project, options) {
|
|
18
19
|
return {
|
|
19
20
|
executor: `@nx/webpack:webpack`,
|
|
@@ -271,7 +272,16 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
271
272
|
const tasks = [];
|
|
272
273
|
if (options.framework === 'nest') {
|
|
273
274
|
const { applicationGenerator } = (0, devkit_1.ensurePackage)('@nx/nest', versions_2.nxVersion);
|
|
274
|
-
|
|
275
|
+
const nestTasks = await applicationGenerator(tree, {
|
|
276
|
+
...options,
|
|
277
|
+
skipFormat: true,
|
|
278
|
+
});
|
|
279
|
+
return (0, devkit_1.runTasksInSerial)(...[
|
|
280
|
+
nestTasks,
|
|
281
|
+
() => {
|
|
282
|
+
(0, log_show_project_command_1.logShowProjectCommand)(options.name);
|
|
283
|
+
},
|
|
284
|
+
]);
|
|
275
285
|
}
|
|
276
286
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
|
277
287
|
...schema,
|
|
@@ -295,7 +305,9 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
295
305
|
tasks.push(webpackInitTask);
|
|
296
306
|
if (!options.skipPackageJson) {
|
|
297
307
|
const { ensureDependencies } = await Promise.resolve().then(() => require('@nx/webpack/src/utils/ensure-dependencies'));
|
|
298
|
-
tasks.push(ensureDependencies(tree, {
|
|
308
|
+
tasks.push(ensureDependencies(tree, {
|
|
309
|
+
uiFramework: options.isNest ? 'none' : 'react',
|
|
310
|
+
}));
|
|
299
311
|
}
|
|
300
312
|
}
|
|
301
313
|
addAppFiles(tree, options);
|
|
@@ -353,6 +365,9 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
|
353
365
|
if (!options.skipFormat) {
|
|
354
366
|
await (0, devkit_1.formatFiles)(tree);
|
|
355
367
|
}
|
|
368
|
+
tasks.push(() => {
|
|
369
|
+
(0, log_show_project_command_1.logShowProjectCommand)(options.name);
|
|
370
|
+
});
|
|
356
371
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
357
372
|
}
|
|
358
373
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
@@ -8,6 +8,7 @@ const global_eslint_config_1 = require("@nx/eslint/src/generators/init/global-es
|
|
|
8
8
|
const path = require("path");
|
|
9
9
|
const versions_1 = require("../../utils/versions");
|
|
10
10
|
const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
11
|
+
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
11
12
|
async function e2eProjectGenerator(host, options) {
|
|
12
13
|
return await e2eProjectGeneratorInternal(host, {
|
|
13
14
|
projectNameAndRootFormat: 'derived',
|
|
@@ -87,6 +88,9 @@ async function e2eProjectGeneratorInternal(host, _options) {
|
|
|
87
88
|
if (!options.skipFormat) {
|
|
88
89
|
await (0, devkit_1.formatFiles)(host);
|
|
89
90
|
}
|
|
91
|
+
tasks.push(() => {
|
|
92
|
+
(0, log_show_project_command_1.logShowProjectCommand)(options.e2eProjectName);
|
|
93
|
+
});
|
|
90
94
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
91
95
|
}
|
|
92
96
|
exports.e2eProjectGeneratorInternal = e2eProjectGeneratorInternal;
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ export declare const fastifyVersion = "~4.13.0";
|
|
|
9
9
|
export declare const fastifyAutoloadVersion = "~5.7.1";
|
|
10
10
|
export declare const fastifySensibleVersion = "~5.2.0";
|
|
11
11
|
export declare const fastifyPluginVersion = "~4.5.0";
|
|
12
|
-
export declare const axiosVersion = "^1.
|
|
12
|
+
export declare const axiosVersion = "^1.6.0";
|
package/src/utils/versions.js
CHANGED