replace glob matching functionality

This commit is contained in:
Iuri Matias 2017-02-19 00:00:01 -05:00
parent 38c98f16fa
commit 19d35a563e
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/*global exit */
var path = require('path');
var grunt = require('grunt');
var globule = require('globule');
var merge = require('merge');
var http = require('http');
var shelljs = require('shelljs');
@ -10,11 +10,11 @@ function joinPath() {
}
function filesMatchingPattern(files) {
return grunt.file.expand({nonull: true}, files);
return globule.find(files, {nonull: true});
}
function fileMatchesPattern(patterns, intendedPath) {
return grunt.file.isMatch(patterns, intendedPath);
return globule.isMatch(patterns, intendedPath);
}
function recursiveMerge(target, source) {

View File

@ -25,7 +25,6 @@
"commander": "^2.8.1",
"finalhandler": "^0.5.0",
"fs-extra": "^2.0.0",
"grunt": "^1.0.1",
"merge": "^1.2.0",
"serve-static": "^1.11.1",
"shelljs": "^0.5.0",
@ -48,6 +47,7 @@
"homepage": "https://github.com/iurimatias/embark-framework",
"license": "MIT",
"devDependencies": {
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-jshint": "^1.0.0",
"grunt-mocha-test": "^0.13.2",