pax_global_header 0000666 0000000 0000000 00000000064 14233724663 0014524 g ustar 00root root 0000000 0000000 52 comment=c2fefc478188edca24a2e3fb2a7bda9f558fbe2f
ignore-by-default-2.1.0/ 0000775 0000000 0000000 00000000000 14233724663 0015041 5 ustar 00root root 0000000 0000000 ignore-by-default-2.1.0/.github/ 0000775 0000000 0000000 00000000000 14233724663 0016401 5 ustar 00root root 0000000 0000000 ignore-by-default-2.1.0/.github/workflows/ 0000775 0000000 0000000 00000000000 14233724663 0020436 5 ustar 00root root 0000000 0000000 ignore-by-default-2.1.0/.github/workflows/ci.yml 0000664 0000000 0000000 00000000756 14233724663 0021564 0 ustar 00root root 0000000 0000000 name: Test
on:
push:
branches:
- master
pull_request:
paths-ignore:
- "*.md"
jobs:
nodejs:
name: Node.js
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [^10, ^12, ^14]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install --no-audit
- run: npm test
ignore-by-default-2.1.0/.gitignore 0000664 0000000 0000000 00000000015 14233724663 0017025 0 ustar 00root root 0000000 0000000 node_modules
ignore-by-default-2.1.0/.npmrc 0000664 0000000 0000000 00000000023 14233724663 0016154 0 ustar 00root root 0000000 0000000 package-lock=false
ignore-by-default-2.1.0/CONTRIBUTING.md 0000664 0000000 0000000 00000001047 14233724663 0017274 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-2.1.0/LICENSE 0000664 0000000 0000000 00000001354 14233724663 0016051 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-2.1.0/README.md 0000664 0000000 0000000 00000001243 14233724663 0016320 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 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', …]
const ignoredDirectories = require('ignore-by-default').directories()
```
ignore-by-default-2.1.0/index.js 0000664 0000000 0000000 00000001460 14233724663 0016507 0 ustar 00root root 0000000 0000000 'use strict'
exports.directories = () => [
'.git', // Git repository files, see
'.log', // Log files emitted by tools such as `tsserver`, see
'.nyc_output', // Temporary directory where nyc stores coverage data, see
'.sass-cache', // Cache folder for node-sass, see
'.yarn', // Where node modules are installed when using Yarn, 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-2.1.0/package.json 0000664 0000000 0000000 00000001507 14233724663 0017332 0 ustar 00root root 0000000 0000000 {
"name": "ignore-by-default",
"version": "2.1.0",
"description": "A list of directories you should ignore by default",
"engines": {
"node": ">=10 <11 || >=12 <13 || >=14"
},
"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": "^3.2.0",
"standard": "^14.3.4"
}
}
ignore-by-default-2.1.0/test.js 0000664 0000000 0000000 00000001076 14233724663 0016362 0 ustar 00root root 0000000 0000000 'use strict'
const assert = require('assert')
const figures = require('figures')
const actual = require('./').directories()
const expected = actual.slice().sort()
let pass = false
try {
assert.deepStrictEqual(actual, expected)
pass = true
} catch {}
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)
}