gen-dev-ignores.js 350 B

1234567
  1. const fs = require('fs')
  2. const plock = require('../package-lock.json')
  3. fs.writeFileSync(`${__dirname}/../node_modules/.gitignore`,
  4. '## Automatically generated dev dependency ignores\n' +
  5. 'CODE_OF_CONDUCT.md\n' +
  6. 'CONTRIBUTING.md\n' +
  7. Object.keys(plock.dependencies).filter(_ => plock.dependencies[_].dev).map(_ => `/${_}`).join('\n') + '\n')