2017-02-18 19:10:01 +00:00
|
|
|
var path = require('path');
|
2017-02-18 19:37:07 +00:00
|
|
|
var grunt = require('grunt');
|
2017-02-18 19:10:01 +00:00
|
|
|
|
|
|
|
function joinPath() {
|
|
|
|
return path.join.apply(path.join, arguments);
|
|
|
|
}
|
|
|
|
|
2017-02-18 19:37:07 +00:00
|
|
|
function filesMatchinPattern(files) {
|
|
|
|
return grunt.file.expand({nonull: true}, files);
|
|
|
|
}
|
|
|
|
|
|
|
|
function fileMatchesPattern(patterns, intendedPath) {
|
|
|
|
return grunt.file.isMatch(patterns, intendedPath);
|
|
|
|
}
|
|
|
|
|
2017-02-18 19:10:01 +00:00
|
|
|
module.exports = {
|
|
|
|
joinPath: joinPath
|
|
|
|
};
|
|
|
|
|