@putout/plugin-npmignore
🐊Putout plugin helps with .npmignore
Last updated 9 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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",
        "npmignore/convert-loc-to-lock": "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

convert-loc-to-lock

Adds .* into .npmignore. Checkout in 🐊Putout Editor.

-*.loc
+*.lock

License

MIT

Current Tags

  • 8.1.0                                ...           latest (7 months ago)

19 Versions

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

© 2010 - cnpmjs.org x YWFE | Home | YWFE