feat: docker compose maybe

This commit is contained in:
2023-11-13 16:10:04 -05:00
parent 180b261e40
commit b625ccd8d6
8031 changed files with 2182966 additions and 0 deletions

22
node_modules/sorcery/bin/help.md generated vendored Normal file
View File

@ -0,0 +1,22 @@
Sorcery version <%= version %>
=====================================
Usage:
sorcery [options]
Options:
-h, --help Show help message
-v, --version Show version
-i, --input <file|folder> Input file
-o, --output <file|folder> Output file (if absent, will overwrite input)
-d, --datauri Append map as a data URI, rather than separate file
-x, --excludeContent Don't populate the sourcesContent array
Example:
sorcery --input some/generated/code.min.js
sorcery --input tmp --output dist
For more information visit https://github.com/Rich-Harris/sorcery

13
node_modules/sorcery/bin/showHelp.js generated vendored Normal file
View File

@ -0,0 +1,13 @@
var fs = require( 'fs' ),
path = require( 'path' );
module.exports = function ( stream ) {
fs.readFile( path.join( __dirname, 'help.md' ), function ( err, result ) {
var help;
if ( err ) throw err;
help = result.toString().replace( '<%= version %>', require( '../package.json' ).version );
( stream || process.stderr ).write( '\n' + help + '\n' );
});
};

74
node_modules/sorcery/bin/sorcery generated vendored Executable file
View File

@ -0,0 +1,74 @@
#!/usr/bin/env node
var path = require( 'path' );
var minimist = require( 'minimist' );
var sander = require( 'sander' );
var showHelp = require( './showHelp' );
var command;
var sorcery = require( '../' );
var validExtensions = { js: true };
command = minimist( process.argv.slice( 2 ), {
alias: {
i: 'input',
o: 'output',
v: 'version',
h: 'help',
d: 'datauri',
x: 'excludeContent'
}
});
if ( command.help ) {
showHelp( process.stdout );
}
else if ( process.argv.length <= 2 && process.stdin.isTTY ) {
showHelp( process.stderr );
}
else if ( command.version ) {
console.log( 'Sorcery version ' + require( '../package.json' ).version );
}
else if ( !command.input ) {
console.error( 'Error: You must supply an --input (-i) argument. Type sorcery --help for more info' );
}
else {
sander.stat( command.input ).then( function ( stats ) {
if ( stats.isDirectory() ) {
return sander.lsr( command.input ).then( function ( files ) {
files = files.filter( function ( file ) {
return validExtensions[ path.extname( file ).slice( 1 ) ];
});
return files.reduce( function ( promise, file ) {
return promise.then( function () {
var input = path.join( command.input, file );
var output = path.join( command.output || command.input, file );
return sorcery.load( input ).then( function ( chain ) {
return chain.write( output, {
inline: command.datauri,
includeContent: !command.excludeContent
});
});
});
}, Promise.resolve() );
});
}
return sorcery.load( command.input ).then( function ( chain ) {
return chain.write( command.output || command.input, {
inline: command.datauri,
includeContent: !command.excludeContent
});
});
}).catch( function ( err ) {
setTimeout( function () {
throw err;
});
});
}