web前端开发包管理器bower[笔记]
Bower是用于web前端开发的包管理器。对于前端包管理方面的问题,它提供了一套通用、客观的解决方案。它通过一个API暴露包之间的依赖模型,这样更利于使用更合适的构建工具。Bower没有系统级的依赖,在不同app之间也不互相依赖,依赖树是扁平的。
Bower运行在Git之上,它将所有包都视作一个黑盒子。任何类型的资源文件都可以打包为一个模块,并且可以使用任何规范(例如:AMD、CommonJS等)。
安装
#安装bower npm install -g bower
基本用法
#安装包 bower install jqeury #指定版本 bower install jquery#1.10.3 #查找包 bower search jquery #卸载包 bower install jqeury
使用包
<script src="/bower_components/jquery/index.js"></script>
配置
配置文件.bowerrc
{ "directory" : "components", #指定安装路径 "json" : "bower.json", "endpoint" : "https://Bower.herokuapp.com", "searchpath" : "", "shorthand_resolver" : "" }
2021年1月09日 00:58
Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks. 토토사이트
2021年1月09日 13:57
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. 안전놀이터
2021年1月09日 23:24
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. 메이저놀이터
2021年1月09日 23:33
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! 토토사이트
2021年1月09日 23:39
Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. 안전놀이터
2021年1月12日 00:55
This is a splendid website! I"m extremely content with the remarks!. moviesflix net
2021年1月12日 13:49 I see some amazingly important and kept up to length of your strength searching for in your on the site Locksmith in Bet Shemesh
2024年1月13日 22:39
This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information