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, 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-bootstrapin 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