Skip to content
NPM submodules installer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

submodules-install - NPM Submodules Installer

This module provides a system for calling npm i on a list of locations, ultimately providing automatic submodule installation.

From the provided submodule globs, it will only match directories that contain "package.json".

Usage

Install via npm:

npm i submodules-install --save

Add an array of strings using glob syntax to your package.json:

"submodules": [
  "my_subdir/*",
  "my_subdir2/**"
]

Then run:

npx submodules-install

Alternatively, you may also use preinstall, postinstall, or otherwise:

"scripts": {
  "preinstall": "submodules-install"
}
You can’t perform that action at this time.