Class: VueGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- VueGenerator
- Defined in:
- lib/generators/vue/vue_generator.rb
Constant Summary collapse
- PACKS_PATH =
class_option :helpers, type: :boolean, default: false
"app/javascript/packs"- PARTS_PATH =
"app/javascript/parts"
Instance Method Summary collapse
Instance Method Details
#vue ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/generators/vue/vue_generator.rb', line 12 def vue if [:single] create_single_file_component_using(name) else create_component_with_seperate_concern_using(name) end # options[:vuex] ? add_vuex_to_component(name) : nil # options[:helpers] ? add_helpers_to_component(name) : nil end |