The Stimulus controllers required for the components to work properly must be published in an NPM package and then listed on JSPM so that they can be loaded by importmaps.
To put a new version online, it is necessary to :
- Update the version number in the
package.json
file. - Run
npm run build
- GET
https://api.jspm.io/build/@tymate/tybo@<version number>
in order to build a queue request on JSPM - Once the request is processed (it is possible to track through the JSPM:Generator), retrieve the new link and update it in the
config/importmap.rb
of the Rails project.