This PR adds support to use this repo as an NPM/Yarn package so we can use it with Webpacker or any other assets bundler.
I implemented this so it uses the same source files as the Rails gem so any change in the JS and CSS is available in both cases. I didn't change the Rails gem-related code this same repo can be used in both ways.
After pack&publish NPM module has minimum files and should look like:
This PR adds support to use this repo as an NPM/Yarn package so we can use it with Webpacker or any other assets bundler. I implemented this so it uses the same source files as the Rails gem so any change in the JS and CSS is available in both cases. I didn't change the Rails gem-related code this same repo can be used in both ways.
After pack&publish NPM module has minimum files and should look like: