lux_assets 0.2.20 → 0.2.21
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/.version +1 -1
- data/lib/lux_assets/asset.rb +1 -1
- data/lib/lux_assets/base.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5a80b7e415bc8508b25b9547bd665a20bccbdd815eb58d8bf972687b279d580
|
4
|
+
data.tar.gz: cef5346c906005e2503e83bfbcd013e2950bf3496d53e204cab81372e93dc174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 713f339065e96c071fa0e99e2608f0d0964839e56002fc8c17ce87bc63426f6a7f7141ac50be31be772db0f4a1d969f92cc9eabdd215f30ae063bc4c69b7a579
|
7
|
+
data.tar.gz: 4511d80cdfa74612abe652541e844726834cb04e8cdf5af38a8b1bb373cced1f8cfc2c3b09ba9a7ea4a6f9f64918c43bc1bb4f0912842c49aca3fb7085d5ea58
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.21
|
data/lib/lux_assets/asset.rb
CHANGED
@@ -81,7 +81,7 @@ class LuxAssets::Asset
|
|
81
81
|
def compile_js
|
82
82
|
save_data @data.join(";\n") do
|
83
83
|
# babel fix and minify
|
84
|
-
command = '
|
84
|
+
command = 'yarn run babel --minified --no-comments --compact true -o "%{file}" "%{file}"' % { file: @asset_path }
|
85
85
|
LuxAssets::Cli.run command, message: "Babel filter and minify: #{@asset_path}"
|
86
86
|
end
|
87
87
|
end
|
data/lib/lux_assets/base.rb
CHANGED
@@ -27,6 +27,11 @@ module LuxAssets
|
|
27
27
|
class_eval &block
|
28
28
|
end
|
29
29
|
|
30
|
+
def bulk name=nil, &block
|
31
|
+
add_files :js, name, &block
|
32
|
+
add_files :css, name, &block
|
33
|
+
end
|
34
|
+
|
30
35
|
def js name=nil, &block
|
31
36
|
add_files :js, name, &block
|
32
37
|
end
|
@@ -165,7 +170,8 @@ module LuxAssets
|
|
165
170
|
@files = []
|
166
171
|
@ext = ext
|
167
172
|
class_eval &block
|
168
|
-
@
|
173
|
+
@files.reject! { |it| it.include?('/!') }
|
174
|
+
@assets[ext][@name] = @files.reject { || }
|
169
175
|
else
|
170
176
|
Asset.new ext, name
|
171
177
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lux_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dino Reic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|