Browse files

Make sure optimized and unoptimized builds can live side by side

  • Loading branch information...
1 parent ef195fd commit 2c28acad693048f23043934987afd1b046b21874 @ericbmerritt committed Aug 10, 2011
Showing with 7 additions and 7 deletions.
  1. +2 −2 bin/compile-optimized.sh
  2. +2 −2 bin/compile.sh
  3. +1 −1 war/index-optimized.html
  4. +2 −2 war/index-unoptimized.html
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>

0 comments on commit 2c28aca

Please sign in to comment.