-
Notifications
You must be signed in to change notification settings - Fork 73
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
CLI Scaffolding progress #57
Comments
bridge can use this ?
Nuxt project info: 09:46:18
|
Any possibility of extending the cli with external templates. I'd like to add the name property to created components so they are correctly resolved by Webstorm. I don't know if it be useful enough given most people use vscode but it would help me a lot passing a custom template instead of having to maintain my own version of the cli. |
Well just realized it is in the roadmap, I'll try to come up with something. |
I love the nuxi approach to automating file creation! I can see several ways to accomplish the following, including custom templates, a cli flag, project-wide configuration, etc. but regardless of implementation details, I'd really love to see the ability to automatically create a unit/integration test file for the newly generated components, middleware, pages, plugins, etc. E.g. when running I believe that such a feature is very consistent with the goal of nuxi. Between vue test-utils and the new nuxt test-utils it seems like a (relatively) low-hanging approach to encourage and support testing. Unfortunately, other commitments have limited the time I have to explore Nuxt 3, but the little bit that I have seen, has me super excited. |
I love the idea to have a CLI tool for scaffolding components, as we missed that feature in nuxt we have created a similar tool which is currently specialized on ui component creation (it does not support plugins etc.). npm: create-frontend-component It has a slightly different approach compared to nuxi as the templates can be fully customized and also multiple files can be added (eg. unit tests, storybook files). It as is easy as creating and editing files in a dedicated directory. Other than that you can create multiple template types (called flavours) if you need multiple variants in your project. In the CLI you can then choose the type (eg. atoms, molecules, organism) reflecting your directory structure and the flavour. Maybe it can serve as a bit of inspiration for nuxi add. |
One of the new features of
nuxi cli
, is the ability to scaffold templates for common components such as pages, plugins, etc.Thanks to the nice initiative from @Baroshem (via nuxt/framework#3841) we have the functionality to try with
nuxi add
💚 (docs: https://v3.nuxtjs.org/docs/usage/cli/#add)This issue is to track the roadmap of this feature.
Feature roadmap:
nuxi add
(#3841)nuxi pages add <name>
) (#3903)Templates:
Feedbacks are more than welcome!
The text was updated successfully, but these errors were encountered: