Skip to content

Commit

Permalink
Dont ask whether to overwrite an existing app/javascript directory as…
Browse files Browse the repository at this point in the history
… Rails 6 will create one by default
  • Loading branch information
dhh committed Jun 7, 2018
1 parent 4917047 commit 8ca372d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/install/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@
say "Copying .browserslistrc to app root directory"
copy_file "#{__dir__}/config/.browserslistrc", ".browserslistrc"

say "Creating JavaScript app source directory"
directory "#{__dir__}/javascript", Webpacker.config.source_path
if Dir.exists?(Webpacker.config.source_path)
say "The JavaScript app source directory already exists"
else
say "Creating JavaScript app source directory"
directory "#{__dir__}/javascript", Webpacker.config.source_path
end

apply "#{__dir__}/binstubs.rb"

Expand Down

0 comments on commit 8ca372d

Please sign in to comment.