diff --git a/index.js b/index.js index d1b4127..878df43 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,10 @@ 'use strict'; -var multimatch = require('multimatch'); +var micromatch = require('micromatch'); +var unique = require('array-unique'); var findup = require('findup-sync'); -var path = require('path'); var resolve = require('resolve'); -var gutil = require('gulp-util'); +var logger = require('gulplog'); +var path = require('path'); function arrayify(el) { return Array.isArray(el) ? el : [el]; @@ -66,7 +67,7 @@ module.exports = function(options) { function logDebug(message) { if(DEBUG) { - gutil.log(gutil.colors.green('gulp-load-plugins: ' + message)); + logger.debug('gulp-load-plugins: ' + message); } } @@ -108,7 +109,7 @@ module.exports = function(options) { var scopeTest = new RegExp('^@'); var scopeDecomposition = new RegExp('^@(.+)/(.+)'); - multimatch(names, pattern).forEach(function(name) { + unique(micromatch(names, pattern)).forEach(function(name) { var decomposition; if(scopeTest.test(name)) { decomposition = scopeDecomposition.exec(name); diff --git a/package.json b/package.json index 642273d..e23bf9d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "test": "npm run lint && NODE_PATH=test/global_modules mocha", "lint": "eslint **/*.js" }, - "license": "mit", + "license": "MIT", "files": [ "index.js" ], @@ -32,14 +32,16 @@ "Connor Peet", "Dorian Camilleri", "Carlos Henrique", - "iamfrontender " + "iamfrontender ", + "Brian Woodward" ], - "license": "MIT", "dependencies": { - "findup-sync": "^0.2.1", + "array-unique": "^0.2.1", + "findup-sync": "^0.4.0", "gulp-util": "^3.0.7", - "multimatch": "2.0.0", - "resolve": "^1.1.6" + "gulplog": "^1.0.0", + "micromatch": "^2.3.8", + "resolve": "^1.1.7" }, "devDependencies": { "eslint": "^1.10.3",