-
Notifications
You must be signed in to change notification settings - Fork 293
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
Webpacker #319
Conversation
lib/generators/activeadmin_addons/webpacker/webpacker_generator.rb
Outdated
Show resolved
Hide resolved
lib/generators/activeadmin_addons/webpacker/webpacker_generator.rb
Outdated
Show resolved
Hide resolved
lib/generators/activeadmin_addons/webpacker/webpacker_generator.rb
Outdated
Show resolved
Hide resolved
lib/generators/activeadmin_addons/webpacker/webpacker_generator.rb
Outdated
Show resolved
Hide resolved
app/assets/stylesheets/activeadmin_addons/imports/webpack/jquery-datepicker.scss
Outdated
Show resolved
Hide resolved
|
||
begin | ||
prepend_file("#{file_path}.scss", css_assets) | ||
rescue |
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.
Avoid rescuing without specifying an error class.
|
||
begin | ||
inject_into_file("#{file_path}.js.coffee", coffee_assets, after: reference) | ||
rescue |
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.
Avoid rescuing without specifying an error class.
app/assets/stylesheets/activeadmin_addons/imports/jquery-datepicker.scss
Outdated
Show resolved
Hide resolved
Thanks @gmq for this PR. Any update on this? What's still needed for it to get merged and released? |
+1 Any updates on this? Can it be merged? I Am willing to help if anything is still needed. |
9ba9b10
to
47f717b
Compare
Is this going to be merged soon? |
excellent work here. can you tell when this will be merged? |
I can't give a specific timeline, it still needs to be reviewed by the team and time is scarce these days. But it should be sooner rather than later! |
Looking forward to this ! Much needed ! |
e915494
to
5b5edb6
Compare
@gmq @rjherrera Thanks for the amazing work! Looks like it's very close to the finish line. How can we help ? Regards |
@gmq Great work on this! I'd love to start using it. What are we waiting on to merge? A review from @hidalgoegz ? |
We're ready to merge to master! We'd appreciate any bug reports or other feedback about this so if you'd like to test it before we make a new release, please add the following to your Gemfile:
|
@gmq this is great! Out of curiosity, are there also plans to remove the |
@gmq I can't make it work on activeadmin latest version. Just says activeadmin_addons/all cannot be found. yarn was added, etc. Javascript file is imported but SCSS does not work even with sass-rails on the gemfile. |
I'm concerned about the comment on this change "if ActiveAdmin was installed in that mode". What about the situation where ActiveAdmin was not installed in that mode, but was later changed to use webpacker? |
Same as @djalmaaraujo I can't make it work. Node module is: I tried doing
Which fails in the first line of
|
I just merged a fix by @ParamagicDev for the documentation. The proper way to import the scss is to use
It checks |
Add support for ActiveAdmin in webpacker mode. (#298)
TODO:
TestsFor testing:
yarn prepublishOnly
inside cloned foldergem 'activeadmin_addons', path: '../activeadmin_addons'
bundle exec rails g active_admin:install --use_webpacker
bundle exec rails g activeadmin_addons:install
(ignore yarn error)
yarn add ../activeadmin_addons