neo_components 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/neo_components/engine.rb +7 -1
- data/lib/neo_components/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9eab280a688ba36f0274ffb36e8ef56a519b4440d2dff10d45743df9380a7656
|
|
4
|
+
data.tar.gz: d7deae6912ff9b5bd9a358f67b0a4a072e5b72cd5df2ad115678c10b1f3071af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ecc2e75fad5e59e872282a7ee9f2cc0fb5ba440eee2f7626186c27b40b3a14558375b89e005dda767bfb0c9bd6d62e85c7ef08717b9483dcbc11fb8b7ae2dcc8
|
|
7
|
+
data.tar.gz: c88f480793f8b33074e950f4befaa9f7f1193e844db6551788620350626caaeaa78fa4b98371fa5ca8b1f5e357029c22350ed55f07d6fdf39a6b21ce7c4a8609
|
|
@@ -6,11 +6,17 @@ module NeoComponents
|
|
|
6
6
|
Pathname.new(File.expand_path("../..", __dir__))
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
# Register Sprockets asset paths (icons
|
|
9
|
+
# Register Sprockets asset paths (icons, stylesheets, and javascript)
|
|
10
10
|
initializer "neo_components.assets" do |app|
|
|
11
11
|
app.config.assets.paths << Engine.gem_root.join("app/assets/stylesheets")
|
|
12
12
|
app.config.assets.paths << Engine.gem_root.join("app/assets/icons")
|
|
13
|
+
app.config.assets.paths << Engine.gem_root.join("app/javascript")
|
|
13
14
|
app.config.assets.precompile += %w[icons.css]
|
|
15
|
+
# Declare all Stimulus controllers as precompilable so importmap can resolve their URLs
|
|
16
|
+
controllers_glob = Engine.gem_root.join("app/javascript/neo_components/controllers/*.js")
|
|
17
|
+
app.config.assets.precompile += Dir[controllers_glob].map do |f|
|
|
18
|
+
"neo_components/controllers/#{File.basename(f)}"
|
|
19
|
+
end
|
|
14
20
|
end
|
|
15
21
|
|
|
16
22
|
# Register gem view path so partials under app/views/ are found
|