mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Adjust iife build test and add strict build tests.
Former-commit-id: 1422311e7c7106e7def75b7b75800975c59127ff
This commit is contained in:
@@ -1038,8 +1038,8 @@
|
|||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var commands = [
|
var commands = [
|
||||||
'iife=this["lodash"]=(function(window,undefined){%output%;return lodash}(this))',
|
'iife=this["lodash"]=(function(window){%output%;return lodash}(this))',
|
||||||
'iife=define(function(window,undefined){return function(){%output%;return lodash}}(this));'
|
'iife=define(function(window){return function(){%output%;return lodash}}(this));'
|
||||||
];
|
];
|
||||||
|
|
||||||
commands.forEach(function(command) {
|
commands.forEach(function(command) {
|
||||||
@@ -1216,7 +1216,7 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
commands.forEach(function(origCommand) {
|
commands.forEach(function(origCommand) {
|
||||||
_.times(4, function(index) {
|
_.times(5, function(index) {
|
||||||
var command = origCommand;
|
var command = origCommand;
|
||||||
|
|
||||||
if (index == 1) {
|
if (index == 1) {
|
||||||
@@ -1225,13 +1225,19 @@
|
|||||||
}
|
}
|
||||||
command = 'mobile ' + command;
|
command = 'mobile ' + command;
|
||||||
}
|
}
|
||||||
if (index == 2) {
|
else if (index == 2) {
|
||||||
if (/legacy|modern/.test(command)) {
|
if (/legacy|modern/.test(command)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
command = 'modern ' + command;
|
command = 'modern ' + command;
|
||||||
}
|
}
|
||||||
if (index == 3) {
|
else if (index == 3) {
|
||||||
|
if (/strict/.test(command)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
command = 'strict ' + command;
|
||||||
|
}
|
||||||
|
else if (index == 4) {
|
||||||
if (/category|legacy|underscore/.test(command)) {
|
if (/category|legacy|underscore/.test(command)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user