commit | a8d318069d9c387786c1c6fb7c471d5d95e905f2 | [log] [tgz] |
---|---|---|
author | Jiri Simsa <jsimsa@google.com> | Thu May 07 13:12:31 2015 -0700 |
committer | Jiri Simsa <jsimsa@google.com> | Thu May 07 13:12:56 2015 -0700 |
tree | 5cd5f17381c236ea156761240f96ce1606b7ce29 | |
parent | 68f3c186b7c621b0892eef2434244eb4e7c593a5 [diff] |
js.core: simplifying cross-compilation with the v23 tool This CL removes support for the "v23 xgo <label>" command and instead provides a more idiomatic mechanism for cross-compiling Vanadium Go binaries. Similar to Go cross-compilation, to cross-compile Vanadium Go binaries that do not require custom toolchain, one simply runs: GOARCH=<arch> GOOS=<os> v23 go ... In addition, this CL introduces the V23_PROFILE environment variable that can specify a development profile. If this variable is set, the "v23 go ..." command uses an environment variable setting expected by the development profile identified by the value of the variable. Currently, the following development profiles are supported: "android", "arm", "java", and "nacl". For instance, to cross-compile Vanadium Go binaries for arm (on linux), one simply runs: V23_PROFILE=arm v23 go ... MultiPart: 2/2 Change-Id: I4a9ccb1215f2a6978910329561048dc8acb32a71
This repository defines the JavaScript API for Vanadium. The client and server APIs defined here work both in Node.js and the browser.
npm
can be used to install this library:
npm install --save git@github.com:vanadium/js.git
Documentation for this API is available at https://jsdoc.v.io/ Tutorials can be found at https://v.io/tutorials/javascript/
The entry point to the API is through a module called vanadium
, everything else is considered private and should not be accessed by the users of the API.
The vanadium
module is exported as a global in the browser JavaScript library and for Browserify and Node.js the “main” property in the package.json
points to /src/vanadium
making it the index module and therefore Browserify and Node.js users can gain access to the API with:
var vanadium = require("vanadium");
One of the goals of this project is to only write the code once and have it run in both Node.js and browsers. Therefore, specific build and testing steps have been designed in the project to ensure this goal.
When run in a browser, vanadium.js
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 Vanadium.
Build everything:
make build
Test everything:
make test
Run a specific test suite:
make test-unit make test-unit-node make test-unit-browser make test-integration make test-integration-node make test-integration-browser
Remove all build and testing artifacts:
make clean