Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure optimized and unoptimized builds can live side by side

  • Loading branch information...
commit 2c28acad693048f23043934987afd1b046b21874 1 parent ef195fd
@ericbmerritt authored
View
4 bin/compile-optimized.sh
@@ -1,4 +1,4 @@
#! /bin/sh
-mkdir -p ./war/js/deps/
-cljsc "src/" '{:optimizations :advanced :output-dir "war/js" :output-to "war/js/deps/tutorial.js"}'
+mkdir -p ./war/js/optimized/deps/
+cljsc "src/" '{:optimizations :advanced :output-dir "war/js/optimized" :output-to "war/js/optimized/deps/tutorial.js"}'
View
4 bin/compile.sh
@@ -1,4 +1,4 @@
#! /bin/sh
-mkdir -p ./war/js/deps/
-cljsc "src/" '{:output-dir "war/js" :output-to "war/js/deps/tutorial.js"}'
+mkdir -p ./war/js/unoptimized/deps/
+cljsc "src/" '{:output-dir "war/js/unoptimized" :output-to "war/js/unoptimized/deps/tutorial.js"}'
View
2  war/index-optimized.html
@@ -19,7 +19,7 @@
<header>
<div id="notes"></div>
- <script type="text/javascript" src="js/deps/tutorial.js"></script>
+ <script type="text/javascript" src="js/optimized/deps/tutorial.js"></script>
</body>
</html>
View
4 war/index-unoptimized.html
@@ -19,8 +19,8 @@
<header>
<div id="notes"></div>
- <script type="text/javascript" src="js/goog/base.js"></script>
- <script type="text/javascript" src="js/deps/tutorial.js"></script>
+ <script type="text/javascript" src="js/unoptimized/goog/base.js"></script>
+ <script type="text/javascript" src="js/unoptimized/deps/tutorial.js"></script>
<script type="text/javascript">
goog.require('tutorial.notepad');
</script>
Please sign in to comment.
Something went wrong with that request. Please try again.