Skip to content

Commit f6dd102

Browse files
committed
[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).
1 parent a80955e commit f6dd102

File tree

3 files changed

+35
-19
lines changed

3 files changed

+35
-19
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ utils/websockify
99
recordings
1010
*.swp
1111
*~
12+
noVNC-*.tgz

.npmignore

+33-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
1-
app
2-
core
3-
vendor
4-
.gitmodules
5-
node_modules
1+
# infra JS
2+
/build/
3+
/node_modules/
4+
/tests/
5+
/utils/
6+
/recordings/
7+
/vendor/sinon.js
8+
9+
# noVNC application files
10+
/app
11+
/vendor/browser-es-module-loader
12+
/vendor/promise.js
13+
/vnc.html
14+
/vnc_lite.html
15+
16+
# raw translation files
17+
/po
18+
19+
# config files
20+
/.travis.yml
21+
/karma.conf.js
22+
23+
# various other files
24+
/.gitmodules
625
.*
726
*~
827
*.swp
928
*.swo
10-
tests
11-
.travis.yml
12-
utils
13-
docs/notes
14-
docs/links
15-
docs/release.txt
16-
docs/rfb_notes
17-
docs/*.pdf
18-
vnc.html
19-
vnc_lite.html
20-
karma.conf.js
21-
docs/flash_policy.txt
29+
30+
# documentation (except licenses)
31+
/docs/notes
32+
/docs/links
33+
/docs/release.txt
34+
/docs/rfb_notes
35+
/docs/*.pdf
36+
/docs/flash_policy.txt
37+
/CONTRIBUTING.md

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
"name": "noVNC",
33
"version": "0.6.1",
44
"description": "An HTML5 VNC client",
5-
"main": "karma.conf.js",
65
"directories": {
76
"doc": "docs",
87
"test": "tests"
98
},
109
"scripts": {
1110
"test": "PATH=$PATH:node_modules/karma/bin karma start karma.conf.js",
12-
"prepublish": "node ./utils/use_require.js --as commonjs"
11+
"prepare": "node ./utils/use_require.js --as commonjs --clean"
1312
},
1413
"repository": {
1514
"type": "git",

0 commit comments

Comments
 (0)