Wednesday, March 16, 2016

Add a .git repo to your bower.json as a component / dependency

Example, add picoFeed github repo to our project:


"dependencies": {
  "eonasdan-bootstrap-datetimepicker": "^4.17.37",
  "rsvp.js": "rsvp#^3.1.0",
  "gulp": "^3.9.1",
  "slick-carousel": "slick.js#^1.5.9",


  "picoFeedRepo":"https://github.com/fguillot/picoFeed.git"
}

Install using simple :

bower install picoFeedRepo 

:)


http://stackoverflow.com/questions/19348076/installing-a-dependency-with-bower-from-url-and-specify-version

http://stackoverflow.com/questions/16949173/how-to-install-latest-untagged-state-of-a-repo-using-bower


One thing to note:

Server side packages are usually delivered via composer, and bower is mostly used for client-side code (i.e.JS libraries)

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...