Questions tagged [main-bower-files]

16 questions
17
votes
1 answer

How to move from Bower to Npm using main-bower-files?

As bower slowly 'shuts down' I am finding it very difficult to migrate from bower to npm. I managed to get the DEV packages downloaded but I cannot seem to figure out how to use equivalent to 'main-bower-files' for npm. I found something similar…
webkitfanz
  • 1,305
  • 1
  • 16
  • 29
3
votes
0 answers

Can't get .scss file out of gulp-main-bower-files

I am using the gulp-main-bower-files plug-in to get the main scss file out of the bootstrap-sass folder. Here is my task code: gulp.task('bower-scss', function() { var scssFilter = gulpFilter(['**/**/.scss']); return…
freetoplay
  • 657
  • 2
  • 8
  • 23
1
vote
0 answers

installed bower how to use it

I have installed bower through Solutions Package Manager in VS 2017. I obviously want to use it. I'm confused because that only created cmd files (node, bower & git) in a new .bin folder. No components folder or json or anything else. Shall I run…
nickornotto
  • 1,946
  • 4
  • 36
  • 68
1
vote
2 answers

Gulp not creating JS and CSS files using main-bower-files

I am using Gulp to concatenate/minify all JS/CSS files from the bower folder (using main-bower-files) and src folder respectively. I am using gulp-load-plugins to load the following dependencies from package.json (all of which exist in…
Chad Mueller
  • 77
  • 3
  • 10
1
vote
1 answer

Why doesn't gulp find my bootstrap css files?

My gulp file has this in it: gulp.task('bower2',function () { return gulp.src(mainBowerFiles('**/*.css'), {debugging:true}) .pipe(gulp.dest(dist_path+'/styles')) ; }); But it's not finding the CSS files, none of them. I've been…
Nick Jacobs
  • 579
  • 2
  • 9
  • 29
1
vote
2 answers

Exclude a folder from main-bower-files

How do I filter out an entire folder from the main-bower-files? For example, if I'm doing this mainBowerFiles('**/jquery-validation/**'), it returns only the files from the jquery-validation folder, but I need the opposite. I've tried…
Zabavsky
  • 13,340
  • 8
  • 54
  • 79
0
votes
1 answer

How to gulp and concatenate bower css files

Using our gulp script, we want to create different compiled & minified css files for vendor (via bower, see screenshot) and custom styles. Our task for the vendor styles does not work as expected, though. We expected it to iterate through the…
Patrick Manser
  • 1,133
  • 2
  • 12
  • 31
0
votes
1 answer

GULP: main-bower-files missing some files

I'm using main-bower-files to get files via gulp to a certain folder. But certain css files are missing, even though they are inside bower_components folder. For example CSS file viewer.css from "pdf.js-viewer" is not copied even though .js file…
trainoasis
  • 6,419
  • 12
  • 51
  • 82
0
votes
1 answer

Angulajs-gauge component is in bower.json but doesn't wire over to index.html

I have installed angularjs-gauge component using bower. You can see it shows up in my bower.json below { "name": "triangular", "version": "0.0.0", "dependencies": { "jquery": "^3.2.1", "angular": "1.5.8", "angular-animate":…
0
votes
1 answer

Gulp: SyntaxError: Unexpected end of JSON input

I have an AngularJS app, for which I use bower, npm and gulp. This code was working few days ago, not sure why but I'm getting the below when I do the gulp command: gulp minifycss; Error: SyntaxError: Unexpected end of JSON input at Object.parse…
user6650906
0
votes
1 answer

Gulp and Bower - creating proper files structure

I'm adding Bower to project which is using Gulp already. My folder structure is like: |- bower_components | |- dependency1 | | |- dist | | |- lib1.js | | |- lib1.min.js | | | |- dependency2 | |- core | …
marverix
  • 7,184
  • 6
  • 38
  • 50
0
votes
1 answer

How are the bower dependencies in jHipster organized?

I want to integrate highstock (highstock.js in highcharts) into my jHipster project. Hence I added the following to my bower.json: "dependencies": { "highcharts" : "4.2.6", "highcharts-ng": "0.0.12" }, "overrides": { "highcharts-ng": { …
Thailer
  • 15
  • 6
0
votes
1 answer

How to parse path dynamically in gulp.src.options.base

I'm trying to write gulp-based application using main-bower-files. I want to copy all my and vendor assets files to %build_dir%/assets folder, but fonts files should be copied in %build_dir%/assets/fonts. Without vendor files it can be done easy via…
Boris Parnikel
  • 863
  • 1
  • 7
  • 15
0
votes
1 answer

Import all bower packages

I want to be able to import all bower packages. I've seen that it is possible by getting the JSON out of http://bower-component-list.herokuapp.com/ . Unfortunately, this link is no longer maintained. Is there any other way/link? Thanks.
Asaf Savich
  • 623
  • 1
  • 9
  • 29
0
votes
1 answer

Bower. How to set base forder for main directories?

I override the main directories for the Bootstrap in bower.json: "main" : [ "./dist/css/bootstrap.css", "./dist/css/bootstrap.css.map", "./dist/css/bootstrap-theme.css", …
Denis535
  • 3,407
  • 4
  • 25
  • 36
1
2