Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
add documentation about .npmignore pattern rules
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke authored and othiym23 committed Jan 2, 2015
1 parent 7a22d0e commit bf8640b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/misc/npm-developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ ignore the stuff matched by the `.gitignore` file. If you *want* to
include something that is excluded by your `.gitignore` file, you can
create an empty `.npmignore` file to override it.

`.npmignore` files follow the [same pattern rules](http://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files)
as `.gitignore` files:

* Blank lines or lines starting with `#` are ignored.
* Standard glob patterns work.
* You can end patterns with a forward slash `/` to specify a directory.
* You can negate a pattern by starting it with an exclamation point `!`.

By default, the following paths and files are ignored, so there's no
need to add them to `.npmignore` explicitly:

Expand Down

0 comments on commit bf8640b

Please sign in to comment.