Installing an internal library via bower - bower

We have an internal library that can be installed via bower install git link. How do I add the git link inside the bower.json file so that when I run bower install, it will install it too?

Didn't know it was easy. I just reinstalled it with --save and it updated my bower.json file. Now I know how it looks like inside the bower.json file.

Related

laravel - install datatable and toastr plugin

I want to use datatable and toastr plugins on my project using laravel as my framework. should i include these on bower.json file? if so, what value should I put?
I can do this manually via bower install (git location) on the command prompt though, but I'm just wondering if I can do this on bower.json file so that I can just do the bower install command.
If you want to simply add them to the bower.json file, you can add them to dependencies like such:
{
"name": "your-application-name",
"dependencies": {
"toastr": "^2.1.3",
"datatables.net": "^1.10.16"
}
}
If you're still interested in saving them to the bower.json file from the command line, you can do it by including the --save flag to your install command:
$ bower install --save toastr
$ bower install --save datatables.net
That will download the components as well as add them to the bower.json file.

Bower packages don't install

I am trying to install bower packages, in the site of bower is written I must install them following way:
bower install <package>
But it doesn't want to install this kinda way. Instead,it tells me something like:
ENOGIT git is not installed or not in the PATH
How to deal with this kinda problem?
Thank you.
you have to install git, some package in bower depend on git to be installed

Bower install jquery-ui missing gruntfile

When I do a bower install jquery-ui --save , bower_modules/jquery-ui is created.
This repo does not contain the Gruntfile.js
Does bower install delete files from the repo?
Is there a way to configure this?
The jquery-ui used by this bower package points to https://github.com/components/jqueryui and not to https://github.com/jquery/jquery-ui
This repo only contains the precompiled files from jquery-ui.

can't install bower package because there seems to be a duplicate

I wanted to install the backbone.routefilter plugin via Bower. It looks like there are 2 projects with that same name. http://sindresorhus.com/bower-components/#!/search/routefilter.
When I try to bower install backbone.routefilter#0.2.0 it tries to install 0.2.0 version from wanderer I want the latest from boazsender. Is there anyway to tell bower which repo to use?
That one seems to be wrongly registered. Use the correct one instead:
bower install backbone.routefilter

bower automatically update bower.json

I run the following commands using bower 1.0.0:
mkdir testdir;cd testdir
bower init #accept defaults
bower install jquery -s #the -s is supposed to cause update of bower.json
less bower.json
In bower.json I expect to see dependencies listed, but there are none. What is going on?
NOTE: bower install jquery --save does work
NOTE:
The option I am referring to was documented through bower help install
**-S**, --save Save installed packages into the project's bower.json dependencies
from bower help, save option has a capital S
-S, --save Save installed packages into the project's bower.json dependencies

Resources