blob: ff4534289c2f57e6d859024b3c80be126e9be27d [file] [log] [blame]
var Ignore = require("../")
Ignore({ path: __dirname
, ignoreFiles: [".ignore", ".gitignore"]
})
.on("child", function (c) {
console.error(c.path.substr(c.root.path.length + 1))
c.on("ignoreFile", onIgnoreFile)
})
.on("ignoreFile", onIgnoreFile)
function onIgnoreFile (e) {
console.error("adding ignore file", e.path)
}