-
Notifications
You must be signed in to change notification settings - Fork 68
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: modules db integration with nuxi module add
#197
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi0
changed the title
feat: search in
feat: nuxt modules lookup for Sep 19, 2023
nuxt/modules
for nuxt module add <name>
nuxt module add <name>
pi0
changed the title
feat: nuxt modules lookup for
feat: modules db integration with Sep 19, 2023
nuxt module add <name>
nuxt module add <name>
pi0
changed the title
feat: modules db integration with
feat: modules db integration with Sep 19, 2023
nuxt module add <name>
nuxi module add
danielroe
approved these changes
Sep 19, 2023
This was referenced Apr 2, 2024
This was referenced Apr 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
nuxt module add
with shortcut for@nuxt
#194Beta Testing:
npx nuxi-edge@latst module add <name>
Search in nuxt/modules database when adding a new module. This allows installing modules as easy as
nuxt module add tailwindcss
.Compatibility Checker
This feature checks for possible compatibility issues and confirms whether to continue or not.
nuxi module add axios
on a nuxt 3 project:Offline Usage
In case of network issues, we fall back with a warning and use the input as npm package name without validation. This could be improved later with
--preferOffline
and a disk cache of modules (to be used also for search functionality). (PR welcome!)Automatically choosing the right version
Some Nuxt modules use different major versions for different Nuxt versions (such as image Module).
With the introduction of
compatibility.versionMap
in modules DB (nuxt/modules#770), we can now even match the corresponding version compatible with the local Nuxt version.nuxi module add image
on a nuxt 3 project:Validate (npm) input
Users can choose to directly use an npm package name (with optional
@
constraint) to be installed.Also in this mode, we try to match explicitly provided npm package names against DB and provide recommendations!
nuxi module add @nuxt/image@^0.6.0
on a nuxt 3 project: