前端解决方案:bower实践

来源:互联网 发布:heroku 域名 编辑:程序博客网 时间:2024/06/10 03:17

测试:

1.mkdir bower-in-action 项目名

2.mkdir jquery-bootstrap-in-action

3.安装 jquery: bower install jquery

4.安装bootstrap: bower install bootstrap


bower多种案装:

1.github的短语安装: bower install jquery/jquery

2.http安装   :bower install url


没有在github上

3.bower install url :直接url进行安装


bower配置文件:

bower.json: bower init :即可生成该文件,下载的项目可以运行 bower install 来安装项目库


bowerrc:

{
"directory": "bower_components",

"proxy":"http://prowxy.tencent.com:8080",

"https-proxy":"https://proxy.tencent.com:8080",

"timeout":6000ms

}









0 0
原创粉丝点击