most easy way to use bower
most front-end artist are using bower to create thier project. it's a very easy way to include manage your vendors. so here's the most easy usage of it.
First you need thinking it like a tool which can help you to download and arrange your js and css files which you want to include from other place.
and then install it. just do this on your temianl or comand line
$ npm install -g bower
you just intalled bower globlely.
when you using it you should into your project directory. such as your has a directory named 'project1' and you should do
cd ~/project1
then you can install(download) any javascript or css libarary you want.
when you do
bower install jquery
it will create a hirechy like this
pic
open the 'bower_components' you can see jquery is there.
then introduce jquery using script like before.
posted on 2016-08-03 17:29 Vitalitycn 阅读(135) 评论(0) 编辑 收藏 举报