Class: LayeredStack::Frontend::Create
- Inherits:
-
Thor
- Object
- Thor
- LayeredStack::Frontend::Create
- Defined in:
- lib/layered_stack/frontend/create.rb
Constant Summary collapse
- CREATE_NEXT_APP_SWITCHES =
"--js --tailwind --eslint --app --src-dir --import-alias @/* --use-npm"
- FRONTEND_DIR =
"frontend"
- ASSET_FILES =
{ asset_path("tailwind.config.js") => "frontend/tailwind.config.js", asset_path("layout.js") => "frontend/src/app/layout.js", asset_path("page.js") => "frontend/src/app/page.js", asset_path("images/logo_dark.svg") => "frontend/src/app/logo_dark.svg", asset_path("images/logo_light.svg") => "frontend/src/app/logo_light.svg", }
- LOGO_FILES =
{ "images/logo_dark.svg" => "frontend/src/app/logo_dark.svg", "images/logo_light.svg" => "frontend/src/app/logo_light.svg", }
Class Method Summary collapse
Class Method Details
.asset_path(relative_path) ⇒ Object
14 15 16 |
# File 'lib/layered_stack/frontend/create.rb', line 14 def self.asset_path(relative_path) File.("../../../../templates/frontend/#{relative_path}", __FILE__) end |
.execute ⇒ Object
31 32 33 |
# File 'lib/layered_stack/frontend/create.rb', line 31 def self.execute new.execute end |