Miss any of our Open RFC calls?Watch the recordings here! »

bower-git

0.2.0 • Public • Published

bower-git

Replaces bower component folders with their git-repository counterpart

Installation

npm install bower-git -g

Usage

$ bower-git

  Usage: bower-git [options] <path>

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    -b, --branch [value]  checkout specific branch (default: master)
    -v, --verbose

Pass it a folder to a bower component and bower-git will clone the repository and replace the bower component folder with its git repository counterpart.

$ bower-git vendor/headjs
  Replacing bower component with git repository...
  Bower component "headjs" has been replaced by its git repository

Checkout specific branch

Pass --branch={branch} to checkout specific branch uppon clone. e.g. checkout the same branch as the current one you're in.

$ bower-git vendor/headjs --branch=$(git rev-parse --abbrev-ref HEAD)
  Replacing bower component with git repository...
  Bower component "headjs" has been replaced by its git repository

Contributing

Please respect the .editorconfig, .jscsrc and .eslintrc style guide. Basically:

  • UTF-8
  • Unix linebreaks
  • 4 space indentation
  • Semicolons

Run:

npm run lint

Run tests:

npm test

Keywords

Install

npm i [email protected]

Version

0.2.0

License

MIT

Unpacked Size

17.3 kB

Total Files

12

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar