diff options
author | isaacs <i@izs.me> | 2013-07-12 08:56:59 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-07-12 08:56:59 -0700 |
commit | 9da67fa5198f3c0839904ae05cbfe88c61b3ad09 (patch) | |
tree | 61c03f98b7c2ae549f67c01e1afe6dcbe84847d6 /deps/npm/doc/cli/npm-submodule.md | |
parent | f88b8dad84cd8f37000e55f0b5de7963cbb252cf (diff) | |
download | node-9da67fa5198f3c0839904ae05cbfe88c61b3ad09.tar.gz |
npm: Upgrade to 1.3.3
Diffstat (limited to 'deps/npm/doc/cli/npm-submodule.md')
-rw-r--r-- | deps/npm/doc/cli/npm-submodule.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deps/npm/doc/cli/npm-submodule.md b/deps/npm/doc/cli/npm-submodule.md new file mode 100644 index 000000000..7f0fbfc9f --- /dev/null +++ b/deps/npm/doc/cli/npm-submodule.md @@ -0,0 +1,28 @@ +npm-submodule(1) -- Add a package as a git submodule +==================================================== + +## SYNOPSIS + + npm submodule <pkg> + +## DESCRIPTION + +If the specified package has a git repository url in its package.json +description, then this command will add it as a git submodule at +`node_modules/<pkg name>`. + +This is a convenience only. From then on, it's up to you to manage +updates by using the appropriate git commands. npm will stubbornly +refuse to update, modify, or remove anything with a `.git` subfolder +in it. + +This command also does not install missing dependencies, if the package +does not include them in its git repository. If `npm ls` reports that +things are missing, you can either install, link, or submodule them yourself, +or you can do `npm explore <pkgname> -- npm install` to install the +dependencies into the submodule folder. + +## SEE ALSO + +* package.json(5) +* git help submodule |