frozen_rails 0.0.6 → 0.0.7
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79009959a35c4871ccbb2848610e9d79f5403eba5f03364822ced61d5f22cc48
|
|
4
|
+
data.tar.gz: 9f590dcde282590241cc28fe84f0bc1030bd2163e204915be7a84d5f62ed4555
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7c120056fdfcd623249e6005551a1b3b4c847238285c956b6c98064566df5532de01ffe85d2f300ed2e2edae2748600af140b92e850f3d4836c6dd3abe4907d
|
|
7
|
+
data.tar.gz: 26dcf155f28dfdf23a85107d310a22f9d1f131a45bb4bb7b0674a5fe59ae1f0424d4592513978359bed24708d34dc370c0bf6b4255dc82e98e74c24ea55ba40e
|
data/lib/frozen_rails/version.rb
CHANGED
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
<link rel="icon" href="/icon.png" type="image/png">
|
|
18
18
|
<link rel="icon" href="/icon.svg" type="image/svg+xml">
|
|
19
19
|
<link rel="apple-touch-icon" href="/icon.png">
|
|
20
|
-
|
|
20
|
+
<%# Use propshaft in development and precompiled_assets in production. Very brittle. %>
|
|
21
|
+
<% if Rails.env.development? %>
|
|
22
|
+
<%= stylesheet_link_tag :app %>
|
|
23
|
+
<% else %>
|
|
24
|
+
<%= stylesheet_link_tag "application" %>
|
|
25
|
+
<% end %>
|
|
21
26
|
<%= javascript_include_tag "application", type: "module", defer: true %>
|
|
22
27
|
</head>
|
|
23
28
|
|
|
@@ -29,11 +29,12 @@ class ComponentGenerator < Rails::Generators::NamedBase
|
|
|
29
29
|
template "jasmine_spec.js.tt", File.join("test/components", class_path, "#{file_name}_component_spec.js")
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
end
|
|
32
|
+
# Needs to only apply to files with a git diff. Otherwise, very annoying.
|
|
33
|
+
# def fix_module_nesting_via_rubocop_because_it_was_impossible_to_get_module_namespacing_to_work_as_expected
|
|
34
|
+
# in_root do
|
|
35
|
+
# system("bash", "-c", 'bin/rubocop --only Style/ClassAndModuleChildren,Layout/IndentationWidth,Layout/CommentIndentation --autocorrect-all --force-exclusion --config <(echo "Style/ClassAndModuleChildren: { EnforcedStyle: nested }")')
|
|
36
|
+
# end
|
|
37
|
+
# end
|
|
37
38
|
|
|
38
39
|
private
|
|
39
40
|
|
|
@@ -131,6 +131,8 @@ YAML4
|
|
|
131
131
|
config.view_component.generate.preview_path = "test/components"
|
|
132
132
|
config.view_component.generate.locale = true
|
|
133
133
|
config.asset_path = "/assets"
|
|
134
|
+
# Use propshaft in development and precompiled_assets in production. Very brittle.
|
|
135
|
+
config.assets.paths << Rails.root.join("app/assets") if Rails.env.development?
|
|
134
136
|
RUBY
|
|
135
137
|
end
|
|
136
138
|
|
|
@@ -168,7 +170,7 @@ YAML4
|
|
|
168
170
|
|
|
169
171
|
def copy_demo_component
|
|
170
172
|
copy_directory "demo_component", "app/components"
|
|
171
|
-
copy_directory "demo_component_test", "
|
|
173
|
+
copy_directory "demo_component_test", "test/components"
|
|
172
174
|
end
|
|
173
175
|
end
|
|
174
176
|
end
|