pax_global_header00006660000000000000000000000064136711567340014527gustar00rootroot0000000000000052 comment=520cf377b5589d1da67b354a944192e7783a05d7 ignore-by-default-2.0.0/000077500000000000000000000000001367115673400150435ustar00rootroot00000000000000ignore-by-default-2.0.0/.github/000077500000000000000000000000001367115673400164035ustar00rootroot00000000000000ignore-by-default-2.0.0/.github/workflows/000077500000000000000000000000001367115673400204405ustar00rootroot00000000000000ignore-by-default-2.0.0/.github/workflows/ci.yml000066400000000000000000000007561367115673400215660ustar00rootroot00000000000000name: 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.0.0/.gitignore000066400000000000000000000000151367115673400170270ustar00rootroot00000000000000node_modules ignore-by-default-2.0.0/.npmrc000066400000000000000000000000231367115673400161560ustar00rootroot00000000000000package-lock=false ignore-by-default-2.0.0/CONTRIBUTING.md000066400000000000000000000010471367115673400172760ustar00rootroot00000000000000# 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.0.0/LICENSE000066400000000000000000000013541367115673400160530ustar00rootroot00000000000000ISC 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.0.0/README.md000066400000000000000000000012431367115673400163220ustar00rootroot00000000000000# 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.0.0/index.js000066400000000000000000000013251367115673400165110ustar00rootroot00000000000000'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 '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.0.0/package.json000066400000000000000000000015071367115673400173340ustar00rootroot00000000000000{ "name": "ignore-by-default", "version": "2.0.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.0.0/test.js000066400000000000000000000010761367115673400163640ustar00rootroot00000000000000'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) }