Sha256: 91dafcb98d2ec11829b97c6b92a337d121ccb5d25273d4d62fae91829167ded8
Contents?: true
Size: 895 Bytes
Versions: 10
Compression:
Stored size: 895 Bytes
Contents
if (require.main === module) { console.log("0..1") console.log("ok 1 trivial pass") return } var fs = require("fs") var path = require("path") var rimraf = require("rimraf") exports.ignores = ignores exports.writeIgnoreFile = writeIgnoreFile exports.writeIgnores = writeIgnores exports.clearIgnores = clearIgnores function writeIgnoreFile (file, rules) { file = path.resolve(__dirname, "fixtures", file) if (Array.isArray(rules)) { rules = rules.join("\n") } fs.writeFileSync(file, rules) console.error(file, rules) } function writeIgnores (set) { Object.keys(set).forEach(function (f) { writeIgnoreFile(f, set[f]) }) } function clearIgnores (set) { Object.keys(set).forEach(function (file) { fs.unlinkSync(path.resolve(__dirname, "fixtures", file)) }) } function ignores (set) { writeIgnores(set) process.on("exit", clearIgnores.bind(null, set)) }
Version data entries
10 entries across 10 versions & 2 rubygems