@nx/nuxt 19.5.7 → 19.6.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/package.json +6 -6
- package/src/generators/application/application.js +16 -1
- package/src/generators/application/files/nx-welcome/claimed/src/components/NxWelcome.vue__tmpl__ +791 -0
- package/src/generators/application/files/{src → nx-welcome/not-configured/src}/components/NxWelcome.vue__tmpl__ +82 -130
- package/src/generators/application/files/nx-welcome/unclaimed/src/components/NxWelcome.vue__tmpl__ +792 -0
- package/src/generators/application/lib/add-e2e.js +18 -2
- package/src/generators/application/schema.d.ts +1 -0
- /package/src/generators/application/files/{__dot__npmrc → base/__dot__npmrc} +0 -0
- /package/src/generators/application/files/{nuxt.config.ts__tmpl__ → base/nuxt.config.ts__tmpl__} +0 -0
- /package/src/generators/application/files/{src → base/src}/app.vue__tmpl__ +0 -0
- /package/src/generators/application/files/{src → base/src}/assets/css/styles.__style__ +0 -0
- /package/src/generators/application/files/{src → base/src}/pages/about.vue__tmpl__ +0 -0
- /package/src/generators/application/files/{src → base/src}/pages/index.vue__tmpl__ +0 -0
- /package/src/generators/application/files/{src → base/src}/public/__dot__gitkeep +0 -0
- /package/src/generators/application/files/{src → base/src}/public/favicon.ico__tmpl__ +0 -0
- /package/src/generators/application/files/{src → base/src}/server/api/greet.ts__tmpl__ +0 -0
- /package/src/generators/application/files/{src → base/src}/server/tsconfig.json__tmpl__ +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nuxt",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0-beta.1",
|
|
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, 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": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.3.0",
|
|
33
33
|
"@nuxt/kit": "^3.10.0",
|
|
34
|
-
"@nx/devkit": "19.
|
|
35
|
-
"@nx/js": "19.
|
|
36
|
-
"@nx/eslint": "19.
|
|
37
|
-
"@nx/vue": "19.
|
|
38
|
-
"@nx/vite": "19.
|
|
34
|
+
"@nx/devkit": "19.6.0-beta.1",
|
|
35
|
+
"@nx/js": "19.6.0-beta.1",
|
|
36
|
+
"@nx/eslint": "19.6.0-beta.1",
|
|
37
|
+
"@nx/vue": "19.6.0-beta.1",
|
|
38
|
+
"@nx/vite": "19.6.0-beta.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {},
|
|
41
41
|
"publishConfig": {
|
|
@@ -15,10 +15,14 @@ const vue_1 = require("@nx/vue");
|
|
|
15
15
|
const ensure_dependencies_1 = require("./lib/ensure-dependencies");
|
|
16
16
|
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
17
17
|
const node_child_process_1 = require("node:child_process");
|
|
18
|
+
const onboarding_1 = require("nx/src/nx-cloud/utilities/onboarding");
|
|
18
19
|
async function applicationGenerator(tree, schema) {
|
|
19
20
|
const tasks = [];
|
|
20
21
|
const options = await (0, normalize_options_1.normalizeOptions)(tree, schema);
|
|
21
22
|
const projectOffsetFromRoot = (0, devkit_1.offsetFromRoot)(options.appProjectRoot);
|
|
23
|
+
const onBoardingStatus = await (0, onboarding_1.createNxCloudOnboardingURLForWelcomeApp)(tree, options.nxCloudToken);
|
|
24
|
+
const connectCloudUrl = onBoardingStatus === 'unclaimed' &&
|
|
25
|
+
(await (0, onboarding_1.getNxCloudAppOnBoardingUrl)(options.nxCloudToken));
|
|
22
26
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
|
23
27
|
...schema,
|
|
24
28
|
tsConfigName: schema.rootProject ? 'tsconfig.json' : 'tsconfig.base.json',
|
|
@@ -32,7 +36,7 @@ async function applicationGenerator(tree, schema) {
|
|
|
32
36
|
sourceRoot: `${options.appProjectRoot}/src`,
|
|
33
37
|
targets: {},
|
|
34
38
|
});
|
|
35
|
-
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, './files'), options.appProjectRoot, {
|
|
39
|
+
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, './files/base'), options.appProjectRoot, {
|
|
36
40
|
...options,
|
|
37
41
|
offsetFromRoot: projectOffsetFromRoot,
|
|
38
42
|
title: options.projectName,
|
|
@@ -42,6 +46,17 @@ async function applicationGenerator(tree, schema) {
|
|
|
42
46
|
projectRoot: options.appProjectRoot,
|
|
43
47
|
hasVitest: options.unitTestRunner === 'vitest',
|
|
44
48
|
});
|
|
49
|
+
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, './files/nx-welcome', onBoardingStatus), options.appProjectRoot, {
|
|
50
|
+
...options,
|
|
51
|
+
connectCloudUrl,
|
|
52
|
+
offsetFromRoot: projectOffsetFromRoot,
|
|
53
|
+
title: options.projectName,
|
|
54
|
+
dot: '.',
|
|
55
|
+
tmpl: '',
|
|
56
|
+
style: options.style,
|
|
57
|
+
projectRoot: options.appProjectRoot,
|
|
58
|
+
hasVitest: options.unitTestRunner === 'vitest',
|
|
59
|
+
});
|
|
45
60
|
if (options.style === 'none') {
|
|
46
61
|
tree.delete((0, devkit_1.joinPathFragments)(options.appProjectRoot, `src/assets/css/styles.none`));
|
|
47
62
|
}
|