-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This module is not using the vast majority of Lodash's functions. The small handful used can be replaced by more targeted dependencies that still supports the full range of Node.js versions gulp-uglify supports. Bug: #351
- Loading branch information
1 parent
bcdda44
commit a56d1c7
Showing
5 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
'use strict'; | ||
var hasLog = require('has-gulplog'); | ||
var each = require('lodash/fp/forEach'); | ||
var each = require('array-each'); | ||
|
||
var levels = ['debug', 'info', 'warn', 'error']; | ||
|
||
each(function(level) { | ||
each(levels, function(level) { | ||
module.exports[level] = function() { | ||
if (hasLog()) { | ||
var log = require('gulplog'); | ||
|
||
log[level].apply(log, arguments); | ||
} | ||
}; | ||
}, levels); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,11 @@ | |
"author": "Terin Stock <[email protected]>", | ||
"bugs": "https://github.com/terinjokes/gulp-uglify/issues", | ||
"dependencies": { | ||
"array-each": "^1.0.1", | ||
"extend-shallow": "^3.0.2", | ||
"gulplog": "^1.0.0", | ||
"has-gulplog": "^0.1.0", | ||
"lodash": "^4.13.1", | ||
"isobject": "^3.0.1", | ||
"make-error-cause": "^1.1.1", | ||
"safe-buffer": "^5.1.2", | ||
"through2": "^2.0.0", | ||
|
@@ -21,7 +23,6 @@ | |
"eslint-plugin-no-use-extend-native": "^0.3.12", | ||
"eslint-plugin-prettier": "^2.0.1", | ||
"eslint-plugin-unicorn": "^2.1.0", | ||
"intelli-espower-loader": "^1.0.1", | ||
"power-assert": "^1.4.1", | ||
"prettier": "^1.1.0", | ||
"source-list-map": "^1.1.2", | ||
|
@@ -70,7 +71,7 @@ | |
], | ||
"scripts": { | ||
"lint": "eslint *.js lib test", | ||
"test": "tape --require intelli-espower-loader test/*.js" | ||
"test": "tape test/*.js" | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
|