CLI tool to clone repositories, install dependencies and run scripts. All in one command.
npm install qlone



CLI tool to clone repositories, install dependencies and run Node scripts. All in one command.
yarn global add qlone || npm install --global qlone
Cloning repositories and getting it ready for development to use can be a tedious task. This is where qlone comes in. See these two examples:
``shWithout qlone
$ git clone https://github.com/idleberg/node-qlone
$ cd node-qlone
$ npm install
$ npm start
The repository can be provided in many syntaxes:
`sh
Standard syntaxes
ssh://[user@]host.xz[:port]/path/to/repo.git/
git://host.xz[:port]/path/to/repo.git/
http[s]://host.xz[:port]/path/to/repo.git/
ftp[s]://host.xz[:port]/path/to/repo.git/Special shorthands
github:user/repository
gh:user/repository
gitlab:user/repository
gl:user/repository
bitbucket:user/repository
bb:user/repository
`Examples:
`sh
Simple cloning
$ qlone https://github.com/idleberg/node-qlone.git
$ qlone gh:idleberg/node-qloneClone repository and fetch refs
$ qlone gh:idleberg/node-qlone -fClone and install dependencies
$ qlone gh:idleberg/node-qlone -iClone, install dependencies, run test and start scripts
$ qlone gh:idleberg/node-qlone -its
`When providing the
--install flag, the following dependencies will be installed, if available:- Node packages (requires
package.json)
- Bower packages (requires bower.json)
- Composer packages (requires composer.json)
- Dart dependencies (requires pubspec.yaml)
- Go dependencies (requires Gopkg.toml)
- Python packages (requires Pipfile)
- Ruby gems (requires Gemfile)
- Git submodules (requires .gitmodules)$3
Run
qlone --help to list all available flags:`
Usage: qlone [options] Clones repositories, installs dependencies, runs start scripts
Options:
-V, --version output the version number
-b, --branch specify git branch
-d, --depth specify git commit depth
-f, --fetch runs git fetch after clone
-i, --install installs dependencies for Node, Bower, Composer etc.
-o, --output specify output directory
-O, --overwrite overwrite existing folder
-r, --run