motion
Version:
motion - moving development forward
14 lines (12 loc) • 351 B
JavaScript
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)
}