esbuild 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/esbuild/flags.rb +5 -0
- data/lib/esbuild/version.rb +2 -2
- 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: 2e9c31ca911178faee51719df2be97586bfd1c4c2a4503e67fe95426efd2d205
|
4
|
+
data.tar.gz: 335ddbd7796cc967fcbf5ae22f0af0c1e339514474c6a1ea6bd60bf4fa78a2e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d38fb43578a99193341827169cf4355ebbf83fb03597958faa155b4e220e1e2e36ebc48453edf4d081404cabb3d78db2835cdacc55204a347b4280a90bb3a1a
|
7
|
+
data.tar.gz: 451169a47ccac6c07afed20c69b8de217fc9f8a95a8e7a02d72fdf4bc80072cd030329cf26eaff6d2c20f11fb975fa7e79fc5422c4e083b1d5ba3f559837ba30
|
data/lib/esbuild/flags.rb
CHANGED
@@ -100,12 +100,14 @@ module Esbuild
|
|
100
100
|
get_flag(options, :external, Array) { |v| v.each { |name| flags << "--external:#{name}" } }
|
101
101
|
get_flag(options, :banner, Hash) do |v|
|
102
102
|
v.each do |type, value|
|
103
|
+
type = type.to_s
|
103
104
|
raise ArgumentError, "Invalid banner file type: #{type}" if type.include?("=")
|
104
105
|
flags << "--banner:#{type}=#{value}"
|
105
106
|
end
|
106
107
|
end
|
107
108
|
get_flag(options, :footer, Hash) do |v|
|
108
109
|
v.each do |type, value|
|
110
|
+
type = type.to_s
|
109
111
|
raise ArgumentError, "Invalid footer file type: #{type}" if type.include?("=")
|
110
112
|
flags << "--footer:#{type}=#{value}"
|
111
113
|
end
|
@@ -113,12 +115,14 @@ module Esbuild
|
|
113
115
|
get_flag(options, :inject, Array) { |v| v.each { |name| flags << "--inject:#{name}" } }
|
114
116
|
get_flag(options, :loader, Hash) do |v|
|
115
117
|
v.each do |ext, loader|
|
118
|
+
ext = ext.to_s
|
116
119
|
raise ArgumentError, "Invalid loader extension: #{ext}" if ext.include?("=")
|
117
120
|
flags << "--loader:#{ext}=#{loader}"
|
118
121
|
end
|
119
122
|
end
|
120
123
|
get_flag(options, :out_extension, Hash) do |v|
|
121
124
|
v.each do |ext, extension|
|
125
|
+
ext = ext.to_s
|
122
126
|
raise ArgumentError, "Invalid out extension: #{ext}" if ext.include?("=")
|
123
127
|
flags << "--out-extension:#{ext}=#{extension}"
|
124
128
|
end
|
@@ -198,6 +202,7 @@ module Esbuild
|
|
198
202
|
get_flag(options, :jsx_fragment, String) { |v| flags << "--jsx-fragment=#{v}" }
|
199
203
|
get_flag(options, :define, Hash) do |v|
|
200
204
|
v.each do |key, value|
|
205
|
+
key = key.to_s
|
201
206
|
raise "Invalid define: #{key}" if key.include? "="
|
202
207
|
flags << "--define:#{key}=#{value}"
|
203
208
|
end
|
data/lib/esbuild/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esbuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bouke van der Bijl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|