9

我的Bower笔记

 3 years ago
source link: https://yanhaijing.com/tool/2016/01/18/my-bower-note/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
我的Bower笔记
18 January 2016
号外号外:我的新书《React状态管理与同构实战》出版啦!!!快点我查看

Bower是一款针对浏览器端的库管理工具,本文将记录bower的一些常用内容。

230.jpg

Bower基于node.js,所以安装之前,必须先确保已安装node.js

npm install bower -g

安装好后运行下面的命令可以看到版本号

bower -v

查看帮助文档

bower help

接下来记录一些常用操作命令

bower init # 初始化
bower install # 安装bower依赖
bower install backbone[#1.11.3] # 安装一个具体的库[指定版本]
bower uninstall jquery # 卸载
bower update jquery # 更新	
bower list # 列出全部的库

bower search jquery # 搜索
bower info jquery # 查看一个库的具体信息

bower register jquery git://github.com/jquery/jquery # 注册一个包

目前bower基本已经过时了,记录一下供自己使用吧。

原文网址:http://yanhaijing.com/tool/2016/01/18/my-bower-note/

微信公众号:颜海镜关注微信公众号 颜海镜微信支付二维码赞赏支持 微信扫一扫

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK