Sha256: 84a720b9f75d0074a557f3e48fc7e82a379c65360ffb4a9bdf0a8d8153c56fa2

Contents?: true

Size: 359 Bytes

Versions: 8

Compression:

Stored size: 359 Bytes

Contents

@ruby2js_options = {filters: ['stimulus'], eslevel: 2022}
eval IO.read "#{__dir__}/webpacker.rb"

insert_into_file Rails.root.join("app/javascript/controllers/index.js").to_s,
  '(\\.rb)?', after: '_controller\\.js'

insert_into_file Rails.root.join("app/javascript/packs/application.js").to_s,
  "import \"../controllers\"\n", after: "import \"channels\"\n"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby2js-5.1.1 lib/tasks/install/stimulus-webpacker.rb
ruby2js-5.1.0 lib/tasks/install/stimulus-webpacker.rb
ruby2js-5.0.1 lib/tasks/install/stimulus-webpacker.rb
ruby2js-5.0.0 lib/tasks/install/stimulus-webpacker.rb
ruby2js-4.2.2 lib/tasks/install/stimulus-webpacker.rb
ruby2js-4.2.1 lib/tasks/install/stimulus-webpacker.rb
ruby2js-4.2.0 lib/tasks/install/stimulus-webpacker.rb
ruby2js-4.1.7 lib/tasks/install/stimulus-webpacker.rb