mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Convert all CoffeeScript to Javascript. See:
http://meta.discourse.org/t/is-it-better-for-discourse-to-use-javascript-or-coffeescript/3153
This commit is contained in:
17
Guardfile
17
Guardfile
@@ -22,9 +22,17 @@ else
|
||||
jasmine_options[:server_timeout] = 300
|
||||
end
|
||||
|
||||
guard 'jasmine', jasmine_options do watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { "spec/javascripts" }
|
||||
watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
|
||||
watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)$}) { "spec/javascripts" }
|
||||
guard 'jasmine', jasmine_options do watch(%r{spec/javascripts/spec\.js$}) { "spec/javascripts" }
|
||||
watch(%r{spec/javascripts/.+_spec\.js$})
|
||||
watch(%r{app/assets/javascripts/(.+?)\.js$}) { "spec/javascripts" }
|
||||
end
|
||||
|
||||
# verify that we pass jshint
|
||||
# see https://github.com/MrOrz/guard-jshint-on-rails
|
||||
guard 'jshint-on-rails', config_path: 'config/jshint.yml' do
|
||||
# watch for changes to application javascript files
|
||||
watch(%r{^app/assets/javascripts/.*\.js$})
|
||||
watch(%r{^spec/javascripts/.*\.js$})
|
||||
end
|
||||
|
||||
guard 'rspec', :focus_on_failed => true, :cli => "--drb" do
|
||||
@@ -45,6 +53,7 @@ guard 'rspec', :focus_on_failed => true, :cli => "--drb" do
|
||||
|
||||
end
|
||||
|
||||
|
||||
module ::Guard
|
||||
class AutoReload < ::Guard::Guard
|
||||
|
||||
@@ -85,3 +94,5 @@ guard :autoreload do
|
||||
watch(/\.sass\.erb$/)
|
||||
watch(/\.handlebars$/)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user