@nx/nuxt 18.3.0-beta.1 → 18.3.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/migrations.json CHANGED
@@ -9,6 +9,15 @@
9
9
  "alwaysAddToPackageJson": false
10
10
  }
11
11
  }
12
+ },
13
+ "18.3.0": {
14
+ "version": "18.3.0-beta.2",
15
+ "packages": {
16
+ "@nuxt/eslint-config": {
17
+ "version": "~0.3.6",
18
+ "alwaysAddToPackageJson": false
19
+ }
20
+ }
12
21
  }
13
22
  }
14
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/nuxt",
3
- "version": "18.3.0-beta.1",
3
+ "version": "18.3.0-beta.2",
4
4
  "private": false,
5
5
  "description": "The Nuxt plugin for Nx contains executors and generators for managing Nuxt applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Cypress, and Storybook.\n\n- Generators for applications, libraries, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -30,11 +30,11 @@
30
30
  "dependencies": {
31
31
  "tslib": "^2.3.0",
32
32
  "@nuxt/kit": "^3.10.0",
33
- "@nx/devkit": "18.3.0-beta.1",
34
- "@nx/js": "18.3.0-beta.1",
35
- "@nx/eslint": "18.3.0-beta.1",
36
- "@nx/vue": "18.3.0-beta.1",
37
- "@nx/vite": "18.3.0-beta.1"
33
+ "@nx/devkit": "18.3.0-beta.2",
34
+ "@nx/js": "18.3.0-beta.2",
35
+ "@nx/eslint": "18.3.0-beta.2",
36
+ "@nx/vue": "18.3.0-beta.2",
37
+ "@nx/vite": "18.3.0-beta.2"
38
38
  },
39
39
  "peerDependencies": {},
40
40
  "publishConfig": {
@@ -24,11 +24,6 @@ async function applicationGenerator(tree, schema) {
24
24
  skipFormat: true,
25
25
  });
26
26
  tasks.push(jsInitTask);
27
- const nuxtInitTask = await (0, init_1.default)(tree, {
28
- ...options,
29
- skipFormat: true,
30
- });
31
- tasks.push(nuxtInitTask);
32
27
  tasks.push((0, ensure_dependencies_1.ensureDependencies)(tree, options));
33
28
  (0, devkit_1.addProjectConfiguration)(tree, options.name, {
34
29
  root: options.appProjectRoot,
@@ -69,6 +64,11 @@ async function applicationGenerator(tree, schema) {
69
64
  }));
70
65
  tasks.push(await (0, add_vitest_1.addVitest)(tree, options));
71
66
  }
67
+ const nuxtInitTask = await (0, init_1.default)(tree, {
68
+ ...options,
69
+ skipFormat: true,
70
+ });
71
+ tasks.push(nuxtInitTask);
72
72
  tasks.push(await (0, add_e2e_1.addE2e)(tree, options));
73
73
  if (options.js)
74
74
  (0, devkit_1.toJS)(tree);
@@ -1,18 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.nuxtInitGenerator = void 0;
4
- const update_package_scripts_1 = require("@nx/devkit/src/utils/update-package-scripts");
4
+ const devkit_1 = require("@nx/devkit");
5
+ const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
5
6
  const plugin_1 = require("../../plugins/plugin");
6
7
  const utils_1 = require("./lib/utils");
7
8
  async function nuxtInitGenerator(host, schema) {
8
- (0, utils_1.addPlugin)(host);
9
+ await (0, add_plugin_1.addPlugin)(host, await (0, devkit_1.createProjectGraphAsync)(), '@nx/nuxt/plugin', plugin_1.createNodes, {
10
+ buildTargetName: ['build', 'nuxt:build', 'nuxt-build'],
11
+ serveTargetName: ['serve', 'nuxt:serve', 'nuxt-serve'],
12
+ }, schema.updatePackageScripts);
9
13
  let installTask = () => { };
10
14
  if (!schema.skipPackageJson) {
11
15
  installTask = (0, utils_1.updateDependencies)(host, schema);
12
16
  }
13
- if (schema.updatePackageScripts) {
14
- await (0, update_package_scripts_1.updatePackageScripts)(host, plugin_1.createNodes);
15
- }
16
17
  return installTask;
17
18
  }
18
19
  exports.nuxtInitGenerator = nuxtInitGenerator;
@@ -3,4 +3,4 @@ export declare const h3Version = "^1.8.2";
3
3
  export declare const nuxtVersion = "^3.10.0";
4
4
  export declare const nuxtDevtoolsVersion = "1.0.0";
5
5
  export declare const nuxtUiTemplatesVersion = "^1.3.1";
6
- export declare const nuxtEslintConfigVersion = "~0.3.0-alpha.1";
6
+ export declare const nuxtEslintConfigVersion = "~0.3.6";
@@ -8,4 +8,4 @@ exports.nuxtVersion = '^3.10.0';
8
8
  exports.nuxtDevtoolsVersion = '1.0.0';
9
9
  exports.nuxtUiTemplatesVersion = '^1.3.1';
10
10
  // linting deps
11
- exports.nuxtEslintConfigVersion = '~0.3.0-alpha.1';
11
+ exports.nuxtEslintConfigVersion = '~0.3.6';