diff options
author | Solly Ross <sross@redhat.com> | 2017-10-03 19:36:36 -0400 |
---|---|---|
committer | Solly Ross <sross@redhat.com> | 2017-10-04 14:29:54 -0400 |
commit | f6dd102a146e0b2a7b943a233322d896c24ff860 (patch) | |
tree | 018340f14b8ddb168109848f70b9b2b6d0557060 | |
parent | a80955ee7a7479acf3a6c9ec2221bfba22a1d934 (diff) | |
download | novnc-f6dd102a146e0b2a7b943a233322d896c24ff860.tar.gz |
[infra] updated packaging config
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).
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .npmignore | 50 | ||||
-rw-r--r-- | package.json | 3 |
3 files changed, 35 insertions, 19 deletions
@@ -9,3 +9,4 @@ utils/websockify recordings *.swp *~ +noVNC-*.tgz @@ -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 diff --git a/package.json b/package.json index 41f9504..8e62db6 100644 --- a/package.json +++ b/package.json @@ -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", |