-
Notifications
You must be signed in to change notification settings - Fork 71
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
manage project structure with CLI #58
Comments
One note for shortcuts: I really like the idea, how and where would you see the implementation? |
indeed :) Update generic comment
Nothing is stopping to implement shortcuts for Next step, we need a proper utility from unjs, especially for modifications and properly test it before using it in cli. In the meantime, ideas more than welcome about what updates we could imagine. For me, could imagine adding static page meta and rename (apart from config modification. it is out of scope) The rest needs a poc of devtools and CLI api service. |
Do you think it would be possible to add a custom template system? For example add this in the Nuxt config: templates : {
custom: {
dir: <target dir>,
file: <template file> // or take a file with the same name in a new templates directory
}
} and then run |
This is a superset of nuxt/nuxt.js#13552 and a requirement of devtools vision.
Nuxt heavily depends on filesystem structure to configure project. As a result, we introduce filesystem entities such as pages, components, composables and plugins.
However, it is not easy to manage such entities. Creating a page, see what components are scanned, what plugins are available, what pages are there and mapped to which routes, etc.
The idea is to expose entity namespaces from nuxi cli to manage these. Some examples:
Related:
nuxi module *
(https://github.com/nuxt/framework/discussions/569)By exposing this functionality from CLI (and later an API service), they can be used both for CLI lovers and also nuxt devtools to easily manage entities without duplicating logic.
Roadmap:
nuxi add <template> <name>
asnuxi <template> add <name>
Entities we can start with:
The text was updated successfully, but these errors were encountered: