inline coffeescript support via coffee-script-source
This commit is contained in:
parent
4b92891cc7
commit
8d02988381
@ -8,7 +8,13 @@ require 'fileutils'
|
||||
require 'getoptlong'
|
||||
|
||||
require 'rubygems'
|
||||
|
||||
gem 'jasmine'
|
||||
gem 'coffee-script-source'
|
||||
|
||||
require 'jasmine'
|
||||
require 'coffee_script/source'
|
||||
|
||||
require 'jasmine/cli'
|
||||
|
||||
include Jasmine::CLI
|
||||
@ -48,6 +54,7 @@ puts "Running Jasmine specs..."
|
||||
files = [
|
||||
'file://' + File.join(Jasmine.root, 'lib/jasmine.js'),
|
||||
'file://' + File.join(Jasmine.root, 'lib/jasmine-html.js'),
|
||||
'file://' + CoffeeScript::Source.bundled_path,
|
||||
]
|
||||
|
||||
files += [ [ 'src_files', 'src_dir' ], [ 'stylesheets', 'src_dir' ], [ 'helpers', 'spec_dir' ], [ 'spec_files', 'spec_dir' ] ].collect do |searches, root|
|
||||
@ -67,6 +74,8 @@ files = files.flatten.compact.collect { |file|
|
||||
case File.extname(file)
|
||||
when '.js'
|
||||
%{<script type="text/javascript" src="#{file}"></script>}
|
||||
when '.coffee'
|
||||
%{<script type="text/coffeescript" src="#{file}"></script>}
|
||||
when '.css'
|
||||
%{<link rel="stylesheet" href="#{file}" type="text/css" />}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user