This commit is contained in:
Simon Priet
2021-09-05 22:53:58 +02:00
commit 9e2991e668
17888 changed files with 1263126 additions and 0 deletions

4
node_modules/browser-pack/bin/cmd.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env node
var pack = require('../')();
process.stdin.pipe(pack).pipe(process.stdout);

21
node_modules/browser-pack/bin/prepublish.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env node
var spawn = require('child_process').spawn;
var fs = require('fs');
var concat = require('concat-stream');
var path = require('path');
var uglify = spawn(
require.resolve('uglify-js/bin/uglifyjs'),
['--wrap-iife', '-c', 'side_effects=false,screw_ie8=false', '--verbose', '--ie8', '--passes=5', '-m', '--source-map', '--', '-']
);
fs.createReadStream(path.join(__dirname, '..', 'prelude.js'))
.pipe(uglify.stdin)
;
uglify.stdout
.pipe(concat({ encoding: 'string' }, function (str) {
fs.writeFileSync(path.join(__dirname, '..', '_prelude.js'), str.replace(/;\s*$/, ''));
}))
;