mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: adjust rake autospec to work with renamed es6 files
We no longer use es6 files, update autospec
This commit is contained in:
parent
fcc5ef9625
commit
6d3d9ecf6c
|
@ -16,9 +16,9 @@ module Autospec
|
|||
end
|
||||
|
||||
# Discourse specific
|
||||
watch(%r{^app/assets/javascripts/discourse/(.+)\.js.es6$}) { |m| "test/javascripts/#{m[1]}-test.js.es6" }
|
||||
watch(%r{^app/assets/javascripts/admin/(.+)\.js.es6$}) { |m| "test/javascripts/admin/#{m[1]}-test.js.es6" }
|
||||
watch(%r{^test/javascripts/.+\.js.es6$})
|
||||
watch(%r{^app/assets/javascripts/discourse/(.+)\.js$}) { |m| "test/javascripts/#{m[1]}-test.js" }
|
||||
watch(%r{^app/assets/javascripts/admin/(.+)\.js$}) { |m| "test/javascripts/admin/#{m[1]}-test.js" }
|
||||
watch(%r{^test/javascripts/.+\.js$})
|
||||
|
||||
RELOADERS = Set.new
|
||||
def self.reload(pattern)
|
||||
|
@ -33,7 +33,7 @@ module Autospec
|
|||
reload(%r{^test/javascripts/(helpers|mixins)/.+\.js(\.es6)?$})
|
||||
reload("test/javascripts/test_helper.js")
|
||||
|
||||
watch(%r{^plugins/.*/test/.+\.js.es6$})
|
||||
watch(%r{^plugins/.*/test/.+\.js(\.es6)?$})
|
||||
|
||||
require "socket"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user