Skip to content

Commit

Permalink
[infra] updated packaging config
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
DirectXMan12 committed Oct 4, 2017
1 parent a80955e commit f6dd102
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ utils/websockify
recordings
*.swp
*~
noVNC-*.tgz
50 changes: 33 additions & 17 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f6dd102

Please sign in to comment.