-
-
Notifications
You must be signed in to change notification settings - Fork 315
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 webpacker #2424
Remove webpacker #2424
Conversation
985d5dc
to
e40b463
Compare
Webpacker is not supported anymore by the Rails team and we have plenty of other options nowadays. The installer supports either jsbundling-rails or importmaps-rails and will auto detect which one to use. The dummy app uses jsbundling rails with esbuild as bundler for fast CI builds.
If someone uses the alchemy admin with sourcemaps we need a built package.
We do not have a bundler locally so we need to use the bundled package.
We want to be sure yarn founds the package
d09f9d6
to
9420293
Compare
log "Installed new npm package." | ||
desc "Update npm package." | ||
if File.exist? Rails.root.join("config/importmap.rb") | ||
`bin/importmap pin @alchemy_cms/admin@~#{Alchemy.version}` |
Check warning
Code scanning / Brakeman
Possible command injection.
if File.exist? Rails.root.join("config/importmap.rb") | ||
`bin/importmap pin @alchemy_cms/admin@~#{Alchemy.version}` | ||
elsif File.exist? Rails.root.join("package.json") | ||
`yarn add @alchemy_cms/admin@~#{Alchemy.version}` |
Check warning
Code scanning / Brakeman
Possible command injection.
Supports removing webpacker and adding jsbundling-rails
cf2273d
to
01f9a55
Compare
This is not a command injection because we now the content of `Alchemy.version`. It is a harmless string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goodbye webpacker 👋
What is this pull request for?
Remove Webpacker and detect either importmaps or jsbundling-rails during install
Closes #2388
Checklist