commit | ec6bb7ed4f7a27b427a0b831f52cc1b3b00392d8 | [log] [tgz] |
---|---|---|
author | Todd Wang <toddw@google.com> | Mon Nov 30 12:36:21 2015 -0800 |
committer | Todd Wang <toddw@google.com> | Mon Nov 30 12:36:21 2015 -0800 |
tree | 03c2158d7658e6553f4252997b9a5c8768dcc0e2 | |
parent | c4b509bdc3d438664752c5cd8c4ec8273103f2c6 [diff] |
js.syncbase: Remove the -builtin_vdlroot flag. The vdl tool needs access to its standard packages when compiling and generating code. It can either find the packages under VDLROOT/JIRI_ROOT, or it can use the packages built-in to the tool itself. The previous behavior was that if -builtin_vdlroot=false (the default), we'd always look under VDLROOT or JIRI_ROOT. The new behavior gets rid of the flag, and changes the behavior as if it were set to true. If VDLROOT or JIRI_ROOT are set, we always use that value, otherwise we extract the built-in vdlroot to a temporary directory. The previous behavior was to write out the data as a base64/gzipped/tarball with line breaks. The new behavior writes out a gzipped/tarball as raw binary data, without line breaks. This is simpler; there's no need for the base64 encoding. The previous behavior only included *.vdl files in the tarball; we also need to include vdl.config files, since they affect code generation for dependant packages. Added an explicit test to make sure the builtin vdlroot data contains exactly what we expect; the net result is similar to the go-generate test (which reminds us when we've forgotten to run go-generate), but is a bit more localized. MultiPart: 5/6 Change-Id: I55a35656f643f70e55175a6804c9e5dd3e224801
This repository defines the JavaScript API for Syncbase, a structured store that supports peer-to-peer synchronization.
The client APIs defined here work both in Node.js and the browser.
npm install --save vanadium/js.syncbase
Documentation for this API is [TODO(aghassemi)](LINK TO JS DOCUMENTATION)
Tutorials can be found at [TODO(aghassemi)](LINK TO JS TUTORIAL FOR SYNCBASE)
The entry point to the API is through a module called syncbase
, everything else is considered private and should not be accessed by the users of the API.
When using Browserify or Node.js users can gain access to the API with:
var syncbase = require("syncbase");
When run in a browser, syncbase expects that the vanadium extension will be installed.
Bugs and feature requests should be filed in the Vanadium issue tracker.
GNU Make is used to build and test Syncbase.
Build everything:
make
Test everything:
make test
Run a specific test suite:
make test-integration make test-integration-node make test-integration-browser
Remove all build and testing artifacts:
make clean