mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-26 15:12:05 +00:00
replace glob matching functionality
This commit is contained in:
parent
38c98f16fa
commit
19d35a563e
@ -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) {
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user