mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Ensure the csp build is an alias of the mobile.
Former-commit-id: defb0a7d28cb3ff9d799dcbaceef3175f78531e9
This commit is contained in:
4
build.js
4
build.js
@@ -1390,10 +1390,10 @@
|
||||
var isMinify = options.indexOf('-m') > -1 || options.indexOf('--minify') > -1;
|
||||
|
||||
// flag to specify a mobile build
|
||||
var isMobile = options.indexOf('mobile') > -1;
|
||||
var isMobile = isCSP || options.indexOf('mobile') > -1;
|
||||
|
||||
// flag to specify a modern build
|
||||
var isModern = isCSP || isMobile || options.indexOf('modern') > -1;
|
||||
var isModern = isMobile || options.indexOf('modern') > -1;
|
||||
|
||||
// flag to specify a modularize build
|
||||
var isModularize = options.indexOf('modularize') > -1;
|
||||
|
||||
@@ -1093,6 +1093,24 @@
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest('`lodash csp`', function() {
|
||||
var sources = [];
|
||||
|
||||
var check = _.after(2, _.once(function() {
|
||||
equal(sources[0], sources[1]);
|
||||
QUnit.start();
|
||||
}));
|
||||
|
||||
var callback = function(data) {
|
||||
// remove copyright header and append source
|
||||
sources.push(data.source.replace(/^\/\**[\s\S]+?\*\/\n/, ''));
|
||||
check();
|
||||
};
|
||||
|
||||
build(['-s', '-d', 'csp'], callback);
|
||||
build(['-s', '-d', 'mobile'], callback);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user