-
Notifications
You must be signed in to change notification settings - Fork 790
Running the tests
lein test
Will run the tests for the analyzer, compiler, and closure components.
How to setup the the three important JavaScript runtimes.
Checkout the V8 project. Following the build instructions here
Set the V8_HOME environment variable to the path where d8 lives.
export V8_HOME="$HOME/v8/out/native"
Get the js-shell from here http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/. Set your SPIDERMONKEY_HOME environment variable.
On OS X download a WebKit nightly and put it in your Applications folder. Update your shell profile to include the following:
DYLD_FRAMEWORK_PATH=/Applications/WebKit.app/Contents/Frameworks/10.8/
export DYLD_FRAMEWORK_PATH
PATH=$PATH:/Applications/WebKit.app/Contents/Frameworks/10.8/JavaScriptCore.framework/Resources
JSC_HOME=/Applications/WebKit.app/Contents/Frameworks/10.8/JavaScriptCore.framework/Resources
export JSC_HOME
NOTE: Sub in the correct OSX version if you're not running 10.8
./script/bootstrap
./script/test
Besides the tests it's important to make sure that the Browser REPL hasn't accidentally been broken. Double-check using the sample found in the repository.
- Rationale
- Quick Start
- Differences from Clojure
- [Usage of Google Closure](Google Closure)