Matestack
Installs matestack
Used 17 times
M
Michael Yagudaev
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/VQLsBe"
Template Source
Review the code before running this template on your machine.
gem("matestack-ui-core")
run("mkdir app/matestack")
inject_into_class(
"app/controllers/application_controller.rb",
"ApplicationController",
" include Matestack::Ui::Core::ApplicationHelper\n"
)
run("yarn add matestack-ui-core")
inject_into_file("app/javascript/packs/application.js", "import MatestackUiCore from 'matestack-ui-core'")
# TODO: add <div id="matestack-ui"> to application.html