Skip to content

Commit 25ccdb9

Browse files
committed
Add and automate .npmignore
1 parent 1d56f97 commit 25ccdb9

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.npmignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.c9
2+
.idea
3+
.project
4+
*.iml
5+
npm-debug.log
6+
dump.rdb
7+
node_modules
8+
results.tap
9+
results.xml
10+
npm-shrinkwrap.json
11+
config.json
12+
.DS_Store
13+
*/.DS_Store
14+
*/*/.DS_Store
15+
._*
16+
*/._*
17+
*/*/._*
18+
coverage.*
19+
lib-cov
20+
complexity.md
21+
sandbox.js
22+
23+
24+
# npmignore - content above this line is automatically generated and modifications may be omitted
25+
# see npmjs.com/npmignore for more details.
26+
examples
27+
images
28+
test
29+
generate-readme-toc.js
30+
.travis.yml
31+
.github
32+
.gitignore
33+
.eslintignore
34+
.npmignore
35+
API.md

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@
2222
"devDependencies": {
2323
"code": "2.x.x",
2424
"lab": "10.x.x",
25-
"markdown-toc": "0.12.x"
25+
"markdown-toc": "0.12.x",
26+
"npmignore": "0.2.x"
2627
},
2728
"scripts": {
2829
"test": "lab -t 100 -a code -L",
2930
"test-cov-html": "lab -r html -o coverage.html -a code",
3031
"toc": "node generate-readme-toc.js",
31-
"version": "npm run toc && git add API.md README.md"
32+
"update-npmignore": "npmignore",
33+
"version": "npm run toc && npm run update-npmignore && git add API.md README.md .npmignore"
3234
},
3335
"license": "BSD-3-Clause"
3436
}

0 commit comments

Comments
 (0)