PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
commands
var endpointParser = require('bower-endpoint-parser'); var Project = require('../core/Project'); var defaultConfig = require('../config'); function install(logger, endpoints, options, config) { var project; var decEndpoints; options = options || {}; config = defaultConfig(config); if (options.save === undefined) { options.save = config.defaultSave; } project = new Project(config, logger); // Convert endpoints to decomposed endpoints endpoints = endpoints || []; decEndpoints = endpoints.map(function(endpoint) { // handle @ as version divider var splitParts = endpoint.split('/'); splitParts[splitParts.length - 1] = splitParts[ splitParts.length - 1 ].replace('@', '#'); endpoint = splitParts.join('/'); return endpointParser.decompose(endpoint); }); return project.install(decEndpoints, options, config); } // ------------------- install.readOptions = function(argv) { var cli = require('../util/cli'); var options = cli.readOptions( { 'force-latest': { type: Boolean, shorthand: 'F' }, production: { type: Boolean, shorthand: 'p' }, save: { type: Boolean, shorthand: 'S' }, 'save-dev': { type: Boolean, shorthand: 'D' }, 'save-exact': { type: Boolean, shorthand: 'E' } }, argv ); var packages = options.argv.remain.slice(1); delete options.argv; return [packages, options]; }; module.exports = install;
[-] home.js
[edit]
[-] lookup.js
[edit]
[+]
..
[+]
cache
[-] link.js
[edit]
[-] install.js
[edit]
[-] login.js
[edit]
[-] info.js
[edit]
[-] uninstall.js
[edit]
[-] init.js
[edit]
[-] prune.js
[edit]
[-] search.js
[edit]
[-] list.js
[edit]
[-] index.js
[edit]
[-] update.js
[edit]
[-] help.js
[edit]
[-] unregister.js
[edit]
[-] register.js
[edit]
[-] version.js
[edit]