Sha256: c2442e1368d5838fb4d4d7f39ed0008c0a9a13c9c3730408e1443d8c144c6738

Contents?: true

Size: 906 Bytes

Versions: 15

Compression:

Stored size: 906 Bytes

Contents

say "Install Bulma Form Rails"
say "Bulma Form Rails requires Stimulus@3.0.1+", :yellow

# Register Stimulus controller
copy_file File.join(Gem.loaded_specs['bulma_form_rails'].full_gem_path, 'lib', 'bulma_form_rails', 'javascript', 'controllers', 'child_objects_controller.js'), File.join('app', 'javascript', 'controllers', 'child_objects_controller.js')
append_to_file File.join('app', 'javascript', 'controllers', 'index.js'), %(\nimport ChildObjectsController from "./child_objects_controller.js"\n)
append_to_file File.join('app', 'javascript', 'controllers', 'index.js'), %(application.register("child-objects", ChildObjectsController)\n)

# Configure RBS
copy_file File.join(Gem.loaded_specs['bulma_form_rails'].full_gem_path, 'sig', 'bulma_form_helper.rbs'), File.join('sig', 'bulma_form_helper.rbs')

# Install JavaScript dependencies
system('yarn add @rails/request.js bulma-popover bulmahead')

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bulma_form_rails-1.0.6 lib/install/bulma_form_rails.rb
bulma_form_rails-1.0.5 lib/install/bulma_form_rails.rb
bulma_form_rails-1.0.4 lib/install/bulma_form_rails.rb
bulma_form_rails-1.0.3 lib/install/bulma_form_rails.rb
bulma_form_rails-1.0.2 lib/install/bulma_form_rails.rb
bulma_form_rails-1.0.1 lib/install/bulma_form_rails.rb
bulma_form_rails-1.0.0 lib/install/bulma_form_rails.rb
bulma_form_rails-0.9.9 lib/install/bulma_form_rails.rb
bulma_form_rails-0.9.8 lib/install/bulma_form_rails.rb
bulma_form_rails-0.9.7 lib/install/bulma_form_rails.rb
bulma_form_rails-0.9.6 lib/install/bulma_form_rails.rb
bulma_form_rails-0.9.5 lib/install/bulma_form_rails.rb
bulma_form_rails-0.9.4 lib/install/bulma_form_rails.rb
bulma_form_rails-0.9.3 lib/install/bulma_form_rails.rb
bulma_form_rails-0.9.1 lib/install/bulma_form_rails.rb