aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-10-02 15:47:01 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-10-02 15:47:01 -0700
commitfc2c786e1236737f2e06384969e84dd88641b9b3 (patch)
tree186a96960b5aff64dbf12112006d85e1d22ac5a7 /lib
parentb5d14e3291a3b20f004d881836a2a42cb129f898 (diff)
downloadrails-fc2c786e1236737f2e06384969e84dd88641b9b3.tar.gz
rails-fc2c786e1236737f2e06384969e84dd88641b9b3.tar.bz2
rails-fc2c786e1236737f2e06384969e84dd88641b9b3.zip
Add via yarn in the installer
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/actiontext.rake7
1 files changed, 6 insertions, 1 deletions
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