Skip to content

Commit

Permalink
Update dependencies to match gulp 4 (#108)
Browse files Browse the repository at this point in the history
* update dependencies

* use micromatch
use fancy-log

* using `gulplog`
adding myself to contributors list

* revert DEBUG changes per comments.
  • Loading branch information
doowb authored and jackfranklin committed May 9, 2016
1 parent 229d574 commit 1c080cd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
11 changes: 6 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -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];
Expand Down Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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);
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "npm run lint && NODE_PATH=test/global_modules mocha",
"lint": "eslint **/*.js"
},
"license": "mit",
"license": "MIT",
"files": [
"index.js"
],
Expand All @@ -32,14 +32,16 @@
"Connor Peet",
"Dorian Camilleri",
"Carlos Henrique",
"iamfrontender <iamfrontender@gmail.com>"
"iamfrontender <iamfrontender@gmail.com>",
"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",
Expand Down

0 comments on commit 1c080cd

Please sign in to comment.