Add -n/--no-dep build option.

Former-commit-id: 57571d0df4e17402b9055bae5ccfbc2b94f03613
This commit is contained in:
John-David Dalton
2013-04-14 00:42:09 -07:00
parent ba0882762d
commit 5d73c8f002
2 changed files with 52 additions and 11 deletions

View File

@@ -1270,7 +1270,35 @@
/*--------------------------------------------------------------------------*/
QUnit.module('output options');
QUnit.module('nodep option');
(function() {
var commands = [
'-n',
'--no-dep'
];
commands.forEach(function(command) {
asyncTest('`lodash modern include=each ' + command +'`', function() {
var start = _.after(2, _.once(QUnit.start));
build(['-s', 'modern', 'include=each', command], function(data) {
var basename = path.basename(data.outputPath, '.js'),
context = createContext();
vm.runInContext(data.source, context);
var lodash = context._;
deepEqual(_.functions(lodash), ['each', 'forEach'], basename);
start();
});
});
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('output option');
(function() {
var nestedPath = path.join(__dirname, 'a', 'b');
@@ -1311,7 +1339,7 @@
/*--------------------------------------------------------------------------*/
QUnit.module('stdout options');
QUnit.module('stdout option');
(function() {
var commands = [