reformatted to use my template

This commit is contained in:
2022-03-31 15:04:54 -05:00
parent a9ea7bf8d5
commit 7bac005fe7
32 changed files with 8222 additions and 783 deletions

24
build.mjs Normal file
View File

@@ -0,0 +1,24 @@
import { build } from 'esbuild';
import commandLineArgs from 'command-line-args';
const args = commandLineArgs([
{ name: 'watch', alias: 'w', type: Boolean },
{ name: 'bundle', alias: 'b', type: Boolean },
{ name: 'minify', alias: 'm', type: Boolean },
{ name: 'sourcemap', alias: 's', type: Boolean }
]);
//build TS
build({
entryPoints: ['src/main.ts'],
outdir: 'dist',
target: 'es2020',
platform: 'node',
format: 'cjs',
watch: args.watch,
bundle: args.bundle,
minify: args.minify,
sourcemap: args.sourcemap
});