码迷,mamicode.com
首页 > Web开发 > 详细

前端js管理利器Bower

时间:2014-10-27 19:46:29      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:bower js包管理

项目地址: http://bower.io/

bower 框架搜索地址:http://bower.io/search/


Install Bower

Bower is a command line utility. Install it with npm.

$ npm install -g bower

Bower requires Node and npm and Git.

Getting started

Install packages

Install packages with bower install. Bower installs packages to bower_components/.

$ bower install <package>

A package can be a GitHub shorthand, a Git endpoint, a URL, and more. Read more about bower install.

# registered package$ bower install jquery# GitHub shorthand$ bower install desandro/masonry# Git endpoint$ bower install git://github.com/user/package.git# URL$ bower install http://example.com/script.js

Search packages

Search Bower packages and find the registered package names for your favorite projects.

Save packages

Save your packages to bower.json with bower init.

Use packages

How you use packages is up to you. Use Bower together with Grunt, RequireJS, Yeoman, and lots of other tools or build your own workflow with the API.


前端js管理利器Bower

标签:bower js包管理

原文地址:http://power9li.blog.51cto.com/8267716/1568511

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!