This commit is contained in:
2021-11-21 11:18:28 +01:00
parent 7a358eb836
commit 230b10b2a3
9339 changed files with 892519 additions and 62 deletions

43
node_modules/bin-build/index.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
'use strict';
const decompress = require('decompress');
const download = require('download');
const execa = require('execa');
const pMapSeries = require('p-map-series');
const tempfile = require('tempfile');
const exec = (cmd, cwd) => pMapSeries(cmd, x => execa.shell(x, {cwd}));
exports.directory = (dir, cmd) => {
if (typeof dir !== 'string') {
return Promise.reject(new TypeError(`Expected a \`string\`, got \`${typeof dir}\``));
}
return exec(cmd, dir);
};
exports.file = (file, cmd, opts) => {
opts = Object.assign({strip: 1}, opts);
if (typeof file !== 'string') {
return Promise.reject(new TypeError(`Expected a \`string\`, got \`${typeof file}\``));
}
const tmp = tempfile();
return decompress(file, tmp, opts).then(() => exec(cmd, tmp));
};
exports.url = (url, cmd, opts) => {
opts = Object.assign({
extract: true,
strip: 1
}, opts);
if (typeof url !== 'string') {
return Promise.reject(new TypeError(`Expected a \`string\`, got \`${typeof url}\``));
}
const tmp = tempfile();
return download(url, tmp, opts).then(() => exec(cmd, tmp));
};

21
node_modules/bin-build/license generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Kevin Martensson <kevinmartensson@gmail.com> (github.com/kevva)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

86
node_modules/bin-build/package.json generated vendored Normal file
View File

@@ -0,0 +1,86 @@
{
"_from": "bin-build@^3.0.0",
"_id": "bin-build@3.0.0",
"_inBundle": false,
"_integrity": "sha512-jcUOof71/TNAI2uM5uoUaDq2ePcVBQ3R/qhxAz1rX7UfvduAL/RXD3jXzvn8cVcDJdGVkiR1shal3OH0ImpuhA==",
"_location": "/bin-build",
"_phantomChildren": {
"is-stream": "1.1.0",
"lru-cache": "4.1.5",
"npm-run-path": "2.0.2",
"p-finally": "1.0.0",
"shebang-command": "1.2.0",
"signal-exit": "3.0.3",
"strip-eof": "1.0.0",
"which": "1.3.1"
},
"_requested": {
"type": "range",
"registry": true,
"raw": "bin-build@^3.0.0",
"name": "bin-build",
"escapedName": "bin-build",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/gifsicle",
"/mozjpeg",
"/optipng-bin"
],
"_resolved": "https://registry.npmjs.org/bin-build/-/bin-build-3.0.0.tgz",
"_shasum": "c5780a25a8a9f966d8244217e6c1f5082a143861",
"_spec": "bin-build@^3.0.0",
"_where": "/var/www/html/jason/WeihnachtenMelly/node_modules/gifsicle",
"author": {
"name": "Kevin Mårtensson",
"email": "kevinmartensson@gmail.com",
"url": "https://github.com/kevva"
},
"bugs": {
"url": "https://github.com/kevva/bin-build/issues"
},
"bundleDependencies": false,
"dependencies": {
"decompress": "^4.0.0",
"download": "^6.2.2",
"execa": "^0.7.0",
"p-map-series": "^1.0.0",
"tempfile": "^2.0.0"
},
"deprecated": false,
"description": "Easily build binaries",
"devDependencies": {
"ava": "*",
"del": "^3.0.0",
"nock": "^9.0.0",
"path-exists": "^3.0.0",
"xo": "*"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"homepage": "https://github.com/kevva/bin-build#readme",
"keywords": [
"binary",
"build",
"make"
],
"license": "MIT",
"name": "bin-build",
"repository": {
"type": "git",
"url": "git+https://github.com/kevva/bin-build.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "3.0.0",
"xo": {
"esnext": true
}
}

103
node_modules/bin-build/readme.md generated vendored Normal file
View File

@@ -0,0 +1,103 @@
# bin-build [![Build Status](https://travis-ci.org/kevva/bin-build.svg?branch=master)](https://travis-ci.org/kevva/bin-build)
> Easily build binaries
## Install
```
$ npm install --save bin-build
```
## Usage
```js
const binBuild = require('bin-build');
binBuild.url('http://www.lcdf.org/gifsicle/gifsicle-1.80.tar.gz', [
'./configure --disable-gifview --disable-gifdiff',
'make install'
]).then(() => {
console.log('gifsicle built successfully');
});
binBuild.file('gifsicle-1.80.tar.gz', [
'./configure --disable-gifview --disable-gifdiff',
'make install'
]).then(() => {
console.log('gifsicle built successfully');
});
```
## API
### binBuild.directory(directory, commands)
#### directory
Type: `string`
Path to a directory containing the source code.
#### commands
Type: `Array`
Commands to run when building.
### binBuild.file(file, commands, [options])
#### file
Type: `string`
Path to a archive file containing the source code.
#### commands
Type: `Array`
Commands to run when building.
#### options
Type: `Object`
##### strip
Type: `number`<br>
Default: `1`
Strip a number of leading paths from file names on extraction.
### binBuild.url(url, commands, [options])
#### url
Type: `string`
URL to a archive file containing the source code.
#### commands
Type: `Array`
Commands to run when building.
#### options
Type: `Object`
##### strip
Type: `number`<br>
Default: `1`
Strip a number of leading paths from file names on extraction.
## License
MIT © [Kevin Mårtensson](https://github.com/kevva)