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

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/fstream-ignore/test/common.js
brwy_rails-0.0.6 test/dummy/node_modules/fsevents/node_modules/fstream-ignore/test/common.js
brwy_rails-0.0.5 test/dummy/node_modules/fsevents/node_modules/fstream-ignore/test/common.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/fstream-ignore/test/common.js