This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As outlined in nuxt/nuxt.js#13550 by @pi0 @atinux. This POC draft is our first step in introducing
Entity management shortcuts
to theNuxi CLI
.Entity Shortcuts
are meant to provide a simple yet robust way to quickly manage projects via CLI in this first stage. This functionality will later be leveraged by API Routes (ex:/__nuxi/<entity>/<command>
) and Nuxt Devtools to allow for project management directly from the browser.Nuxt is heavily dependent on proper filesystem structure, hence this PR aims to bridge to the gap making it easier for both newcomers as well as veterans of Nuxt to minimize the time it takes it scan and manage projects.
Upon arrival of a proper unjs templating util, we'll be able to begin full scale extension of this functionality
Initial implementation is as follows (Though the possibilities are vast):
the
show
command is meant to display an overview of the filesystem structure for the given entity. We also explored the possibility of using a--resolve-all
flag for leveraging a nuxt3 instance to get a fully resolved list of all the entities which may be extended by modules (pages, plugins, composables, middlewares, etc...), Though we've decided for now (performance in mind) that the full resolution would be a better fit for Nuxt Devtools.Any ideas or suggestions are welcome!
Todo:
📝 Checklist