tmaximini / ionic-gulp-seed

A starting point for Ionic Apps
74 stars 20 forks source link

Adding new Bower dependency #7

Closed xlozinguez closed 9 years ago

xlozinguez commented 9 years ago

Hey @tmaximini,

It seems that if I edit my bower.json file to add http://libraries.io/bower/ng-cordova-http and I run bower install it does not actually add the file to the bower_components folder. Is that normal?

As a results, when running gulp, it fails to find the library...

Let me know,

Thanks again for your work,

Xavier

tmaximini commented 9 years ago

it is probably not a bower url. just do bower install ng-cordova-http --save and it will download the package and also persist the dependency in bower.json.

tmaximini commented 9 years ago

Also make sure you add any new 3rd party javascript (e.g. from an installed bower package) into vendor.json - the vendor.js file gets generated from the files listed in there.

xlozinguez commented 9 years ago

The issue seems to have been with bower cache... I cleaned up the cache and reinstalled the dependencies, added the package to the vendor.json and now it works :+1: Thanks a lot @tmaximini!