commit | 7fae84c6d6c24e711f6378940e7a541ba99f2425 | [log] [tgz] |
---|---|---|
author | Jason Campbell <jasoncampbell@google.com> | Wed Aug 12 19:01:40 2015 -0700 |
committer | Jason Campbell <jasoncampbell@google.com> | Wed Aug 12 19:08:24 2015 -0700 |
tree | 4c3a27486359d320e4e184efdc5376960378a047 | |
parent | 14a802d74f197b2d2433f0e762e2f61058075da7 [diff] |
TBR reader: adds CSS preprocessing and locally stored PDFs Adds build tools to preprocess CSS via a browserify transform. This allows CSS to be created alongside it's corresponding component modules for state creation and rendering. The pre-processor is based on the one in $V23_ROOT/www and a few of the basic styles have been copied over. PDF files can now be stored locally so that they persist between page reloads. A router was added (based on $V23_ROOT/release/projects/playground/client) to help support this since some state/input needs to come from the url bar and the history API. * Renamed browser/index.js to browser/main.js. * Moved page-control into pdf component since they are naturally coupled. * Moved file-picker into footer component. * Added events/click module. Change-Id: Ia5885f18bba9bc49c2b42eb6366c1935bea8531a
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>