packages/vue/docs/component-examples.md
This generator will help you generate components for your Vue or your Nuxt projects.
nx g @nx/vue:component my-app/src/app/my-cmp
As recommended in the Nuxt documentation, place your components into the components directory of your app. Nuxt automatically imports any components in this
directory.
Running the following will create a new component in the my-app/src/components directory:
nx g @nx/nuxt:component my-app/src/components/my-cmp
As stated in the Nuxt documentation, Nuxt provides a file-based routing to create routes within your web application. Place your pages into the pages directory of your app.
Running the following will create a new component (page) in the my-app/src/pages directory:
nx g @nx/nuxt:component my-app/src/pages/my-page