yatskevich / grunt-bower-task

Grunt plugin for Bower
MIT License
490 stars 117 forks source link

How to install local package? #96

Open shhQuiet opened 10 years ago

shhQuiet commented 10 years ago

I have a package that is relative to my project directory (e.g. Gruntfile.js location). I normally install it (from the command line) like this:

bower install ../../otherPackage

I can't seem to find how to provide the name of the package to install to grunt-bower. Or does it only install those things in bower.json?

fantactuka commented 10 years ago

You can try following in bower.json dependencies:

{
  "otherPackage": "file:///some/path/to/otherPackage"
}

Also take a look into bower link that allows you to "register" local package without it being published