Permalink
Browse files

Add build script

  • Loading branch information...
1 parent df8e0cb commit 8c55e7d6a79ad67683861927cf99439031b3cc43 @joelfillmore joelfillmore committed Aug 8, 2012
Showing with 24 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +21 −0 build.sh
View
@@ -0,0 +1,3 @@
+# Exclude compiled versions
+tiles.js
+tiles.min.js
View
@@ -0,0 +1,21 @@
+# turn off output
+set +v
+
+# vars
+JS_OUTPUT=tiles.js
+SUCCESS=0
+
+echo "Concatenating JS files"
+
+# Create or overwrite existing file with header
+echo "/*! Tiles.js | http://thinkpixellab.com/tilesjs | $(date +%Y-%m-%d) */" > $JS_OUTPUT
+
+# combine files
+cat src/Tile.js >> $JS_OUTPUT
+cat src/Template.js >> $JS_OUTPUT
+cat src/UniformTemplates.js >> $JS_OUTPUT
+cat src/Grid.js >> $JS_OUTPUT
+
+echo "Done"
+echo ""
+exit $SUCCESS

0 comments on commit 8c55e7d

Please sign in to comment.