mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove the transpilation message (#23998)
This commit is contained in:
@@ -310,8 +310,7 @@ task "assets:precompile:compress_js": "environment" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
task "assets:precompile:theme_transpiler": "environment" do
|
task "assets:precompile:theme_transpiler": "environment" do
|
||||||
path = DiscourseJsProcessor::Transpiler.build_theme_transpiler
|
DiscourseJsProcessor::Transpiler.build_theme_transpiler
|
||||||
puts "Compiled theme-transpiler: #{path}"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Run these tasks **before** Rails' "assets:precompile" task
|
# Run these tasks **before** Rails' "assets:precompile" task
|
||||||
|
|||||||
@@ -8,10 +8,9 @@ RSpec.describe "assets:precompile" do
|
|||||||
|
|
||||||
describe "assets:precompile:theme_transpiler" do
|
describe "assets:precompile:theme_transpiler" do
|
||||||
it "compiles the js processor" do
|
it "compiles the js processor" do
|
||||||
out = capture_stdout { Rake::Task["assets:precompile:theme_transpiler"].invoke }
|
path = Rake::Task["assets:precompile:theme_transpiler"].actions.first.call
|
||||||
|
|
||||||
expect(out).to match(%r{Compiled theme-transpiler: tmp/theme-transpiler})
|
expect(path).to match(%r{tmp/theme-transpiler})
|
||||||
path = out.match(/: (.+)/)[1]
|
|
||||||
expect(File.exist?(path)).to eq(true)
|
expect(File.exist?(path)).to eq(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user