2015-01-09 06:37:26 +08:00
|
|
|
.\" Generated with Ronnjs 0.3.8
|
|
|
|
.\" http://github.com/kapouer/ronnjs/
|
|
|
|
.
|
|
|
|
.TH "NPM\-SUBMODULE" "1" "September 2014" "" ""
|
|
|
|
.
|
2011-11-27 01:21:03 +08:00
|
|
|
.SH "NAME"
|
2015-01-09 06:37:26 +08:00
|
|
|
\fBnpm-submodule\fR \-\- Add a package as a git submodule
|
|
|
|
.
|
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.
|
2014-11-05 07:08:12 +08:00
|
|
|
.nf
|
2011-11-27 01:21:03 +08:00
|
|
|
npm submodule <pkg>
|
2015-01-09 06:37:26 +08:00
|
|
|
.
|
2014-11-05 07:08:12 +08:00
|
|
|
.fi
|
2015-01-09 06:37:26 +08:00
|
|
|
.
|
|
|
|
.SH "DESCRIPTION"
|
2011-11-27 01:21:03 +08:00
|
|
|
If the specified package has a git repository url in its package\.json
|
2015-01-09 06:37:26 +08:00
|
|
|
description, then this command will add it as a git submodule at \fBnode_modules/<pkg name>\fR\|\.
|
|
|
|
.
|
2011-11-27 01:21:03 +08:00
|
|
|
.P
|
2015-01-09 06:37:26 +08:00
|
|
|
This is a convenience only\. From then on, it\'s up to you to manage
|
2011-11-27 01:21:03 +08:00
|
|
|
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\.
|
2015-01-09 06:37:26 +08:00
|
|
|
.
|
2011-11-27 01:21:03 +08:00
|
|
|
.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\.
|
2015-01-09 06:37:26 +08:00
|
|
|
.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.
|
|
|
|
.IP "\(bu" 4
|
2014-09-17 06:38:50 +08:00
|
|
|
npm help 5 package\.json
|
2015-01-09 06:37:26 +08:00
|
|
|
.
|
|
|
|
.IP "\(bu" 4
|
2011-11-27 01:21:03 +08:00
|
|
|
git help submodule
|
2015-01-09 06:37:26 +08:00
|
|
|
.
|
|
|
|
.IP "" 0
|
2011-11-27 01:21:03 +08:00
|
|
|
|