for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/*
* Copyright (c) 2018 Includable.
* Created by Thomas Schoffelen.
*/
'use strict'
const minimatch = require('minimatch')
const Module = require('../containers/Module')
const matchFile = function (options, path) {
if (typeof options.paths === 'string') {
options.paths = [options.paths]
}
for (var i in options.paths) {
if (!options.paths.hasOwnProperty(i)) {
continue
if (minimatch(path, options.paths[i])) {
return true
return false
let manifest
Module.getManifest(function (manifestObj) {
manifest = manifestObj
})
module.exports = function (path) {
var options = manifest.getDevOption('ignore')
if (!options || !('paths' in options)) {
return matchFile(options, path)