Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove --skip-yarn in favor of --skip-javascript #34275

Merged
merged 2 commits into from
Oct 23, 2018

Conversation

bogdanvlviv
Copy link
Contributor

Since #33079 Webpacker the default JavaScript compiler for Rails.
Webpacker uses yarn so seems like it doesn't make sense for Rails to keep
--skip-yarn option.

@rails-bot
Copy link

r? @kamipo

(@rails-bot has picked a reviewer for you, use r? to override)

@@ -5,7 +5,7 @@ Rails.application.config.assets.version = '1.0'

# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
<%- unless options[:skip_yarn] -%>
<%- unless options[:skip_javascript] -%>
# Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this since we use webpack for js(#33079)?

@@ -5,7 +5,7 @@ Rails.application.config.assets.version = '1.0'

# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
<%- unless options[:skip_yarn] -%>
<%- unless options[:skip_javascript] -%>
# Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this since we use webpack for js(#33079)?

Since rails#33079 Webpacker the default JavaScript compiler for Rails.
Webpacker uses `yarn` so seems like it doesn't make sense for Rails to keep
`--skip-yarn` option.
@rafaelfranca rafaelfranca merged commit 7bd7241 into rails:master Oct 23, 2018
@bogdanvlviv bogdanvlviv deleted the skip_yarn-to-skip_javascript branch October 24, 2018 11:38
kennyadsl added a commit to nebulab/solidus that referenced this pull request Sep 4, 2019
With rails/rails#34275 rails new option named skip_yarn
is changed into skip_javascript.

This option allows us to still use sprockets for JS in our
sandbox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants