Assets

JavaScript

--skip-javascript [-J]

<!-- app/views/layouts/application.html.erb -->

<head>
  <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
# bin/setup

FileUtils.chdir APP_ROOT do
  # Install JavaScript dependencies
  # system('bin/yarn')
end
# bin/yarn

#!/usr/bin/env ruby

APP_ROOT = File.expand_path('..', __dir__)

Dir.chdir(APP_ROOT) do
  begin
    exec 'yarnpkg', *ARGV
  rescue Errno::ENOENT
    $stderr.puts 'Yarn executable was not detected in the system.'
    $stderr.puts 'Download Yarn at https://yarnpkg.com/en/docs/install'
    exit 1
  end
end

Sprockets

--skip-sprockets [-S]

--skip-turbolinks

Last updated