first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

9
build/node_modules/guetzli/cli.js generated vendored Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env node
'use strict';
const spawn = require('child_process').spawn;
const guetzli = require('.');
const input = process.argv.slice(2);
spawn(guetzli, input, {stdio: 'inherit'})
.on('exit', process.exit);

2
build/node_modules/guetzli/index.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./lib').path();

13
build/node_modules/guetzli/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
'use strict';
const path = require('path');
const BinWrapper = require('bin-wrapper');
const pkg = require('../package.json');
const url = `https://raw.githubusercontent.com/imagemin/guetzli-bin/v${pkg.version}/vendor/`;
module.exports = new BinWrapper()
.src(`${url}macos/guetzli`, 'darwin')
.src(`${url}linux/guetzli`, 'linux')
.src(`${url}win/guetzli.exe`, 'win32')
.dest(path.resolve(__dirname, '../vendor'))
.use(process.platform === 'win32' ? 'guetzli.exe' : 'guetzli');

28
build/node_modules/guetzli/lib/install.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
'use strict';
const BinBuild = require('bin-build');
const log = require('logalot');
const bin = require('.');
bin.run(['--version'], err => {
if (err) {
log.warn(err.message);
log.warn('guetzli pre-build test failed');
log.info('compiling from source');
const builder = new BinBuild()
.src('https://github.com/google/guetzli/archive/v1.0.1.tar.gz')
.cmd(`mkdir -p ${bin.dest()}`)
.cmd(`make && mv bin/Release/${bin.use()} ${bin.path()}`);
return builder.run(err => {
if (err) {
log.error(err.stack);
return;
}
log.success('guetzli built successfully');
});
}
log.success('guetzli pre-build test passed successfully');
});

21
build/node_modules/guetzli/license generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Imagemin
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.

84
build/node_modules/guetzli/package.json generated vendored Normal file
View File

@@ -0,0 +1,84 @@
{
"_from": "guetzli@^1.0.0",
"_id": "guetzli@1.0.1",
"_inBundle": false,
"_integrity": "sha1-SM0B0Y29YPtHMYoXJKKVoDXZufI=",
"_location": "/guetzli",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "guetzli@^1.0.0",
"name": "guetzli",
"escapedName": "guetzli",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/imagemin-guetzli"
],
"_resolved": "https://registry.npmjs.org/guetzli/-/guetzli-1.0.1.tgz",
"_shasum": "48cd01d18dbd60fb47318a1724a295a035d9b9f2",
"_spec": "guetzli@^1.0.0",
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build/node_modules/imagemin-guetzli",
"author": {
"name": "Shogo Sensui",
"email": "shogo.sensui@gmail.com",
"url": "github.com/1000ch"
},
"bin": {
"guetzli": "cli.js"
},
"bugs": {
"url": "https://github.com/imagemin/guetzli-bin/issues"
},
"bundleDependencies": false,
"dependencies": {
"bin-build": "^2.2.0",
"bin-wrapper": "^3.0.2",
"logalot": "^2.1.0"
},
"deprecated": false,
"description": "guetzli wrapper that makes it seamlessly available as a local dependency",
"devDependencies": {
"ava": "*",
"bin-check": "^4.0.1",
"compare-size": "^3.0.0",
"execa": "^0.6.3",
"executable": "^4.1.0",
"tempy": "^0.1.0",
"xo": "*"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js",
"cli.js",
"lib"
],
"homepage": "https://github.com/imagemin/guetzli-bin#readme",
"keywords": [
"imagemin",
"guetzli",
"jpeg",
"jpg",
"img",
"image",
"compress",
"minify",
"optimize"
],
"license": "MIT",
"name": "guetzli",
"repository": {
"type": "git",
"url": "git+https://github.com/imagemin/guetzli-bin.git"
},
"scripts": {
"postinstall": "node lib/install.js",
"test": "xo && ava"
},
"version": "1.0.1"
}

40
build/node_modules/guetzli/readme.md generated vendored Normal file
View File

@@ -0,0 +1,40 @@
# guetzli-bin [![Build Status](https://travis-ci.org/imagemin/guetzli-bin.svg?branch=master)](http://travis-ci.org/imagemin/guetzli-bin)
> [Guetzli](https://github.com/google/guetzli) is a JPEG encoder that aims for excellent compression density at high visual quality. Guetzli-generated images are typically 20-30% smaller than images of equivalent quality generated by libjpeg.
You probably want [`imagemin-guetzli`](https://github.com/imagemin/imagemin-guetzli) instead.
## Install
```
$ npm install --save guetzli
```
## Usage
```js
const {execFile} = require('child_process');
const guetzli = require('guetzli');
execFile(guetzli, ['input.jpg', 'output.jpg'], err => {
console.log('Image minified!');
});
```
## CLI
```
$ npm install --global guetzli
```
```
$ guetzli --help
```
## License
MIT © [Imagemin](https://github.com/imagemin)

BIN
build/node_modules/guetzli/vendor/guetzli generated vendored Executable file

Binary file not shown.