Monday 20 August 2018

Installing Submodule Packages

While working on a project using submodules, I found it a constant pain having to run npm i for each one anytime something changed. Especially when there's nested submodules.. I'm lazy, I just want things to work, so I built a thing. I figured I'd share, incase this is a frustration for anyone else.It's a light weight package. It's very simple require() before anything else. It will scan recursively for .gitmodule files, parse out directory paths, and then use a child process to cd into each submodule directory and run npm i. Unless --sub_reload was used, if node_modules exists that submodule directory will be skipped.https://ift.tt/2ONHd91

Submitted August 20, 2018 at 07:24PM by SpermicidalFoam

No comments:

Post a Comment