Skip to content
Browse files

Added Sinatra & rack-coffee to dynamically compile our coffee scripts…

… to JavaScript
  • Loading branch information...
1 parent 1587d1a commit 9f7dad6fc478a5608f3cf7ffc3b7fb326016b881 @searls committed Apr 23, 2011
View
2 .gitignore
@@ -1 +1,3 @@
.DS_Store
+.bundle
+
View
5 Gemfile
@@ -0,0 +1,5 @@
+source 'http://rubygems.org'
+
+gem 'sinatra', '~> 1.2.3'
+gem 'coffee-script', '~> 2.2.0'
+gem 'rack-coffee', '~> 0.3.4'
View
23 Gemfile.lock
@@ -0,0 +1,23 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.0.1)
+ execjs (0.2.0)
+ rack (1.2.2)
+ rack-coffee (0.3.4)
+ rack
+ sinatra (1.2.3)
+ rack (~> 1.1)
+ tilt (>= 1.2.2, < 2.0)
+ tilt (1.2.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-script (~> 2.2.0)
+ rack-coffee (~> 0.3.4)
+ sinatra (~> 1.2.3)
View
2 SpecRunner.html → public/SpecRunner.html
@@ -8,10 +8,8 @@
<script type="text/javascript" src="lib/jasmine-1.0.2/jasmine-html.js"></script>
<!-- include source files here... -->
-
<!-- include spec files here... -->
-
</head>
<body>
View
0 lib/jasmine-1.0.2/MIT.LICENSE → public/lib/jasmine-1.0.2/MIT.LICENSE
File renamed without changes.
View
0 lib/jasmine-1.0.2/jasmine-html.js → public/lib/jasmine-1.0.2/jasmine-html.js
File renamed without changes.
View
0 lib/jasmine-1.0.2/jasmine.css → public/lib/jasmine-1.0.2/jasmine.css
File renamed without changes.
View
0 lib/jasmine-1.0.2/jasmine.js → public/lib/jasmine-1.0.2/jasmine.js
File renamed without changes.
View
13 sinatra.rb
@@ -0,0 +1,13 @@
+# Sinatra is here to serve up the spec runner and dynamically compile the coffeescript to speed up our feedback loop.
+# 1. Go install bundler.
+# 2. Run these from the root of the repo:
+# $ bundle install
+# $ bundle exec ruby sinatra.rb
+# 3. Visit the spec runner at http://localhost:4567/SpecRunner.html
+require 'sinatra'
+require 'rack/coffee'
+
+use Rack::Coffee, {
+ :root => 'public',
+ :urls => ['/src','/spec']
+}

0 comments on commit 9f7dad6

Please sign in to comment.
Something went wrong with that request. Please try again.