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:
parent
18439b0680
commit
ea4065f33a
37
.npmignore
37
.npmignore
|
@ -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
|
11
package.json
11
package.json
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue