gtni
v1.7.0
Published
Install your all npm dependencies recursively with gtni while you are doing git clone, fetch or pull
Downloads
77
Maintainers
Readme
gtni
Install your npm dependencies recursively with gtni as soon you clone, fetch or pull a git repo.
gtni automatically choose right package manager for a git repository based on lock file in a directory with
package.json
.
Installation
[sudo] npm install -g gtni
# or
[sudo] yarn global add gtni
Usage
$gtni --help
Usage: gtni <command> [options]
Commands:
pull git pull and install npm dependencies
fetch git fetch and install npm dependencies
clone clone a git repository and install npm dependencies
Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
[NODE_ENV=<env>] gtni pull [git-options] git pull and install npm packages
# Sub command options
$ gtni <command> -h
Options:
-h, --help, --help Show help [boolean]
--branch, -b remote branch name to clone [string] [default: false]
--debug, -d Show debug output [boolean] [default: false]
-v, --version Show version number [boolean]
Note: here you can pass any flags for the corresponding git command
I need your help to improve this module. Please send me your valuable suggestions and advices. I am all ears.
Todo List
- [x] Very basic stage of pull support
- [x] Pull support for most used
git pull
options - [x] Fetch support for most used
git fetch
options - [x] Support for
git clone
- [x]
NODE_ENV
support fornpm/yarn install
- [x] Show warnings during dependencies installation
- [x] Support for read and install dependencies when project has multiple
package.json
files - [x] Install npm modules diffing
git tree
for various branch after doing git operations supported bygtni
- [x] Add support to pass custom
NODE_ENV
values fornpm install
- [x] Choose right package manager automatically for a repository