Accepting request 866955 from home:avindra:devel:languages:javascript

+esbuild

OBS-URL: https://build.opensuse.org/request/show/866955
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/esbuild?expand=0&rev=1
This commit is contained in:
Avindra Goolcharan 2021-01-26 16:31:47 +00:00 committed by Git OBS Bridge
commit be02eb14e5
6 changed files with 125 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
esbuild-0.8.33.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:484d68f2e201ca36ee65a1f54d9762bf432aa3d257dc9615f0c7d709bb8e8d90
size 952439

44
esbuild.changes Normal file
View File

@ -0,0 +1,44 @@
-------------------------------------------------------------------
Wed Jan 20 16:27:52 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- update to 0.8.33
* Fix esbuild potentially exiting early during incremental rebuilds
* Fix using the new sourcesContent option with the transform API
* Insert the object spread shim in constructor methods after the super() call
* Add the --platform=neutral API option
* Provide minified and non-minified versions of in-browser API library
- strip binary
-------------------------------------------------------------------
Thu Jan 14 18:58:10 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- update to 0.8.32
* Calling stop() on the JavaScript API is now optional
* Fix bug in metafile path generation
* Add kind to import JavaScript and CSS paths in metafile JSON
* Add support for TypeScript 4.2 syntax (abstract construct signatures)
* Add detail to errors and warnings
* Disable code warnings inside node_modules directories even with plugins
* Remove the warning about self-assignment
* Disable constant folding for the ?: operator when not minifying
-------------------------------------------------------------------
Thu Jan 7 10:37:21 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- update to 0.8.31
* Fix minification issue from previous release
* Add the option --sourcemap=both
* Tree-shake unused code with --format=iife
-------------------------------------------------------------------
Wed Jan 6 21:16:00 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- update to 0.8.30
* Fix @jsx and @jsxFrag comments without trailing spaces
* Minification improvements
* Fix issues with nested source maps
-------------------------------------------------------------------
Mon Jan 4 18:01:03 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- initial package at 0.8.29

51
esbuild.spec Normal file
View File

@ -0,0 +1,51 @@
#
# spec file for package esbuild
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: esbuild
Version: 0.8.33
Release: 0
Summary: A JavaScript bundler written for speed
License: MIT
URL: https://esbuild.github.io
Source0: https://github.com/evanw/esbuild/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.xz
BuildRequires: golang(API) >= 1.12
BuildRequires: golang-packaging
%description
esbuild is a JavaScript bundler and minifier.
%prep
%autosetup -a1
%build
go build -ldflags "-s -w" -mod vendor -v \
%ifnarch riscv64 ppc64
-buildmode=pie \
%endif
./cmd/esbuild
%install
install -Dm755 esbuild %{buildroot}/%{_bindir}/%{name}
%files
%license LICENSE.md
%doc CHANGELOG.md README.md
%{_bindir}/%{name}
%changelog

3
vendor.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c94167aaef242a3072a3a2403645df443218674ff4ec2a0965d9aafd21eeea6
size 250908