Hi,I don’t know if I am in the right category to ask about bower,…I just want to ask to enlighten my mind what is the purpose of bower ?is this different in the composer ?
Thank you in advance.
Hi,I don’t know if I am in the right category to ask about bower,…I just want to ask to enlighten my mind what is the purpose of bower ?is this different in the composer ?
Thank you in advance.
@jemz Check out Getting Started with Bower!
Bower is a front-end package manager, whereas composer (php) or npm (for node) are primarily backend focused.
Thank you for the quick reply. Okay I see.thank you for this
Hi jemz,
toddsby has already pointed you at an excellent resource, but just to expand a little further:
You can kind of think of bower as an interface to GitHub
You install it via npm and employ it on a project to project basis.
So say you have a new project and you need jQuery:
mkdir project && cd project
bower install jquery
This will create a folder in the project root entitled bower_components
into which bower will download the jquery library, as well as all of its individual components. Try it out.
What I then tend to do is to extract the files I need into my project (so in this case I would move /bower_components/jquery/dist/jquery.min.js
to /js/jquery.min.js
).
I exclude the bower_components folder from my version control.
Thank you pullo it works
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.