Sha256: 0fbfe78a1f1769b7291cba3b905103cb33755d816f51fdf4a49a37f3ccb5f16e
Contents?: true
Size: 895 Bytes
Versions: 68
Compression:
Stored size: 895 Bytes
Contents
if (require.main === module) { console.log("1..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
68 entries across 68 versions & 2 rubygems