Alpine JS

Alpine JS Integration for Lucky Framework
Icons/chart bar
Used 25 times
Created by
M Massimiliano Bertinetti

Usage
From within a Lucky application with the bloat gem installed, run:
bloat with https://railsbytes.com/script/zmnsb4

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

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

Review the code before running this template on your machine.

def yarn(*packages)
  run("yarn add #{packages.join(" ")}")
end

# Add StimulusJS to package.json
yarn "alpinejs"

append_to_file "src/js/app.js" do<<~EOF
  require('alpinejs')
  EOF
end

run("yarn install")
Comments

Sign up or Login to leave a comment.