bower installs uikit source - bower

I used to install uikit (2.27.2) with a simple bower install uikit and I always got the compiled version. Now I cleared my bower cache and I get the uncompiled source (no css files, only less). Does anyone know why this is?
My current workaround is:
bower install https://github.com/uikit/bower-uikit.git

Related

How to make JSPM install Bower dependencies

For a while now, my client has been using some Node and Bower components to build projects. Whenever a new developer comes in, it's easy for that person to simply run
npm install
bower install
And then be ready to work.
We are working on a new project and this time we want to use JSPM instead of Bower. However, we want to leverage our existing private libraries (20+ of them) and we don't want to spend stupid amounts of time rewriting them. Plus they still need to work as regular Bower components for other projects.
So far, this worked. We used jspm-git to set the registry. However, JSPM fails in one regards: it does not install the Bower dependencies of those libraries it installed.
How would we go about that? I would love the other devs in the team to be able to check out the project and run
npm install
jspm install
And be on their way. It doesn't seem possible so far. Any set up we have forgotten? Any guidance will be greatly appreciated.
You need the jspm bower endpoint:
npm install jspm-bower-endpoint --save-dev
Then you need to register the bower endpoint with jspm:
jspm registry create bower jspm-bower-endpoint
Then you can install bower packages:
jspm install bower:angular-bootstrap-multiselect
Hope this helps :)
Just installed it successfully with jspm install npm:bootswatch, then required it in code with <require from="bootswatch/slate/bootstrap.min.css"></require>
Also posted this info on the bootswatch-dist project on github here: https://github.com/dbtek/bootswatch-dist/issues/32

Bower - Get only files needed (not entire Repo)

I am trying to use Bower to install jquery.
The frustrating problem I have been running into is that bower downloads the entire repro. I was hoping to tell bower to install a certain version of jquery and have only those files downloaded.
I did try the suggestion here with no luck. The entire repo is still downloaded even after clearing the bower cache
I would rather have something else manage which files to download than me manually specifying the file names in bower.json
bower.json in the repo : https://github.com/jquery/jquery/blob/master/bower.json
Thank you
I think you didn't unterstand the meening of bower:
Bower is handling you dependencys, so if you do a:
bower install jquery
it should download all files.
Now to you question:
you have following options:
declare wich file you want to download:
bower install http://code.jquery.com/jquery-2.1.0.min.js
but remember:
this file cant be updated easily
search for a js only package:
expample with bootstrap:
bower install bootstrap-css-only
but remember:
these packages sometimes are not up to date
use bower-installer (recommended):
install the bower-installer:
npm install bower-installer --global
and now follow the tutorial:
bower-installer github
sorry for my bad english :-)

Why does bower install github/repo not clone my bower.json?

When I install a library from a git repo via:
bower install git#github.com:fabiantheblind/p5.js.git --save
the component gets cloned into my bower_components but there is no bower.json in the folder. Just a .bower.json.
Why is that so and how can I fix this?
I also get the output:
bower invalid-meta p5.js is missing "main" entry in bower.json
bower invalid-meta p5.js is missing "ignore" entry in bower.json
But the entries are there.
(The final aim is to use grunt-wiredep to install dependencies automagically. See my open issue here )
Okay. After fiddeling a bit more I got the answer:
My clone of the repo had the bower.json but I did not create a tag for it. So bower was still looking at the latest tag 0.3.6 where no bower.json was present.
By creating the tag 0.3.7 the problem is solved.

Book Mastering Grunt Chapeter 1 Bower problems

When I try the examples from the book i get lots of error and nothing gets installed. What am I missing, when looking for examples on the the internet my bower.json looks ok.
Se this link for code and more info:
This is a known issue with a tmp dependency. Bower has since been updated though to fix it (build 1.3.8). I see you still have an older version. Please run
npm update -g bower
to update bower to the final release and try again.

Error installing core-elements and polymer-ui-elements

I was installing the polymer on my windows 8 pc by taking tutorials from tutplus. I was able to install Polymer/platform and Polymer/polymer using bower.
Now, I wanted to install the core-elements and polymer-ui-elements but every time when I do:
bower install Polymer/core-elements
bower install Polymer/polymer-ui-elements
The command line hangs up for a minute and then gives the error:
FATAL ERROR: JS Allocation failed - process out of memory
How to overcome this error?
This is from Installing Polymer through bower freezes
======================
according to http://github.com/bower/bower/issues/1324 there is a workaround.
edit bower.json by adding in a line so the dependency area looks like this
dependencies": {
"polymer": "Polymer/polymer#~0.3.1",
"core-elements": "Polymer/core-elements"
}
then run $ bower update
you can add other packages, too.
I'm actually brand new to polymer (had trouble installing it, as you can imagine) so I'm not positive this works.

Resources