stimulus-rails 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/stimulus-loading.js +7 -5
- data/app/assets/javascripts/stimulus.js +272 -111
- data/app/assets/javascripts/stimulus.min.js +1 -1
- data/app/assets/javascripts/stimulus.min.js.map +1 -1
- data/lib/generators/stimulus/stimulus_generator.rb +3 -1
- data/lib/stimulus/version.rb +1 -1
- metadata +3 -3
@@ -3,10 +3,12 @@ require "rails/generators/named_base"
|
|
3
3
|
class StimulusGenerator < Rails::Generators::NamedBase # :nodoc:
|
4
4
|
source_root File.expand_path("templates", __dir__)
|
5
5
|
|
6
|
+
class_option :skip_manifest, type: :boolean, default: false, desc: "Don't update the stimulus manifest"
|
7
|
+
|
6
8
|
def copy_view_files
|
7
9
|
@attribute = stimulus_attribute_value(controller_name)
|
8
10
|
template "controller.js", "app/javascript/controllers/#{controller_name}_controller.js"
|
9
|
-
rails_command "stimulus:manifest:update" unless Rails.root.join("config/importmap.rb").exist?
|
11
|
+
rails_command "stimulus:manifest:update" unless Rails.root.join("config/importmap.rb").exist? || options[:skip_manifest]
|
10
12
|
end
|
11
13
|
|
12
14
|
private
|
data/lib/stimulus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stimulus-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Stephenson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-08-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
79
|
+
rubygems_version: 3.4.10
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: A modest JavaScript framework for the HTML you already have.
|