35 lines
511 B
JavaScript
35 lines
511 B
JavaScript
|
|
|
|
import binaryName from "../../node_modules/esbuild/getBinaryName.js"
|
|
|
|
|
|
|
|
import child_process from 'child_process';
|
|
|
|
var options = new Object();
|
|
|
|
options.stdio = 'inherit';
|
|
|
|
var args = new Array();
|
|
|
|
|
|
|
|
args.push("--bundle")
|
|
|
|
args.push('out1=framework/client/index.js')
|
|
|
|
args.push("--outfile=assets/bundle.js")
|
|
|
|
args.push("--keep-names")
|
|
|
|
args.push('--external:fs, better-sqlite3, process')
|
|
|
|
args.push('--format=esm')
|
|
|
|
|
|
|
|
var child = child_process.spawn( binaryName, args, options );
|
|
|
|
|
|
console.log(binaryName);
|