@nx/vue 24.0.0-beta.2 → 24.0.0-beta.4

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.
@@ -19,7 +19,6 @@ const assert_supported_vue_version_1 = require("../../utils/assert-supported-vue
19
19
  const internal_3 = require("@nx/js/internal");
20
20
  function applicationGenerator(tree, options) {
21
21
  return applicationGeneratorInternal(tree, {
22
- addPlugin: false,
23
22
  useProjectJson: true,
24
23
  ...options,
25
24
  });
@@ -27,7 +26,7 @@ function applicationGenerator(tree, options) {
27
26
  async function applicationGeneratorInternal(tree, _options) {
28
27
  (0, assert_supported_vue_version_1.assertSupportedVueVersion)(tree);
29
28
  const tasks = [];
30
- const addTsPlugin = (0, internal_3.shouldConfigureTsSolutionSetup)(tree, _options.addPlugin, _options.useTsSolution);
29
+ const addTsPlugin = (0, internal_3.shouldConfigureTsSolutionSetup)(tree, _options.useTsSolution);
31
30
  tasks.push(await (0, js_1.initGenerator)(tree, {
32
31
  ..._options,
33
32
  tsConfigName: _options.rootProject
@@ -43,10 +42,6 @@ async function applicationGeneratorInternal(tree, _options) {
43
42
  if (options.isUsingTsSolutionConfig) {
44
43
  await (0, internal_3.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
45
44
  }
46
- const nxJson = (0, devkit_1.readNxJson)(tree);
47
- options.addPlugin ??=
48
- process.env.NX_ADD_PLUGINS !== 'false' &&
49
- nxJson.useInferencePlugins !== false;
50
45
  const packageJson = {
51
46
  name: options.importPath,
52
47
  version: '0.0.1',
@@ -92,7 +87,6 @@ async function applicationGeneratorInternal(tree, _options) {
92
87
  skipPackageJson: options.skipPackageJson,
93
88
  enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
94
89
  rootProject: options.rootProject,
95
- addPlugin: options.addPlugin,
96
90
  projectName: options.projectName,
97
91
  }, 'app'));
98
92
  if (options.bundler === 'rsbuild') {
@@ -16,14 +16,14 @@ async function addE2e(tree, options) {
16
16
  let e2eWebServerInfo;
17
17
  if (options.bundler === 'vite') {
18
18
  const { getViteE2EWebServerInfo } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
19
- e2eWebServerInfo = await getViteE2EWebServerInfo(tree, options.projectName, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `vite.config.${options.js ? 'js' : 'ts'}`), options.addPlugin, options.devServerPort ?? 4200);
19
+ e2eWebServerInfo = await getViteE2EWebServerInfo(tree, options.projectName, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `vite.config.${options.js ? 'js' : 'ts'}`), options.devServerPort ?? 4200);
20
20
  }
21
21
  else if (options.bundler === 'rsbuild') {
22
22
  (0, devkit_1.ensurePackage)('@nx/rsbuild', versions_1.nxVersion);
23
23
  // `require()` honors Module._initPaths (which ensurePackage updates); ESM
24
24
  // dynamic `import()` doesn't, so it can't see the on-demand temp install.
25
25
  const { getRsbuildE2EWebServerInfo, } = require('@nx/rsbuild/config-utils');
26
- e2eWebServerInfo = await getRsbuildE2EWebServerInfo(tree, options.projectName, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `rsbuild.config.${options.js ? 'js' : 'ts'}`), options.addPlugin, options.devServerPort ?? 4200);
26
+ e2eWebServerInfo = await getRsbuildE2EWebServerInfo(tree, options.projectName, (0, devkit_1.joinPathFragments)(options.appProjectRoot, `rsbuild.config.${options.js ? 'js' : 'ts'}`), options.devServerPort ?? 4200);
27
27
  }
28
28
  switch (options.e2eTestRunner) {
29
29
  case 'cypress': {
@@ -11,7 +11,6 @@ async function addRsbuild(tree, options) {
11
11
  const { initGenerator, configurationGenerator, } = require('@nx/rsbuild/generators');
12
12
  const initTask = await initGenerator(tree, {
13
13
  skipPackageJson: options.skipPackageJson,
14
- addPlugin: true,
15
14
  skipFormat: true,
16
15
  });
17
16
  tasks.push(initTask);
@@ -15,7 +15,6 @@ async function addVite(tree, options) {
15
15
  includeVitest: options.unitTestRunner === 'vitest',
16
16
  skipFormat: true,
17
17
  testEnvironment: 'jsdom',
18
- addPlugin: options.addPlugin,
19
18
  });
20
19
  (0, vite_1.createOrEditViteConfig)(tree, {
21
20
  project: options.projectName,
@@ -48,7 +47,6 @@ async function addVitest(tree, options) {
48
47
  inSourceTests: options.inSourceTests,
49
48
  skipFormat: true,
50
49
  testEnvironment: 'jsdom',
51
- addPlugin: options.addPlugin,
52
50
  runtimeTsconfigFileName: 'tsconfig.app.json',
53
51
  skipViteConfig: true,
54
52
  });
@@ -22,7 +22,6 @@ export interface Schema {
22
22
  setParserOptionsProject?: boolean;
23
23
  skipPackageJson?: boolean;
24
24
  rootProject?: boolean;
25
- addPlugin?: boolean;
26
25
  nxCloudToken?: string;
27
26
  useTsSolution?: boolean;
28
27
  useProjectJson?: boolean;
@@ -17,7 +17,6 @@ async function addVite(tree, options) {
17
17
  includeVitest: options.unitTestRunner === 'vitest',
18
18
  skipFormat: true,
19
19
  testEnvironment: 'jsdom',
20
- addPlugin: options.addPlugin,
21
20
  });
22
21
  tasks.push(viteTask);
23
22
  createOrEditViteConfig(tree, {
@@ -46,7 +45,6 @@ async function addVite(tree, options) {
46
45
  inSourceTests: options.inSourceTests,
47
46
  skipFormat: true,
48
47
  testEnvironment: 'jsdom',
49
- addPlugin: options.addPlugin,
50
48
  runtimeTsconfigFileName: 'tsconfig.lib.json',
51
49
  });
52
50
  tasks.push(vitestTask);
@@ -23,9 +23,6 @@ async function normalizeOptions(host, options) {
23
23
  bundler = 'vite';
24
24
  }
25
25
  }
26
- const nxJson = (0, devkit_1.readNxJson)(host);
27
- const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
28
- nxJson.useInferencePlugins !== false;
29
26
  const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(host);
30
27
  let appMain;
31
28
  let appSourceRoot;
@@ -45,7 +42,6 @@ async function normalizeOptions(host, options) {
45
42
  }
46
43
  }
47
44
  const normalized = {
48
- addPlugin,
49
45
  ...options,
50
46
  projectName: isUsingTsSolutionConfig && !options.name ? importPath : projectName,
51
47
  // Libraries with a bundler or that are publishable must also be buildable.
@@ -20,7 +20,6 @@ const determine_entry_fields_1 = require("./lib/determine-entry-fields");
20
20
  const normalize_options_1 = require("./lib/normalize-options");
21
21
  function libraryGenerator(tree, schema) {
22
22
  return libraryGeneratorInternal(tree, {
23
- addPlugin: false,
24
23
  useProjectJson: true,
25
24
  ...schema,
26
25
  });
@@ -31,7 +30,7 @@ async function libraryGeneratorInternal(tree, schema) {
31
30
  if (schema.publishable === true && !schema.importPath) {
32
31
  throw new Error(`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`);
33
32
  }
34
- const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(tree, schema.addPlugin);
33
+ const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(tree);
35
34
  tasks.push(await (0, js_1.initGenerator)(tree, {
36
35
  ...schema,
37
36
  addTsPlugin,
@@ -25,7 +25,6 @@ export interface Schema {
25
25
  unitTestRunner?: 'vitest' | 'none';
26
26
  minimal?: boolean;
27
27
  e2eTestRunner?: 'cypress' | 'none';
28
- addPlugin?: boolean;
29
28
  useProjectJson?: boolean;
30
29
  }
31
30
 
@@ -17,10 +17,7 @@ async function generateStories(host, schema) {
17
17
  });
18
18
  }
19
19
  function storybookConfigurationGenerator(host, schema) {
20
- return storybookConfigurationGeneratorInternal(host, {
21
- addPlugin: false,
22
- ...schema,
23
- });
20
+ return storybookConfigurationGeneratorInternal(host, schema);
24
21
  }
25
22
  async function storybookConfigurationGeneratorInternal(host, schema) {
26
23
  (0, assert_supported_vue_version_1.assertSupportedVueVersion)(host);
@@ -34,7 +31,6 @@ async function storybookConfigurationGeneratorInternal(host, schema) {
34
31
  configureStaticServe: schema.configureStaticServe,
35
32
  uiFramework: '@storybook/vue3-vite',
36
33
  skipFormat: true,
37
- addPlugin: schema.addPlugin,
38
34
  });
39
35
  if (schema.generateStories) {
40
36
  await generateStories(host, schema);
@@ -9,5 +9,4 @@ export interface StorybookConfigureSchema {
9
9
  linter?: LinterType;
10
10
  ignorePaths?: string[];
11
11
  configureStaticServe?: boolean;
12
- addPlugin?: boolean;
13
12
  }
@@ -12,6 +12,5 @@ export declare function addLinting(host: Tree, options: {
12
12
  setParserOptionsProject?: boolean;
13
13
  skipPackageJson?: boolean;
14
14
  rootProject?: boolean;
15
- addPlugin?: boolean;
16
15
  projectName: string;
17
16
  }, projectType: 'lib' | 'app'): Promise<GeneratorCallback>;
@@ -17,7 +17,6 @@ async function addLinting(host, options, projectType) {
17
17
  unitTestRunner: options.unitTestRunner,
18
18
  enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
19
19
  rootProject: options.rootProject,
20
- addPlugin: options.addPlugin,
21
20
  skipPackageJson: options.skipPackageJson,
22
21
  }));
23
22
  // Everything below configures ESLint — predefined configs, `extends`, ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/vue",
3
- "version": "24.0.0-beta.2",
3
+ "version": "24.0.0-beta.4",
4
4
  "private": false,
5
5
  "description": "The Vue plugin for Nx contains executors and generators for managing Vue applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Playwright, 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": {
@@ -61,26 +61,26 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@nx/devkit": "24.0.0-beta.2",
65
- "@nx/eslint": "24.0.0-beta.2",
66
- "@nx/js": "24.0.0-beta.2",
67
- "@nx/vite": "24.0.0-beta.2",
68
- "@nx/vitest": "24.0.0-beta.2",
69
- "@nx/web": "24.0.0-beta.2",
64
+ "@nx/devkit": "24.0.0-beta.4",
65
+ "@nx/eslint": "24.0.0-beta.4",
66
+ "@nx/js": "24.0.0-beta.4",
67
+ "@nx/vite": "24.0.0-beta.4",
68
+ "@nx/vitest": "24.0.0-beta.4",
69
+ "@nx/web": "24.0.0-beta.4",
70
70
  "picomatch": "4.0.4",
71
71
  "tslib": "^2.3.0"
72
72
  },
73
73
  "devDependencies": {
74
- "nx": "24.0.0-beta.2"
74
+ "nx": "24.0.0-beta.4"
75
75
  },
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
79
  "peerDependencies": {
80
- "@nx/cypress": "24.0.0-beta.2",
81
- "@nx/playwright": "24.0.0-beta.2",
82
- "@nx/rsbuild": "24.0.0-beta.2",
83
- "@nx/storybook": "24.0.0-beta.2",
80
+ "@nx/cypress": "24.0.0-beta.4",
81
+ "@nx/playwright": "24.0.0-beta.4",
82
+ "@nx/rsbuild": "24.0.0-beta.4",
83
+ "@nx/storybook": "24.0.0-beta.4",
84
84
  "vue": "^3.0.0",
85
85
  "vue-router": "^4.0.0",
86
86
  "vue-tsc": "^2.0.0",