Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[config] Support `--no-analyze`/`--analyze` options

Fixes #119.
  • Loading branch information...
commit f07bf6eeca785e81ff5b539a04477e27adb96cac 1 parent 970ee26
@mmalecki mmalecki authored Marak committed
Showing with 5 additions and 2 deletions.
  1. +1 −0  lib/jitsu/config.js
  2. +4 −2 lib/jitsu/package.js
View
1  lib/jitsu/config.js
@@ -34,6 +34,7 @@ var defaults = {
'tmproot': '/tmp',
'tar': 'tar',
'colors': true,
+ 'analyze': true,
'gzipbin': 'gzip'
};
View
6 lib/jitsu/package.js
@@ -456,7 +456,9 @@ function tryAnalyze (target, dir, callback) {
}
var resolve = jitsu.config.get('resolveDependencies'),
- noanalyze = (jitsu.config.get('noanalyze') === 'true') || optimist.argv.noanalyze,
+ noanalyze = !(jitsu.config.get('analyze'))
+ || (jitsu.config.get('noanalyze') === 'true')
+ || optimist.argv.noanalyze,
analyze = typeof resolve === 'undefined'
? !noanalyze
: !resolve;
@@ -524,4 +526,4 @@ function fillPackage (base, dir, callback) {
callback(false, result);
});
});
-}
+}

0 comments on commit f07bf6e

Please sign in to comment.
Something went wrong with that request. Please try again.