lux_assets 0.2.20 → 0.2.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11aafa0f880854b0d72d03a879ea448f3cb2bf3baeff25114833b3b086c77af3
4
- data.tar.gz: 3653e70f5cac1d834fc71f5719fc3a2bc6ee527a00701eda55ea9e02629d045b
3
+ metadata.gz: f5a80b7e415bc8508b25b9547bd665a20bccbdd815eb58d8bf972687b279d580
4
+ data.tar.gz: cef5346c906005e2503e83bfbcd013e2950bf3496d53e204cab81372e93dc174
5
5
  SHA512:
6
- metadata.gz: 60d184daa3e560cca0599d2e3764d74290dc66fc0fa5d5bf5de0699a069fe8b11d6adc98aebf629cedd1204c14828580ffc2d81c1d6002d99bd9c391fd3cabf9
7
- data.tar.gz: f10bd703f5f00aefd7194fc8e60ac684faa39ac8ce5943e865adfcd3720fe2fc35d326b30353df588250d6a80b981a3f0276761ff8547dd829418551d44d589e
6
+ metadata.gz: 713f339065e96c071fa0e99e2608f0d0964839e56002fc8c17ce87bc63426f6a7f7141ac50be31be772db0f4a1d969f92cc9eabdd215f30ae063bc4c69b7a579
7
+ data.tar.gz: 4511d80cdfa74612abe652541e844726834cb04e8cdf5af38a8b1bb373cced1f8cfc2c3b09ba9a7ea4a6f9f64918c43bc1bb4f0912842c49aca3fb7085d5ea58
data/.version CHANGED
@@ -1 +1 @@
1
- 0.2.20
1
+ 0.2.21
@@ -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 = './node_modules/babel-cli/.bin/babel --minified --no-comments --compact true -o "%{file}" "%{file}"' % { file: @asset_path }
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
@@ -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
- @assets[ext][@name] = @files
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.20
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-01-26 00:00:00.000000000 Z
11
+ date: 2019-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize