sprockets-esbuild 0.0.1-x64-mingw32 → 0.0.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/esbuild +29 -11
- data/exe/x64-mingw32/esbuild +0 -0
- data/lib/sprockets-esbuild/upstream.rb +14 -0
- data/lib/sprockets-esbuild/version.rb +1 -1
- data/lib/sprockets-esbuild.rb +4 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 667c35f9b00c78e64e088fcd15e956bf15e69b03b9ff06223fcec861fd5ec3bd
|
4
|
+
data.tar.gz: d3eca485d349e8e94b834e5010b2ac62d9f9bd26971c55817de83b35b276155c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 323c1332b5a5fa0ac80a708a5c71dce4105e98bfbed4a82c3717841b8af3a88447070c56a73bb5bca39df4ebb2676f8cc15917af2d26eff2eba4b0b297781dba
|
7
|
+
data.tar.gz: f0b6aa640928fe68777e3ebc38a19e656f0af97e5cc0f1c617543a19a74d956eae300a27dcfa770388ecdd548252b93aa9f0efc4aedba7a9e22808cc63f41e6b
|
data/exe/esbuild
CHANGED
@@ -1,19 +1,37 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# because rubygems shims assume a gem's executables are Ruby
|
3
3
|
|
4
|
-
require "
|
4
|
+
require "sprockets-esbuild/upstream"
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if
|
10
|
-
|
6
|
+
supported_platforms = SprocketsEsbuild::Upstream::NATIVE_PLATFORMS.keys
|
7
|
+
platform = [:cpu, :os].map { |m| Gem::Platform.local.send(m) }.join("-")
|
8
|
+
|
9
|
+
if supported_platforms.none? { |supported_platform| Gem::Platform.match(supported_platform) }
|
10
|
+
STDERR.puts(<<~ERRMSG)
|
11
|
+
ERROR: sprockets-esbuild does not support the #{platform} platform
|
12
|
+
ERRMSG
|
13
|
+
exit 1
|
14
|
+
end
|
15
|
+
|
16
|
+
exe_path = Dir.glob(File.join(__dir__, "*", "esbuild")).find do |f|
|
17
|
+
Gem::Platform.match(File.basename(File.dirname(f)))
|
11
18
|
end
|
19
|
+
if exe_path.nil?
|
20
|
+
STDERR.puts(<<~ERRMSG)
|
21
|
+
ERROR: Cannot find the esbuild executable for #{platform} in #{__dir__}
|
22
|
+
If you're using bundler, please make sure you're on the latest bundler version:
|
23
|
+
|
24
|
+
gem install bundler
|
25
|
+
bundle update --bundler
|
26
|
+
|
27
|
+
Then make sure your lock file includes this platform by running:
|
28
|
+
|
29
|
+
bundle lock --add-platform #{platform}
|
30
|
+
bundle install
|
12
31
|
|
13
|
-
|
14
|
-
|
15
|
-
|
32
|
+
See `bundle lock --help` output for details.
|
33
|
+
ERRMSG
|
34
|
+
exit 1
|
16
35
|
end
|
17
36
|
|
18
|
-
|
19
|
-
exec(command)
|
37
|
+
system exe_path, *ARGV
|
data/exe/x64-mingw32/esbuild
CHANGED
Binary file
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module SprocketsEsbuild
|
2
|
+
# constants describing the upstream esbuild project
|
3
|
+
module Upstream
|
4
|
+
VERSION = "0.14.5"
|
5
|
+
|
6
|
+
# rubygems platform name => [upstream release tarball name, tarball path]
|
7
|
+
NATIVE_PLATFORMS = {
|
8
|
+
"arm64-darwin" => ["esbuild-darwin-arm64", "package/bin/esbuild"],
|
9
|
+
"x64-mingw32" => ["esbuild-windows-64", "package/esbuild.exe"],
|
10
|
+
"x86_64-darwin" => ["esbuild-darwin-64", "package/bin/esbuild"],
|
11
|
+
"x86_64-linux" => ["esbuild-linux-64", "package/bin/esbuild"],
|
12
|
+
}
|
13
|
+
end
|
14
|
+
end
|
data/lib/sprockets-esbuild.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-esbuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
|
+
- Mike Dalessio
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
12
|
+
date: 2021-12-26 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: sprockets
|
@@ -38,12 +39,13 @@ files:
|
|
38
39
|
- exe/x64-mingw32/esbuild
|
39
40
|
- lib/sprockets-esbuild.rb
|
40
41
|
- lib/sprockets-esbuild/transformers.rb
|
42
|
+
- lib/sprockets-esbuild/upstream.rb
|
41
43
|
- lib/sprockets-esbuild/version.rb
|
42
|
-
homepage: https://github.com/
|
44
|
+
homepage: https://github.com/rubys/sprockets-esbuild
|
43
45
|
licenses:
|
44
46
|
- MIT
|
45
47
|
metadata:
|
46
|
-
homepage_uri: https://github.com/
|
48
|
+
homepage_uri: https://github.com/rubys/sprockets-esbuild
|
47
49
|
post_install_message:
|
48
50
|
rdoc_options: []
|
49
51
|
require_paths:
|