@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 CHANGED
@@ -34,6 +34,15 @@
34
34
  "alwaysAddToPackageJson": false
35
35
  }
36
36
  }
37
+ },
38
+ "17.3.1": {
39
+ "version": "17.3.1-beta.0",
40
+ "packages": {
41
+ "axios": {
42
+ "version": "^1.6.0",
43
+ "alwaysAddToPackageJson": false
44
+ }
45
+ }
37
46
  }
38
47
  }
39
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/node",
3
- "version": "18.0.0-beta.0",
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.0",
35
- "@nx/jest": "18.0.0-beta.0",
36
- "@nx/js": "18.0.0-beta.0",
37
- "@nx/eslint": "18.0.0-beta.0",
38
- "@nrwl/node": "18.0.0-beta.0"
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<any>;
9
- export declare function applicationGeneratorInternal(tree: Tree, schema: Schema): Promise<any>;
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
- return await applicationGenerator(tree, { ...options, skipFormat: true });
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, { uiFramework: 'react' }));
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;
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "cli": "nx",
4
4
  "$id": "SchematicsNxNodeApp",
5
5
  "title": "Nx Application Options Schema",
@@ -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;
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "cli": "nx",
4
4
  "$id": "SchematicsNxNodeE2eProject",
5
5
  "title": "Node E2E Project Generator",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "cli": "nx",
4
4
  "$id": "NxNodeInit",
5
5
  "title": "Init Node Plugin",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "cli": "nx",
4
4
  "$id": "NxNodeLibrary",
5
5
  "title": "Create a Node Library for Nx",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "cli": "nx",
4
4
  "$id": "SchematicsNxSetupDocker",
5
5
  "title": "Nx Node Docker Options Schema",
@@ -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.0.0";
12
+ export declare const axiosVersion = "^1.6.0";
@@ -12,4 +12,4 @@ exports.fastifyVersion = '~4.13.0';
12
12
  exports.fastifyAutoloadVersion = '~5.7.1';
13
13
  exports.fastifySensibleVersion = '~5.2.0';
14
14
  exports.fastifyPluginVersion = '~4.5.0';
15
- exports.axiosVersion = '^1.0.0';
15
+ exports.axiosVersion = '^1.6.0';