mono_modules

0.0.1 • Public • Published

mono_modules npm

Install modules from monorepos and Git subfolders.

Installation

npm install -g mono_modules

Usage

Installing mono_modules globally provides access to the mono_modules command:

mono_modules [command]

Run help command for detailed information about each command:

mono_modules help [command]

Commands

init

Initialize mono_modules on the current repository.

Note: this command is intended to be called in the preinstall script, inside package.json.

{
  "scripts": {
    "preinstall": "npx mono_modules init"
  }
}

install [options] <repository> <directory>

Install a submodule from a repository.

Options

-p, --persist

Instead of storing the submodule in ./node_modules/.mono_modules, it will be stored inside ./mono_modules dir. Use this option if the submodule should be committed to the repository. This option is useful if you use submodules from private repositories and need to build the app in an unauthenticated server — e.g. Netlify, Vercel, etc.

update

Update installed submodules to the latest commit version of the repository.

Caveats

This module is still in its early stages of development and is subject to change. If you find a bug or need a specific feature, please don't hesitate to open an issue.

License

The MIT License

Readme

Keywords

Package Sidebar

Install

npm i mono_modules

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

11.1 kB

Total Files

16

Last publish

Collaborators

  • stldo