Skip to content

Instantly share code, notes, and snippets.

@mikeball
Last active June 18, 2017 00:22
Show Gist options
  • Save mikeball/a28a58c38b3644f2f6e58f82564fa7bc to your computer and use it in GitHub Desktop.
Save mikeball/a28a58c38b3644f2f6e58f82564fa7bc to your computer and use it in GitHub Desktop.
{
:builds
{:tool
{:src ["src"]
:compiler {:main "tool.core"
:target :nodejs
:optimizations :simple
:output-to "target/tool.js"}}
; hypothetical compiler config to support need for second js file which uses test running main function
:tool-dev
{:src ["src" "test"]
:compiler {:target :nodejs
:optimizations :none
; modify the cljs compiler to output multiple files, one runs app, one runs tests??
:outputs [{:main "tool.core" :file "tool.js"}
{:main "tool.test-runner" :file "tool-tests.js"}]}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment