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

Rails engine based on matestack #572

Open
sebyx07 opened this issue Nov 25, 2021 · 1 comment
Open

Rails engine based on matestack #572

sebyx07 opened this issue Nov 25, 2021 · 1 comment

Comments

@sebyx07
Copy link

sebyx07 commented Nov 25, 2021

Hey, I'm going to build gem(rails engine), something like active-admin, but with matestack. I've made a repo below with the boilerplate you need for an engine to work with matestack.

https://github.com/sebyx07/matestack_engine_boilerplate

I tried using the new https://github.com/rails/importmap-rails from rails 7, but I couldn't properly import the js needed, but I ended up using https://generator.jspm.io with systemjs.

https://github.com/sebyx07/matestack_engine_boilerplate/blob/master/app/views/matestack_engine_boilerplate/shared/_matestack_cdn.html.erb

I chose this path because it's quite hard to get js bundled and compiled with webpacker into a gem

I still have some issues with importing matestack-ui-bootstrap in js, because systemjs doesn't support .scss files. But I think going with simple .css files would solve this.

IMO, matestack is going to be very popular, because I've used it a lot recently and I've been super productive compared to a react rails app. Having useful rails engines built with it which you can mount right away would bring it in front nonetheless

@jonasjabari
Copy link
Member

Hey @sebyx07!

Thanks a lot for your message here and the work you put in to create the boilerplate gem! :) I'm very excited to see what your're currently towards something like active-admin. That's a perfect usecase for matestack and I've thought about building this as well in the past.
We should have a call sometime soon! I guess @keithrowell would be super happy to join this call as well and to brainstorm/review what you've done or planning to do! Feel free to join discord and ping me there :)

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

No branches or pull requests

2 participants