mirror of
https://github.com/moparisthebest/mailcatcher
synced 2025-03-11 06:50:12 -04:00
Add coffee-script.
This commit is contained in:
parent
da6fcfff29
commit
a9d884859b
@ -16,8 +16,14 @@ GEM
|
||||
remote: http://rubygems.org/
|
||||
specs:
|
||||
activesupport (3.0.7)
|
||||
coffee-script (2.2.0)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.1.1)
|
||||
daemons (1.1.3)
|
||||
eventmachine (0.12.10)
|
||||
execjs (1.0.0)
|
||||
multi_json (~> 1.0)
|
||||
haml (3.1.1)
|
||||
i18n (0.6.0)
|
||||
json (1.5.1)
|
||||
@ -26,6 +32,7 @@ GEM
|
||||
mime-types (~> 1.16)
|
||||
treetop (~> 1.4.8)
|
||||
mime-types (1.16)
|
||||
multi_json (1.0.3)
|
||||
polyglot (0.3.1)
|
||||
rack (1.3.0)
|
||||
sass (3.1.1)
|
||||
@ -48,5 +55,6 @@ PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
coffee-script (~> 2.2)
|
||||
mailcatcher!
|
||||
sass (~> 3.1)
|
||||
|
11
Rakefile
11
Rakefile
@ -25,9 +25,18 @@ task "build:sass" do
|
||||
end
|
||||
end
|
||||
|
||||
desc "Compile CoffeeScript files into JavaScript"
|
||||
task "build:coffee" do
|
||||
require 'coffee-script'
|
||||
Dir["public/javascripts/**/*.coffee"].each do |file|
|
||||
js_file = file.sub /\.coffee$/, ".js"
|
||||
File.new(js_file, "w").write CoffeeScript.compile File.read file
|
||||
end
|
||||
end
|
||||
|
||||
task "build:rdoc" => "rdoc"
|
||||
|
||||
multitask "build" => ["build:sass", "build:rdoc"]
|
||||
multitask "build" => ["build:sass", "build:coffee", "build:rdoc"]
|
||||
|
||||
desc "Package as Gem"
|
||||
task "package:gem" do
|
||||
|
@ -39,4 +39,5 @@ Gem::Specification.new do |s|
|
||||
s.add_dependency "json", "~> 1.0"
|
||||
|
||||
s.add_development_dependency "sass", "~> 3.1"
|
||||
s.add_development_dependency "coffee-script", "~> 2.2"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user