Explicitly list what we want in our NPM package

Switch over to explicitly listing what we want to include, rather
than listing what we don't want to include. There is too much risk
of getting random junk from your working copy otherwise. This should
also hopefully complain if something is missing.
This commit is contained in:
Pierre Ossman 2018-12-13 10:43:34 +01:00
parent 18439b0680
commit ea4065f33a
3 changed files with 11 additions and 37 deletions

View File

@ -1,37 +0,0 @@
# infra JS
/build/
/node_modules/
/tests/
/utils/
/recordings/
/vendor/sinon.js
# noVNC application files
/app
/vendor/browser-es-module-loader
/vendor/promise.js
/vnc.html
/vnc_lite.html
# raw translation files
/po
# config files
/.travis.yml
/karma.conf.js
# various other files
/.gitmodules
.*
*~
*.swp
*.swo
# documentation (except licenses)
/docs/notes
/docs/links
/docs/release.txt
/docs/rfb_notes
/docs/*.pdf
/docs/flash_policy.txt
/CONTRIBUTING.md

View File

@ -3,9 +3,20 @@
"version": "1.0.0",
"description": "An HTML5 VNC client",
"directories": {
"lib": "lib",
"doc": "docs",
"test": "tests"
},
"files": [
"lib",
"AUTHORS",
"VERSION",
"docs/API.md",
"docs/LIBRARY.md",
"docs/LICENSE*",
"core",
"vendor/pako"
],
"scripts": {
"lint": "eslint app core po tests utils",
"test": "karma start karma.conf.js",