diff --git a/lib/shared/is-string.js b/lib/shared/is-string.js new file mode 100644 index 00000000..f0026b3b --- /dev/null +++ b/lib/shared/is-string.js @@ -0,0 +1,7 @@ +'use strict'; + +function isString(val) { + return (typeof val === 'string'); +} + +module.exports = isString; diff --git a/lib/shared/log/tasks.js b/lib/shared/log/tasks.js index 7d311fe3..b938bcf9 100644 --- a/lib/shared/log/tasks.js +++ b/lib/shared/log/tasks.js @@ -5,9 +5,10 @@ var chalk = require('chalk'); var log = require('gulplog'); var sortBy = require('lodash.sortby'); -var isString = require('lodash.isstring'); var isObject = require('lodash.isplainobject'); +var isString = require('../is-string'); + function logTasks(tree, depth, getTask) { depth = (typeof depth !== 'number') ? null : ((depth < 1) ? 1 : depth); diff --git a/lib/versioned/^3.7.0/index.js b/lib/versioned/^3.7.0/index.js index d6ccc326..bca1d402 100644 --- a/lib/versioned/^3.7.0/index.js +++ b/lib/versioned/^3.7.0/index.js @@ -4,10 +4,10 @@ var chalk = require('chalk'); var log = require('gulplog'); var stdout = require('mute-stdout'); var tildify = require('tildify'); -var isString = require('lodash.isstring'); var taskTree = require('./taskTree'); var logTasks = require('../../shared/log/tasks'); +var isString = require('../../shared/is-string'); var logEvents = require('./log/events'); var logTasksSimple = require('./log/tasksSimple'); var registerExports = require('../../shared/registerExports'); diff --git a/lib/versioned/^4.0.0-alpha.1/index.js b/lib/versioned/^4.0.0-alpha.1/index.js index 9788e8be..c47f3efa 100644 --- a/lib/versioned/^4.0.0-alpha.1/index.js +++ b/lib/versioned/^4.0.0-alpha.1/index.js @@ -6,9 +6,9 @@ var log = require('gulplog'); var chalk = require('chalk'); var stdout = require('mute-stdout'); var tildify = require('tildify'); -var isString = require('lodash.isstring'); var exit = require('../../shared/exit'); +var isString = require('../../shared/is-string'); var logTasks = require('../../shared/log/tasks'); var logEvents = require('../^4.0.0/log/events'); diff --git a/lib/versioned/^4.0.0-alpha.2/index.js b/lib/versioned/^4.0.0-alpha.2/index.js index 783071d6..987c07a6 100644 --- a/lib/versioned/^4.0.0-alpha.2/index.js +++ b/lib/versioned/^4.0.0-alpha.2/index.js @@ -6,9 +6,9 @@ var log = require('gulplog'); var chalk = require('chalk'); var stdout = require('mute-stdout'); var tildify = require('tildify'); -var isString = require('lodash.isstring'); var exit = require('../../shared/exit'); +var isString = require('../../shared/is-string'); var logTasks = require('../../shared/log/tasks'); var logEvents = require('../^4.0.0/log/events'); diff --git a/lib/versioned/^4.0.0/index.js b/lib/versioned/^4.0.0/index.js index 042cb04e..c34c431b 100644 --- a/lib/versioned/^4.0.0/index.js +++ b/lib/versioned/^4.0.0/index.js @@ -6,9 +6,9 @@ var log = require('gulplog'); var chalk = require('chalk'); var stdout = require('mute-stdout'); var tildify = require('tildify'); -var isString = require('lodash.isstring'); var exit = require('../../shared/exit'); +var isString = require('../../shared/is-string'); var logTasks = require('../../shared/log/tasks'); var logEvents = require('./log/events'); diff --git a/lib/versioned/^4.0.0/log/getTask.js b/lib/versioned/^4.0.0/log/getTask.js index e437663a..985278b1 100644 --- a/lib/versioned/^4.0.0/log/getTask.js +++ b/lib/versioned/^4.0.0/log/getTask.js @@ -1,9 +1,10 @@ 'use strict'; -var isString = require('lodash.isstring'); var isObject = require('lodash.isplainobject'); var isFunction = require('lodash.isfunction'); +var isString = require('../../../shared/is-string'); + function getTask(gulpInst) { return function(name) { var task = gulpInst.task(name); diff --git a/package.json b/package.json index eeb8857f..4f7978e3 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ "liftoff": "^2.3.0", "lodash.isfunction": "^3.0.8", "lodash.isplainobject": "^4.0.4", - "lodash.isstring": "^4.0.1", "lodash.sortby": "^4.5.0", "matchdep": "^1.0.0", "mute-stdout": "^1.0.0",