Update with working working version (#12)
* Fix workflow * Trigger * [auto] Update compiled version * [auto] Commit modules * Push Windows changes * Fix * [auto] Update compiled version * Try removing cwd * [auto] Update compiled version * Try with path module * [auto] Update compiled version * Fix path * [auto] Update compiled version * Use raw path * [auto] Update compiled version * Other path * [auto] Update compiled version * Avoid @action/exec * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * test * [auto] Update compiled version * Try with shelljs * [auto] Update compiled version * Fix my stupidity * Copy scripts to local dir * [auto] Update compiled version * Still use path * [auto] Update compiled version * Delete entrypoint.sh * [auto] Update compiled version * Make file executable * [auto] Update compiled version * Try using bash * [auto] Update compiled version
This commit is contained in:
48
node_modules/@node-minify/cli/lib/compress.js
generated
vendored
Normal file
48
node_modules/@node-minify/cli/lib/compress.js
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.compress = void 0;
|
||||
|
||||
var _core = _interopRequireDefault(require("@node-minify/core"));
|
||||
|
||||
var _utils = require("@node-minify/utils");
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
/*!
|
||||
* node-minify
|
||||
* Copyright(c) 2011-2019 Rodolphe Stoclin
|
||||
* MIT Licensed
|
||||
*/
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Run compression.
|
||||
*
|
||||
* @param {Object} options
|
||||
*/
|
||||
const compress = options => {
|
||||
return new Promise((resolve, reject) => {
|
||||
(0, _core.default)(options).then(() => {
|
||||
_utils.utils.getFilesizeGzippedInBytes(options.output).then(sizeGzip => {
|
||||
resolve({
|
||||
compressorLabel: options.compressorLabel,
|
||||
compressor: options.compressor,
|
||||
size: _utils.utils.getFilesizeInBytes(options.output),
|
||||
sizeGzip: sizeGzip
|
||||
});
|
||||
}).catch(reject);
|
||||
}).catch(reject);
|
||||
});
|
||||
};
|
||||
/**
|
||||
* Expose `compress()`.
|
||||
*/
|
||||
|
||||
|
||||
exports.compress = compress;
|
||||
Reference in New Issue
Block a user