Sha256: e3c927076336887e3d8b7b29342d1028b2a5599a112f6dbac3343e712b34a027
Contents?: true
Size: 924 Bytes
Versions: 2
Compression:
Stored size: 924 Bytes
Contents
Simple ClojureScript Project Example. One-time Setup ============== - Create a CLOJURESCRIPT_HOME environment variable which points to the ClojureScript root directory. - If you have not already done so, execute $CLOJURESCRIPT_HOME/script/bootstrap - Add $CLOJURESCRIPT_HOME/bin to your PATH. Run in Development Mode ======================= Development mode allows for each file to be loaded in a separate script tag so that errors can be easily tracked to the offending file. cljsc src > hello.js After running the above command, open hello-dev.html. Notice that each required JavaScript file has been loaded in its most readable form. Run Optimized JavaScript ======================== Once an application is ready for production, a single optimized file can be produced. cljsc src {:optimizations :advanced} > hello.js After running the above command, open hello.html to view the result.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clementine-0.0.3 | ext/clojure-clojurescript-bef56a7/samples/hello/README.md |
clementine-0.0.2 | ext/clojure-clojurescript-bef56a7/samples/hello/README.md |