bower-git
Replaces bower component folders with their git-repository counterpart
Last updated a year ago by ollhar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bower-git -g
SYNC missed versions from official npm registry.

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 and .eslintrc style guide. Basically:

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

Run:

npm run lint

Run tests:

npm test

Current Tags

  • 0.2.1                                ...           latest (a year ago)

4 Versions

  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |