Sha256: c92aba3f95fd372ab2ca269aac6143d0e7ae30a3b34a83f66345ff31a1073f97
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require "decidim/dev/common_rake" require "fileutils" def install_module(path) # maintain until https://github.com/decidim/decidim/commit/51b81b37004708ab72e70993fef4634eef18ee6c is in the decidim version used FileUtils.cp("babel.config.json", "#{path}/babel.config.json") Dir.chdir(path) do system("bundle exec rake decidim_participatory_documents:install:migrations") system("bundle exec rake db:migrate") system("bundle exec rake decidim_participatory_documents:install_pdf_js") end end def seed_db(path) Dir.chdir(path) do system("bundle exec rake db:seed") end end desc "Generates a dummy app for testing" task test_app: "decidim:generate_external_test_app" do ENV["RAILS_ENV"] = "test" install_module("spec/decidim_dummy_app") end desc "Generates a development app." task :development_app do Bundler.with_original_env do generate_decidim_app( "development_app", "--app_name", "#{base_app_name}_development_app", "--path", "..", "--recreate_db", "--demo" ) end install_module("development_app") seed_db("development_app") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
decidim-participatory_documents-0.2.2 | Rakefile |
decidim-participatory_documents-0.2.1 | Rakefile |
decidim-participatory_documents-0.2.0 | Rakefile |