看代码学bower

npm install -g bower
bower install 
$ bower help
Usage:

    bower  [] []

Commands:

    cache                   Manage bower cache
    help                    Display help information about Bower
    home                    Opens a package homepage into your favorite browser
    info                    Info of a particular package
    init                    Interactively create a bower.json file
    install                 Install a package locally
    link                    Symlink a package folder
    list                    List local packages
    lookup                  Look up a package URL by name
    prune                   Removes local extraneous packages
    register                Register a package
    search                  Search for a package by name
    update                  Update a local package
    uninstall               Remove a local package

Options:

    -f, --force             Makes various commands more forceful
    -j, --json              Output consumable JSON
    -l, --log-level         What level of logs to report
    -o, --offline           Do not hit the network
    -q, --quiet             Only output important information
    -s, --silent            Do not output anything, besides errors
    -V, --verbose           Makes output more verbose
    --allow-root            Allows running commands as root

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

如何使用bower呢?


比如:


    
    
        Learning Bower
    
    

    
    

你可能感兴趣的:(看代码学bower)