matestack-ui-core
matestack-ui-core copied to clipboard
Rails engine based on matestack
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
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 :)