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

Avoid installing webpacker in sandbox #3326

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

kennyadsl
Copy link
Member

@kennyadsl kennyadsl commented Sep 4, 2019

Description

With rails/rails#34275 rails new option named --skip_yarn is changed into --skip_javascript. This PR reflects this change and keeps allowing us to still use sprockets for JS in our sandbox.

TODO

  • Using this option with Rails 6, sandbox does not contain any app/assets/javascripts folder, so I think Solidus manifests is not loaded correctly. This needs to be investigated. My fault, that folder is not needed in the sandbox since the sandbox application will use the manifests defined in the solidus gems.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • [ ] I have updated Guides and README accordingly to this change (if needed)
  • [ ] I have added tests to cover this change (if needed)

@kennyadsl kennyadsl self-assigned this Sep 4, 2019
@kennyadsl kennyadsl added the WIP label Sep 4, 2019
@kennyadsl kennyadsl changed the title Avoid installing webpacker in sandbox [WIP] Avoid installing webpacker in sandbox Sep 4, 2019
@kennyadsl kennyadsl removed the WIP label Sep 4, 2019
@kennyadsl kennyadsl changed the title [WIP] Avoid installing webpacker in sandbox Avoid installing webpacker in sandbox Sep 4, 2019
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks

lib/sandbox.sh Outdated Show resolved Hide resolved
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.
@kennyadsl kennyadsl force-pushed the kennyadsl/no-webpacker-sandbox branch from 8e4b8c9 to 5f253b4 Compare September 4, 2019 10:42
@kennyadsl kennyadsl requested a review from tvdeyen September 4, 2019 11:36
Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

@kennyadsl kennyadsl merged commit 8862d11 into solidusio:master Sep 9, 2019
@kennyadsl kennyadsl deleted the kennyadsl/no-webpacker-sandbox branch September 9, 2019 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants