Skip to content

Commit

Permalink
fix: trying add dependencies 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 47d004f commit ecf4688
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ def fix_babel_config(path)
FileUtils.cp("#{__dir__}/babel.config.json", Dir.pwd)
end
end
def install_module(path)
Dir.chdir(path) do
system("npm i @babel/plugin-proposal-private-property-in-object")
end
end

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

desc "Generates a development app."
Expand Down

0 comments on commit ecf4688

Please sign in to comment.