Where should I put bower.json?

So, I'm using bower 1.2.2 to manage my client libraries for the first time. My application is a simple node application, and I cannot decide where to initialize the conversation. Here is my file structure:

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

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

+4
source share
1 answer

IMHO you can have this at the root where other task files are added. That way your bower_components will also be in the root folder along with node_modules.

+1
source

Source: https://habr.com/ru/post/1496957/


All Articles