Skip to content

Commit

Permalink
feat: support noInstall: true
Browse files Browse the repository at this point in the history
  • Loading branch information
soda-x committed Jun 5, 2015
1 parent c190c1a commit 8584155
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ Object.defineProperty(module.exports, 'getWebpackOpts', {

function getWebpackOpts(opts, callback) {
var cwd = opts.cwd = opts.cwd || process.cwd();
//opts.install true means install , opts.noInstall true means no-install
var noInstall = opts.noInstall || !opts.install;

log.config({quiet: opts.quiet, verbose: opts.verbose});

Expand All @@ -71,10 +73,9 @@ function getWebpackOpts(opts, callback) {

opts = getArgs(opts, pkg);


// Get deps to install.
var query = [];
if (pkg && pkg.spm && pkg.spm.dependencies) {
if (!noInstall && pkg && pkg.spm && pkg.spm.dependencies) {
for (var k in pkg.spm.dependencies) {
query.push(k+'@'+pkg.spm.dependencies[k]);
}
Expand Down

0 comments on commit 8584155

Please sign in to comment.