mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/node-closurecompiler-externs: new aport
https://github.com/dcodeIO/node.js-closure-compiler-externs A collection of node.js externs for use with Closure Compiler This is needed for testing/emscripten.
This commit is contained in:
parent
5627d4ee58
commit
911d1a0406
29
testing/node-closurecompiler-externs/APKBUILD
Normal file
29
testing/node-closurecompiler-externs/APKBUILD
Normal file
@ -0,0 +1,29 @@
|
||||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=node-closurecompiler-externs
|
||||
_pkgname=node.js-closure-compiler-externs
|
||||
_npmname=closurecompiler-externs
|
||||
pkgver=1.0.4
|
||||
pkgrel=0
|
||||
pkgdesc="A collection of node.js externs for use with Closure Compiler"
|
||||
url="https://github.com/dcodeIO/node.js-closure-compiler-externs"
|
||||
arch="noarch"
|
||||
license="ASL-2.0"
|
||||
depends="nodejs"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/dcodeIO/$_pkgname/archive/$pkgver.tar.gz
|
||||
domain.js-fix-type-annotations.patch"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
options="!check"
|
||||
|
||||
package() {
|
||||
local destdir="$pkgdir/usr/lib/node_modules/$_npmname"
|
||||
|
||||
mkdir -p "$destdir"
|
||||
cp -R "$builddir"/* "$destdir"/
|
||||
|
||||
cd "$destdir"
|
||||
rm -r tests *.md *.png LICENSE
|
||||
}
|
||||
|
||||
sha512sums="74965e7519bf618dd0ebf85a8716e1e4156bb6b696598ee405c0da4e9e646a4f84838a1e4b12cf8936b2871010adf363d1611726185b3b273d94c4be1c78c298 node-closurecompiler-externs-1.0.4.tar.gz
|
||||
68189a32cef61ebd9dc19ddc6e0e8cf750b6205ee3d82ba17e49f831e9ad813e33c3629ce1aebaf91d644d39378651901c72959f6a4960353288e28573d002d5 domain.js-fix-type-annotations.patch"
|
@ -0,0 +1,35 @@
|
||||
From 8a76d75392291c80a6b303133b95a31d98fd2f5c Mon Sep 17 00:00:00 2001
|
||||
From: Andrew Keller <andrew@wimpyprogrammer.com>
|
||||
Date: Wed, 18 Feb 2015 22:45:15 -0500
|
||||
Subject: [PATCH] Fixing type annotations in domain.js
|
||||
|
||||
Fixing the syntax of the type annotations for variable number, any type callbacks to avoid warnings from the Closure Compiler.
|
||||
|
||||
Upstream-Commit: https://github.com/dcodeIO/node.js-closure-compiler-externs/commit/8a76d75392291c80a6b303133b95a31d98fd2f5c
|
||||
---
|
||||
domain.js | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/domain.js b/domain.js
|
||||
index 3349561..6136f91 100644
|
||||
--- a/domain.js
|
||||
+++ b/domain.js
|
||||
@@ -64,14 +64,14 @@ domain.Domain.prototype.add = function(emitter) {};
|
||||
domain.Domain.prototype.remove = function(emitter) {};
|
||||
|
||||
/**
|
||||
- * @param {function(...[*])} callback
|
||||
- * @return {function(...[*])}
|
||||
+ * @param {function(...*)} callback
|
||||
+ * @return {function(...*)}
|
||||
*/
|
||||
domain.Domain.prototype.bind = function(callback) {};
|
||||
|
||||
/**
|
||||
- * @param {function(...[*])} callback
|
||||
- * @return {function(...[*])}
|
||||
+ * @param {function(...*)} callback
|
||||
+ * @return {function(...*)}
|
||||
*/
|
||||
domain.Domain.prototype.intercept = function(callback) {};
|
||||
|
Loading…
Reference in New Issue
Block a user