bee icon indicating copy to clipboard operation
bee copied to clipboard

Best practice with bower_components

Open digitalcraftsman opened this issue 11 years ago • 2 comments

I use Bower to use my dependencies in my beego app. The /static directory already contains a structure for imgs, css etc. Bower stores usually the files of each dependencie e.g. Bootstrap 3 in /bower_components, but this behavior would break the default folder structure of beego?

Has anyone a good idea to combine both?

digitalcraftsman avatar Feb 10 '15 21:02 digitalcraftsman

use multiple static folder? beego.StaticDir["/bower_install"] = "bower_components" beego.StaticDir["/my_public_html"] = "public"

ws6 avatar Apr 07 '15 16:04 ws6

Thanks for this approach in beego. Since I tried gulp.js for automatisation-purposes I will move the necessary file from the bower_components folder into one named public.

This allows me to ignore the bower_components for commits with the .gitignore file. Thanks anywaay ;)

digitalcraftsman avatar Apr 07 '15 16:04 digitalcraftsman