reader: adds modules + boilerplate for tests, and coverage

* Adds tape.
* Adds a simple component test that can run in browser or node.
* Adds helpers for setting up components and testing updates/input/render.
* Adds disc to help inspect the size impact of modules on public/bundle.js.
* Adds a coverage tool.

Closes #2

Change-Id: I3429b1848cd2c9b0ba3f6fb533e31e692b90446d
16 files changed
tree: cb17a4c924b0952eb0542eb4a9f901ec9c394033
  1. browser/
  2. public/
  3. test/
  4. .gitignore
  5. .jshintignore
  6. .jshintrc
  7. .v23ignore
  8. AUTHORS
  9. CONTRIBUTORS
  10. LICENSE
  11. Makefile
  12. package.json
  13. PATENTS
  14. README.md
  15. 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>