]> git.proxmox.com Git - mirror_novnc.git/commitdiff
[infra] updated packaging config
authorSolly Ross <sross@redhat.com>
Tue, 3 Oct 2017 23:36:36 +0000 (19:36 -0400)
committerSolly Ross <sross@redhat.com>
Wed, 4 Oct 2017 18:29:54 +0000 (14:29 -0400)
This updates the .npmignore file to ignore some new files that were
recently added, and to keep the `core` directory, so that noVNC can be
used as an ES6 module from NPM.

This also updates package.json to clean when generating lib files in the
`prepare` phase (which has replaced the `prepublish` phase).

.gitignore
.npmignore
package.json

index e9c848760f6d829b4a76d8550567c662b4061c98..c178dbab43d535adb948f197adb0e3ddeb2e705c 100644 (file)
@@ -9,3 +9,4 @@ utils/websockify
 recordings
 *.swp
 *~
+noVNC-*.tgz
index 725befcf19cb2faf60d3bc718111cc9dfcfa0171..c335c33825cf995cbaf8d851200afa954fd6aaab 100644 (file)
@@ -1,21 +1,37 @@
-app
-core
-vendor
-.gitmodules
-node_modules
+# 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
-tests
-.travis.yml
-utils
-docs/notes
-docs/links
-docs/release.txt
-docs/rfb_notes
-docs/*.pdf
-vnc.html
-vnc_lite.html
-karma.conf.js
-docs/flash_policy.txt
+
+# documentation (except licenses)
+/docs/notes
+/docs/links
+/docs/release.txt
+/docs/rfb_notes
+/docs/*.pdf
+/docs/flash_policy.txt
+/CONTRIBUTING.md
index 41f9504c54bb5b2de99c8784f02f43255983465c..8e62db60a216db6b9c98e9a0b399fae3449c17e2 100644 (file)
@@ -2,14 +2,13 @@
   "name": "noVNC",
   "version": "0.6.1",
   "description": "An HTML5 VNC client",
-  "main": "karma.conf.js",
   "directories": {
     "doc": "docs",
     "test": "tests"
   },
   "scripts": {
     "test": "PATH=$PATH:node_modules/karma/bin karma start karma.conf.js",
-    "prepublish": "node ./utils/use_require.js --as commonjs"
+    "prepare": "node ./utils/use_require.js --as commonjs --clean"
   },
   "repository": {
     "type": "git",