How to work with bower in php?

Apologies, published initially as a post.

Ask to help to understand how to work with bower to manually drag dependencies in your project on Symfony tired, stumbled upon the bower, but there are a few unclear points:
  • If you first install the required packages, and then initialize bower project has the opportunity machine add packages to the dependencies. And in the future only manually edit the bower.json?
  • Also can't exactly build a case use bower packages are added in ./bower_components, and how to use them in the project in the same Symfony? Don't register the same way in the project ./bower_components/bla-bla/ololo.js ?
October 3rd 19 at 03:32
1 answer
October 3rd 19 at 03:34
.bowerrc (local settings bower)
 "directory": "path/to/assets"

bower.json (bower install whatever --save will install the package and keep the dependency)

Collect often GruntJS
And advise the tutorial, examples of some? For me, this really dark forest, but to connect tons of js files in the templates anymore. - moses.Glov commented on October 3rd 19 at 03:37
1. All this economy will require node and packets (less, uglifyjs, etc.). You should start with the settings npmrc (documentation). It is necessary to specify prefix, to register the bin to PATH and configure a cache according to the XDG (the latter is very desirable).
2. Configuring bower (readme + bowerrc (section Configuration))
3. GruntJS is have lessons.

How will you organize the project (glue scripts, styles, and beneficiality or module to load is up to you) - tyshawn70 commented on October 3rd 19 at 03:40
nodejs, npm is not without problems, but set up for gruntJS thank you. I'll figure it out. - moses.Glov commented on October 3rd 19 at 03:43

Find more questions by tags JavaScript