Skip to content

Commit

Permalink
refactor: trying refactoring Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef-Rousset committed Sep 20, 2024
1 parent f4a72e3 commit 3efe27d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

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

def install_module(path)
Dir.chdir(path) do
system("npm i @babel/plugin-proposal-private-property-in-object")
Expand All @@ -19,7 +11,6 @@ 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

Expand Down

0 comments on commit 3efe27d

Please sign in to comment.