DEV: adjust rake autospec to work with renamed es6 files

We no longer use es6 files, update autospec
This commit is contained in:
Sam Saffron 2020-03-31 14:40:40 +11:00
parent fcc5ef9625
commit 6d3d9ecf6c
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5

View File

@ -16,9 +16,9 @@ module Autospec
end end
# Discourse specific # Discourse specific
watch(%r{^app/assets/javascripts/discourse/(.+)\.js.es6$}) { |m| "test/javascripts/#{m[1]}-test.js.es6" } watch(%r{^app/assets/javascripts/discourse/(.+)\.js$}) { |m| "test/javascripts/#{m[1]}-test.js" }
watch(%r{^app/assets/javascripts/admin/(.+)\.js.es6$}) { |m| "test/javascripts/admin/#{m[1]}-test.js.es6" } watch(%r{^app/assets/javascripts/admin/(.+)\.js$}) { |m| "test/javascripts/admin/#{m[1]}-test.js" }
watch(%r{^test/javascripts/.+\.js.es6$}) watch(%r{^test/javascripts/.+\.js$})
RELOADERS = Set.new RELOADERS = Set.new
def self.reload(pattern) def self.reload(pattern)
@ -33,7 +33,7 @@ module Autospec
reload(%r{^test/javascripts/(helpers|mixins)/.+\.js(\.es6)?$}) reload(%r{^test/javascripts/(helpers|mixins)/.+\.js(\.es6)?$})
reload("test/javascripts/test_helper.js") reload("test/javascripts/test_helper.js")
watch(%r{^plugins/.*/test/.+\.js.es6$}) watch(%r{^plugins/.*/test/.+\.js(\.es6)?$})
require "socket" require "socket"