The javascript:install:shared and javascript:install:node_shared tasks serve only as prerequisites for the other installer tasks; they should not be run on their own (nor listed with rake --tasks). By replacing those tasks with corresponding calls to Thor's apply method, we avoid the overhead of running bin/rails app:template (and bundle install) multiple times.
This commit also renames install_node.rb to install_procfile.rb since it is concerned with generating a Procfile.dev file.
As a point of comparison, running the tests from #182 without this PR:
$ time bundle exec appraisal rake test
real 0m50.328s
user 7m3.732s
sys 1m24.657s
And running them with this PR:
$ time bundle exec appraisal rake test
real 0m28.588s
user 3m46.645s
sys 0m47.999s
The
javascript:install:shared
andjavascript:install:node_shared
tasks serve only as prerequisites for the other installer tasks; they should not be run on their own (nor listed withrake --tasks
). By replacing those tasks with corresponding calls to Thor'sapply
method, we avoid the overhead of runningbin/rails app:template
(andbundle install
) multiple times.This commit also renames
install_node.rb
toinstall_procfile.rb
since it is concerned with generating aProcfile.dev
file.As a point of comparison, running the tests from #182 without this PR:
And running them with this PR: