Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where should I put bower.json?

So, I'm using bower 1.2.2 to manage my client side libraries for the first time. My app is a simple node app, and I can't decide where to initialize bower. Here's my file structure:

|____gruntfile.js
|____package.json
|____server.js
|____static
| |____index.html

Should I initialize bower in the root next to gruntfile.js and package.json, or should I do it in my static directory. Any advice is greatly appreciated!

like image 839
Dan Quinn Avatar asked Nov 12 '22 23:11

Dan Quinn


1 Answers

IMHO you can have that on the root where other tasks files are added. This way your bower_components will also reside on the root folder along with node_modules.

like image 194
V31 Avatar answered Nov 14 '22 22:11

V31