angularjs - Do I need to install bower components each time I create project -
angularjs - Do I need to install bower components each time I create project -
do need install bower components each time create angular project in webstorm?
i created 2 projects , installed bower components separately each time. believe there must other method this.
each project should have own dependencies, isn't it? main thought of frontend bundle managers "setup dependence locally".
frontend bit different backend, may read article bower: why front-end needs bundle manager understand why things so.
another thought of bower - maintain in vcs(git, etc) bower.json. when man team download project, should thing - create bower install
, bower download dependencies project (he didn't want know other projects)
there no point install deps 1 time project, cause frontend, not backend.
one of best practice frontend - concat .js , .css files 1 huge javascript file (and 1 css). in mutual way when this, should specify project js dirs. belive these big files should uniq each project.
p.s. if still want utilize bower in global way, may specify bower's setup dir in .bowerrc
file:
``` { "directory" : "../my_global_libs" }
```
and setup projects into. (and may concat lib, take grunt or gulp)
angularjs bower webstorm
Comments
Post a Comment