This repository contains a Javascript wrapper for the the Concord Consortium's applet interface to Vernier sensors. It should be compatible with the latest (November 2013) security restrictions on Java applets in the browser. It was extracted from the Lab project.
- Include this project as a submodule or add it as a Bower dependency.
- Build the project (see below)
- Use the built file
dist/sensor-applet-interface.jsin your project. - In an AMD environment,
require(<path-to-sensor-applet-interface.js>, function(sensorAppletInterface) { ... });(or simply add the path to the appropriate config file if using the RequireJS optimizer with the Simplified CommonJS wrapper, as in Lab.) - Or simply use the
sensorAppletInterfaceglobal. - Make sure your project exposes jQuery as the global
$. This project depends on jQuery but does not attempt to include it as an explicit dependency.
You can skip building by using the distribution repository instead.
- install the dependencies:
npm install - build it:
npm run build
- build project (see above)
- run a dev server and open browser:
grunt connect - make a change to a js file
- rebuild built project:
npm run build - reload the page in the browser
One time setup
rm dist
git clone git@github.com:concord-consortium/lab-sensor-applet-interface-dist.git dist
Each deploy
npm run build
cd dist
git add -A
git commit -m "some interesting message about the deploy"
git push origin master
git push origin master:gh-pages