Skip to content

Commit

Permalink
fix: try fixing babel config in dummy_app
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef-Rousset committed Sep 20, 2024
1 parent 8aedc35 commit 47d004f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@

require "decidim/dev/common_rake"

def fix_babel_config(path)
Dir.chdir(path) do
babel_config = "#{Dir.pwd}/babel.config.json"
File.delete(babel_config) if File.exist?(babel_config)
FileUtils.cp("#{__dir__}/babel.config.json", Dir.pwd)
end
end

desc "Generates a dummy app for testing"
task test_app: "decidim:generate_external_test_app"
task test_app: "decidim:generate_external_test_app" do
ENV["RAILS_ENV"] = "test"
fix_babel_config("spec/decidim_dummy_app")
end

desc "Generates a development app."
task development_app: "decidim:generate_external_development_app"

0 comments on commit 47d004f

Please sign in to comment.