mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
.\" Generated with Ronnjs 0.3.8
|
|
.\" http://github.com/kapouer/ronnjs/
|
|
.
|
|
.TH "NPM\-SUBMODULE" "3" "September 2014" "" ""
|
|
.
|
|
.SH "NAME"
|
|
\fBnpm-submodule\fR \-\- Add a package as a git submodule
|
|
.
|
|
.SH "SYNOPSIS"
|
|
.
|
|
.nf
|
|
npm\.commands\.submodule(packages, callback)
|
|
.
|
|
.fi
|
|
.
|
|
.SH "DESCRIPTION"
|
|
For each package specified, npm will check if it has a git repository url
|
|
in its package\.json description then add it as a git submodule at \fBnode_modules/<pkg name>\fR\|\.
|
|
.
|
|
.P
|
|
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 \fB\|\.git\fR subfolder
|
|
in it\.
|
|
.
|
|
.P
|
|
This command also does not install missing dependencies, if the package
|
|
does not include them in its git repository\. If \fBnpm ls\fR reports that
|
|
things are missing, you can either install, link, or submodule them yourself,
|
|
or you can do \fBnpm explore <pkgname> \-\- npm install\fR to install the
|
|
dependencies into the submodule folder\.
|
|
.
|
|
.SH "SEE ALSO"
|
|
.
|
|
.IP "\(bu" 4
|
|
npm help json
|
|
.
|
|
.IP "\(bu" 4
|
|
git help submodule
|
|
.
|
|
.IP "" 0
|
|
|
|
|