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

Version Path
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/common.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/common.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/common.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/fstream-ignore/test/common.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/fstream-ignore/test/common.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/fstream-ignore/test/common.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/fstream-ignore/test/common.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/fstream-ignore/test/common.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/fstream-ignore/test/common.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/fstream-ignore/test/common.js