-
Notifications
You must be signed in to change notification settings - Fork 21
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
Install npm dependencies after cloning #51
Comments
For context, this feature is required for Nuxt Layers Extending (nuxt/nuxt#13367). Install after the clone is the most straightforward way. However, there are more ingenious ways such as generating a stub package.json and add it as a dependency to the main project. These are beyond c12 and should be experimented on nuxt but worth noting here. |
Linking issue unjs/giget#6 |
The nuxt layer issue seems more complicated than installing after cloning. The issue of missing dependencies happens even when not using git references. Ie, if I point my |
@marr this is something we might want to investigate on nuxt (and nitro) side. framework is supposed to automatically add |
BTW now we have stable nypm if anyone wants to support it as an optional feature PR is welcome 👍🏼 |
Just checking if there is some progress made on this ? |
@francoisauclair911 Yes it is on my todo list to add opt-in feature 👍🏼 |
@pi0 this is very exciting. It will be much easier to manage layers this way. |
Also related: #109 |
If i I understand it correctly then using layers with the GitHub strategy it is now fixed? Would that mean that the last remaining strategy is if using monorepo @pi0 ? |
with #112 and https://github.com/unjs/c12/releases/tag/v1.5.1, now we are one step away from supporting this (unjs/giget#6) |
A shortcut for |
@pi0 yes, does not install. Do I need to do |
@9M6 if you are sure the dependencies will be installed, it might be bug in nuxt that does not extends layer |
@pi0 Can you check my comment here nuxt/nuxt#26479 ? Hope it makes sense for you. |
Currently facing the same issue. Thanks for the workaround. In my case I intend to create a npm package so is not that much on a issue. Did you open an issue? I also had to add root node_modules folder: |
I think we need some documentation about how this works. Or just it just work out of the box? For example: If I have "base" and "project A", will "project A" automatically get dependencies when i "npm/bun/pnpm install" from "base"? |
Describe the feature
We should support an optional flag to support installing template dependencies after cloning. This gives close functionality to a layer to an npm package.
Additional information
The text was updated successfully, but these errors were encountered: