File tree Expand file tree Collapse file tree 5 files changed +17
-38
lines changed Expand file tree Collapse file tree 5 files changed +17
-38
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
2- begin
3- load File . expand_path ( '../spring' , __FILE__ )
4- rescue LoadError => e
5- raise unless e . message . include? ( 'spring' )
6- end
72APP_PATH = File . expand_path ( '../config/application' , __dir__ )
8- require_relative ' ../config/boot'
9- require ' rails/commands'
3+ require_relative " ../config/boot"
4+ require " rails/commands"
Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
2- begin
3- load File . expand_path ( '../spring' , __FILE__ )
4- rescue LoadError => e
5- raise unless e . message . include? ( 'spring' )
6- end
7- require_relative '../config/boot'
8- require 'rake'
2+ require_relative "../config/boot"
3+ require "rake"
94Rake . application . run
Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
2- require ' fileutils'
2+ require " fileutils"
33
44# path to your application root.
55APP_ROOT = File . expand_path ( '..' , __dir__ )
@@ -9,16 +9,16 @@ def system!(*args)
99end
1010
1111FileUtils . chdir APP_ROOT do
12- # This script is a way to setup or update your development environment automatically.
13- # This script is idempotent, so that you can run it at anytime and get an expectable outcome.
12+ # This script is a way to set up or update your development environment automatically.
13+ # This script is idempotent, so that you can run it at any time and get an expectable outcome.
1414 # Add necessary setup steps to this file.
1515
1616 puts '== Installing dependencies =='
1717 system! 'gem install bundler --conservative'
1818 system ( 'bundle check' ) || system! ( 'bundle install' )
1919
2020 # Install JavaScript dependencies
21- # system( 'bin/yarn')
21+ system! 'bin/yarn'
2222
2323 # puts "\n== Copying sample files =="
2424 # unless File.exist?('config/database.yml')
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22APP_ROOT = File . expand_path ( '..' , __dir__ )
33Dir . chdir ( APP_ROOT ) do
4- begin
5- exec "yarnpkg" , *ARGV
6- rescue Errno ::ENOENT
4+ yarn = ENV [ "PATH" ] . split ( File ::PATH_SEPARATOR ) .
5+ select { |dir | File . expand_path ( dir ) != __dir__ } .
6+ product ( [ "yarn" , "yarn.cmd" , "yarn.ps1" ] ) .
7+ map { |dir , file | File . expand_path ( file , dir ) } .
8+ find { |file | File . executable? ( file ) }
9+
10+ if yarn
11+ exec yarn , *ARGV
12+ else
713 $stderr. puts "Yarn executable was not detected in the system."
814 $stderr. puts "Download Yarn at https://yarnpkg.com/en/docs/install"
915 exit 1
You can’t perform that action at this time.
0 commit comments