TBR reader: adds jshint and lints existing code.

Related #2

Change-Id: Id64140ebafcc8740ab043618b5b6bd329f723d6b
22 files changed
tree: 19d9d42dfa32fe3c9748cf433f2abcb42b488e5d
  1. browser/
  2. public/
  3. .gitignore
  4. .jshintignore
  5. .jshintrc
  6. .v23ignore
  7. AUTHORS
  8. CONTRIBUTORS
  9. LICENSE
  10. Makefile
  11. package.json
  12. PATENTS
  13. README.md
  14. VERSION
README.md

Reader

An example PDF reader using Vanadium.

Development

Dependencies

If you have a $V23_ROOT setup you can install Node.js from $V23_ROOT/third_party by running:

v23 profile install nodejs

Optionally, it is possible to use your own install of Node.js if you would like to use a more recent version.

Building

The Makefile is setup to handle all dependencies once Node.js is installed. The default make task will install any modules listed in the package.json and build a browser bundle from browser/index.js via browserify.

make

It is possible to have the build happen automatically anytime a JavaScript file changes using the watch tool:

watch make

Running locally

To run a local dev server use:

make start

If you would like to change the host and or port that is used:

make start port=<port> host=<host>