0.1.12 • Published 2 years ago
lp-stimulus-components v0.1.12
lp-stimulus-components
Stimulus components for Ruby on Rails projects.
Contributing
Local Workflow
Run $ yarn start to serve index.js on port 4000
In a Rails application, use import maps to pin lp-stimulus-components to http://localhost:4000/index.js:
# config/importmap.rb
pin "lp-stimulus-components", to: "http://localhost:4000/index.js"Import and use functions provided by lp-stimulus-components in the JavaScript files for your Rails app
// application.js
import { helloWorld } from 'lp-stimulus-components'