M
M
Maxim Kuznetsov2016-08-22 04:28:05
gulp.js
Maxim Kuznetsov, 2016-08-22 04:28:05

How to cook bower?

Here I install packages via bower
bower install angular-file-upload
bower install angular-ui-router
bower install angular-cookies

I have them installed
bower_components/angular-file-upload
bower_components/angular-ui-router
bower_components/angular-cookies

inside folders
bower_components/angular-file-upload/dist/angular-file-upload.js
bower_components/angular-ui-router/release/angular-ui-router.js
bower_components/angular-cookies/angular-cookies.js

Include in paths like this, looks crooked. I want everything to be more or less adequate. Need to write some specific bower config? or is it supposed to resolve gulp? or somehow differently?
Something tells me that since I expect one minified JS at the output, without manual work, in the absence of agreements in compiling the package structure, I can’t do it, but I want to understand at what stage and which path is the most correct.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HamSter, 2016-08-22
@HamSter007

Another option is wiredep , which itself pulls styles and scripts from bower.

A
Alexey Ukolov, 2016-08-22
@alexey-m-ukolov

Need to write some specific bower config? or is it supposed to resolve gulp? or somehow differently?
Collect as you wish, it depends on your needs and preferences. If you want automation, there is a special tool , but many packages need to be tuned in configs, because they are crookedly configured by the author.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question