New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nuxt): nodes for build, serve, test targets #20145
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit d018939. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
068f8c7
to
2dd509f
Compare
2dd509f
to
3dbebe6
Compare
3dbebe6
to
5db7a2a
Compare
5db7a2a
to
c368b60
Compare
76a1b1f
to
c2f4cf9
Compare
52a09e4
to
9565424
Compare
6e7d497
to
042f873
Compare
137af0c
to
1ac7f6c
Compare
1ac7f6c
to
37376d7
Compare
ecba82e
to
8829943
Compare
8829943
to
69859fb
Compare
2c07457
to
2c1fc81
Compare
2c1fc81
to
d018939
Compare
docs/map.json
Outdated
@@ -2171,6 +2171,13 @@ | |||
"name": "Overview of the Nx Nuxt Plugin", | |||
"description": "The Nx Plugin for Nuxt contains generators for managing Nuxt applications within a Nx workspace. This page also explains how to configure Nuxt on your Nx workspace.", | |||
"file": "shared/packages/nuxt/nuxt-plugin" | |||
}, | |||
{ | |||
"id": "nuxt-nodes-plugin", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add this information in the nuxt
overview guide.
e2e/nuxt/src/nuxt.test.ts
Outdated
// jest.mock('@nuxt/kit', () => ({ | ||
// loadNuxtConfig: jest.fn().mockImplementation(() => { | ||
// return Promise.resolve({ | ||
// path: 'nuxt.config.ts', | ||
// config: {}, | ||
// dependencies: [], | ||
// }); | ||
// }), | ||
// })); | ||
|
||
// jest.mock('@nx/nuxt', () => ({ | ||
// loadNuxtKitDynamicImport: jest.fn().mockResolvedValue({ | ||
// loadNuxtConfig: jest.fn().mockResolvedValue({ | ||
// path: 'nuxt.config.ts', | ||
// config: {}, | ||
// dependencies: [], | ||
// }), | ||
// }), | ||
// })); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this now if we generate a target with command
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
A plugin (
@nx/nuxt/plugin
) which will add Nuxt targets/projects to the Nx project graph. This allows you to run Nuxt for projects that have anuxt.config.ts
file without creating aproject.json
file.To-do's
async
is ready)Once this PR is merged, we can add the cypress web server config.
How it works
On
@nx/nuxt:init
(which is called through the@nx/nuxt:application
generator this is added in thenx.json
:so that you can run
nx build my-app
,nx test my-app
etc, without manually defining these targets in your projects'project.json
.The plugin generates these targets with bare minimum (no extra) options configuration. Any options you need for your nuxt app, you can add in your project's
nuxt.config.ts
.