pax_global_header 0000666 0000000 0000000 00000000064 12664062705 0014522 g ustar 00root root 0000000 0000000 52 comment=fa7ec97d8249ab6aab63cc1e46d14dd30fcb11ee
ignore-by-default-1.0.1/ 0000775 0000000 0000000 00000000000 12664062705 0015036 5 ustar 00root root 0000000 0000000 ignore-by-default-1.0.1/.gitignore 0000664 0000000 0000000 00000000033 12664062705 0017022 0 ustar 00root root 0000000 0000000 .node-version
node_modules
ignore-by-default-1.0.1/.travis.yml 0000664 0000000 0000000 00000000160 12664062705 0017144 0 ustar 00root root 0000000 0000000 language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
script: npm test
notifications:
email: false
ignore-by-default-1.0.1/CONTRIBUTING.md 0000664 0000000 0000000 00000001047 12664062705 0017271 0 ustar 00root root 0000000 0000000 # Contributions welcome!
Please open an issue or pull request if you have a directory you think
development tools should be ignoring.
`index.js` contains the list of directories, [sorted by Unicode code
points](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort).
Please add your suggested directory in the correct place with a comment
explaining what it's used for and where to find out more.
The code should follow [Standard Style](https://github.com/feross/standard). Run
`npm test` to verify adherence.
ignore-by-default-1.0.1/LICENSE 0000664 0000000 0000000 00000001354 12664062705 0016046 0 ustar 00root root 0000000 0000000 ISC License (ISC)
Copyright (c) 2016, Mark Wubben
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
ignore-by-default-1.0.1/README.md 0000664 0000000 0000000 00000001250 12664062705 0016313 0 ustar 00root root 0000000 0000000 # ignore-by-default
This is a package aimed at Node.js development tools. It provides a list of
directories that should probably be ignored by such tools, e.g. when watching
for file changes.
It's used by [AVA](https://www.npmjs.com/package/ava) and
[nodemon](https://www.npmjs.com/package/nodemon).
[Please contribute!](./CONTRIBUTING.md)
## Installation
```
npm install --save ignore-by-default
```
## Usage
The `ignore-by-default` module exports a `directories()` function, which will
return an array of directory names. These are the ones you should ignore.
```js
// ['.git', '.sass_cache', …]
var ignoredDirectories = require('ignore-by-default').directories()
```
ignore-by-default-1.0.1/index.js 0000664 0000000 0000000 00000001146 12664062705 0016505 0 ustar 00root root 0000000 0000000 'use strict'
exports.directories = function () {
return [
'.git', // Git repository files, see
'.nyc_output', // Temporary directory where nyc stores coverage data, see
'.sass-cache', // Cache folder for node-sass, see
'bower_components', // Where Bower packages are installed, see
'coverage', // Standard output directory for code coverage reports, see
'node_modules' // Where Node modules are installed, see
]
}
ignore-by-default-1.0.1/package.json 0000664 0000000 0000000 00000001407 12664062705 0017326 0 ustar 00root root 0000000 0000000 {
"name": "ignore-by-default",
"version": "1.0.1",
"description": "A list of directories you should ignore by default",
"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"test": "standard && node test.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/novemberborn/ignore-by-default.git"
},
"keywords": [
"ignore",
"chokidar",
"watcher",
"exclude",
"glob",
"pattern"
],
"author": "Mark Wubben (https://novemberborn.net/)",
"license": "ISC",
"bugs": {
"url": "https://github.com/novemberborn/ignore-by-default/issues"
},
"homepage": "https://github.com/novemberborn/ignore-by-default#readme",
"devDependencies": {
"figures": "^1.4.0",
"standard": "^6.0.4"
}
}
ignore-by-default-1.0.1/test.js 0000664 0000000 0000000 00000001066 12664062705 0016356 0 ustar 00root root 0000000 0000000 'use strict'
var assert = require('assert')
var figures = require('figures')
var actual = require('./').directories()
var expected = actual.slice().sort()
var pass = false
try {
assert.deepEqual(actual, expected)
pass = true
} catch (err) {}
console[pass ? 'log' : 'error'](figures[pass ? 'tick' : 'cross'] + ' directories are sorted correctly')
if (!pass) {
console.error(' got: ' + JSON.stringify(actual, null, 2).split('\n').join('\n '))
console.error(' expected: ' + JSON.stringify(expected, null, 2).split('\n').join('\n '))
process.exit(1)
}