You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i was once again working on NGM and was thinking about a few things related to Nupm 😏
installing multiple modules in a single package:
in allow installing multiple modules from a single package #33, we made it possible to install multiple distinct modules from a single package, e.g. nu-git-manager and nu-git-manager-sugar in NGM. However, after using this feature, it sounds a bit strange... it's a bit like having two separate src/ directories in a single Rust crate 🤔
i think we should revert that feature and keep it simpler, i.e. a single module per module package, and move towards a "workspace" or "bundle" model
dependencies resolution:
in NGM, i always have to write things like use ../../foo/bar.nu in the modules themselves or use ../src/nu-git-manager/ in the tests, which is not that great 🤔
i think it would be great to have a nupm run that would resolve the dependencies and do that for the user, e.g. use module/foo/bar.nu and use nu-git-manager respectively: this would only be a trick with NU_LIB_DIRS to expose modules and activate overlays
"workspace" or "bundle" support:
would be cool to have multiple module packages in a repo and a central top-level package.nuon that would define a "workspace" and allow maybe to install everything at once?, e.g. nupm install --workspace
i was once again working on NGM and was thinking about a few things related to Nupm 😏
in allow installing multiple modules from a single package #33, we made it possible to install multiple distinct modules from a single package, e.g.
nu-git-managerandnu-git-manager-sugarin NGM. However, after using this feature, it sounds a bit strange... it's a bit like having two separatesrc/directories in a single Rust crate 🤔i think we should revert that feature and keep it simpler, i.e. a single module per module package, and move towards a "workspace" or "bundle" model
in NGM, i always have to write things like
use ../../foo/bar.nuin the modules themselves oruse ../src/nu-git-manager/in the tests, which is not that great 🤔i think it would be great to have a
nupm runthat would resolve the dependencies and do that for the user, e.g.use module/foo/bar.nuanduse nu-git-managerrespectively: this would only be a trick withNU_LIB_DIRSto expose modules and activate overlayspkgkeyword #52would be cool to have multiple module packages in a repo and a central top-level
package.nuonthat would define a "workspace" and allow maybe to install everything at once?, e.g.nupm install --workspacepackage.nuontonupm.nuonnupm.nuon#51