Filter published files on npm (#5626)

* Filter published files on npm

For now not gzipped leaflet package is 23mb. There's weird 4mb file `.goutputstream-N6HL8X` and a lot other stuff which increases node_modules size. `files` field can fix this with specified whitelist.

* Remove npmignore
This commit is contained in:
Bogdan Chadkin 2017-07-18 17:25:28 +03:00 committed by Vladimir Agafonkin
parent e446e45ea5
commit b343cf7a58
2 changed files with 5 additions and 10 deletions

View File

@ -1,10 +0,0 @@
node_modules
.DS_Store
tmp/**/*
.idea
.idea/**/*
*.iml
*.sublime-*
_site
coverage/
dist/leaflet.zip

View File

@ -30,6 +30,11 @@
}, },
"main": "dist/leaflet-src.js", "main": "dist/leaflet-src.js",
"style": "dist/leaflet.css", "style": "dist/leaflet.css",
"files": [
"dist",
"src",
"!dist/leaflet.zip"
],
"scripts": { "scripts": {
"test-jake": "jake test", "test-jake": "jake test",
"test": "jake test", "test": "jake test",