feature_pack 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -0
- 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: 0b2b181d20483601489269c26d34f83436468036d398eb0edba87c63e63967f2
|
4
|
+
data.tar.gz: 9d92cea751de537e7728c7883980d41bbe3e555cf19cdfb6184f47b36ee31f6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98547406e8fe2b601e209a930807f725d745b9cf5bb725f79171f1bc96082d6cdbb510db9fd38e248f0807f18fc5b0c710d84a6b4458b207e5c8514b9e86f548
|
7
|
+
data.tar.gz: 121aecadd6a795ffe615b1209bd14d295ccf9bb89b466f84fc6018ac1e2ae2174aa7d56675c7b2c37619cef1742652aae548a2d543f7f992a431b01c3b232f23
|
data/README.md
CHANGED
@@ -66,3 +66,25 @@ end
|
|
66
66
|
def feature_pack_group_path(group, *params) = send("feature_pack_#{group.name}_path".to_sym, *params)
|
67
67
|
def feature_pack_path(group, feature, *params) = send("feature_pack_#{group.name}_#{feature.name}_path".to_sym, *params)
|
68
68
|
```
|
69
|
+
|
70
|
+
```ruby
|
71
|
+
# config/initializers/assets.rb
|
72
|
+
|
73
|
+
Rails.application.config.assets.precompile += FeaturePack.javascript_files_paths
|
74
|
+
```
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
# config/importmap.rb
|
78
|
+
|
79
|
+
FeaturePack.javascript_files_paths.each do |js_file_path|
|
80
|
+
extensionless_js_file_path = js_file_path.delete_suffix('.js')
|
81
|
+
pin extensionless_js_file_path, to: extensionless_js_file_path, preload: false
|
82
|
+
end
|
83
|
+
```
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
# config/routes.rb
|
87
|
+
namespace :feature_pack, path: nil do
|
88
|
+
draw :feature_pack_routes
|
89
|
+
end
|
90
|
+
```
|