From fc2c786e1236737f2e06384969e84dd88641b9b3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 2 Oct 2018 15:47:01 -0700 Subject: Add via yarn in the installer --- lib/tasks/actiontext.rake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/tasks/actiontext.rake b/lib/tasks/actiontext.rake index d451b0fec1..6ec30f86e7 100644 --- a/lib/tasks/actiontext.rake +++ b/lib/tasks/actiontext.rake @@ -5,7 +5,7 @@ namespace :action_text do Rake::Task["install:migrations"].clear_comments desc "Copy over the migration, stylesheet, and JavaScript files" - task install: %w( environment copy_migrations copy_stylesheet copy_fixtures ) + task install: %w( environment copy_migrations copy_stylesheet copy_fixtures yarn_add ) task :copy_migrations do Rake::Task["active_storage:install:migrations"].invoke @@ -32,4 +32,9 @@ namespace :action_text do FileUtils.cp FIXTURE_TEMPLATE_PATH, FIXTURE_APP_PATH end end + + task :yarn_add do + # FIXME: Replace with release version on release + system "yarn add https://github.com/basecamp/actiontext" + end end -- cgit v1.2.3