Add yarn install task to mina
This commit is contained in:
parent
264338a495
commit
d6000ca56c
1 changed files with 11 additions and 1 deletions
|
@ -123,6 +123,16 @@ task :setup => :environment do
|
|||
queue %[echo "-----> Be sure to edit 'shared/environments/staging.rb'."]
|
||||
end
|
||||
|
||||
namespace :yarn do
|
||||
desc "Install package dependencies using yarn."
|
||||
task :install do
|
||||
queue %{
|
||||
echo "-----> Installing package dependencies using yarn"
|
||||
#{echo_cmd %[yarn install --non-interactive]}
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
desc "Deploys the current version to the server."
|
||||
task :deploy => :environment do
|
||||
queue 'export PATH=$PATH:/usr/local/rbenv/bin:/usr/local/rbenv/shims'
|
||||
|
@ -133,7 +143,7 @@ task :deploy => :environment do
|
|||
invoke :'git:clone'
|
||||
invoke :'deploy:link_shared_paths'
|
||||
invoke :'bundle:install'
|
||||
command 'yarn install --non-interactive'
|
||||
invoke :'yarn:install'
|
||||
invoke :'rails:db_migrate'
|
||||
invoke :'rails:assets_precompile:force'
|
||||
|
||||
|
|
Loading…
Reference in a new issue