@putout/plugin-npmignore
🐊Putout plugin helps with .npmignore
Last updated 2 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-npmignore 
SYNC missed versions from official npm registry.

@putout/plugin-npmignore NPM version

Use a .npmignore file to keep stuff out of your package. If there's no .npmignore file, but there is a .gitignore file, then npm will ignore the stuff matched by the .gitignore file.

(c) npmjs.com

????Putout plugin helps with .npmignore.

Install

npm i @putout/plugin-npmignore -D

Rules

Config

{
    "rules": {
        "npmignore/add": ["on", {
            "dismiss": [
                ".nyc_output",
                ".putoutcache",
                "*.swp",
                "coverage",
                "*.config.*"
            ]
        }],
        "npmignore/sort": "on"
    }
}

add

Adds .* into .npmignore.

+.*
test

sort

❌ Example of incorrect code

node_modules
*.swp
yarn-error.log
yarn.lock
.idea
.DS_Store
deno.lock

coverage
.filesystem.json

✅ Example of correct code

.idea
.filesystem.json
.DS_Store

*.swp

yarn-error.log
yarn.lock
deno.lock

node_modules
coverage# sort

License

MIT

Current Tags

  • 7.0.4                                ...           latest (2 months ago)

17 Versions

  • 7.0.4                                ...           2 months ago
  • 7.0.3                                ...           2 months ago
  • 7.0.2                                ...           2 months ago
  • 7.0.1                                ...           2 months ago
  • 7.0.0                                ...           2 months ago
  • 6.0.0                                ...           2 months ago
  • 5.0.0                                ...           2 years ago
  • 4.2.1                                ...           2 years ago
  • 4.2.0                                ...           2 years ago
  • 4.1.2                                ...           2 years ago
  • 4.1.1                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |