Stimulus.js

Adds Stimulus.js to Webpacker
Icons/chart bar
Used 426 times
Created by
A Andrea Fomera

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/XLEsWz"
Template Source

Review the code before running this template on your machine.

# Check if they need us to add webpacker for them.
run "bundle add webpacker" if !defined?(Webpacker)

# Install the package and then run yarn afterwards.
rails_command "webpacker:install:stimulus"
Comments

Sign up or Login to leave a comment.