commit | 6cd8ba75905fd12ba55369ef57742d73e6f59645 | [log] [tgz] |
---|---|---|
author | Jason Campbell <jasoncampbell@google.com> | Wed Jul 15 19:22:34 2015 -0700 |
committer | Jason Campbell <jasoncampbell@google.com> | Thu Jul 16 10:42:31 2015 -0700 |
tree | cb17a4c924b0952eb0542eb4a9f901ec9c394033 | |
parent | 9749d61d72e53e99b71b70b8616333f2972e441f [diff] |
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
An example PDF reader using Vanadium.
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.
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
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>