This commit is contained in:
Philipp
2024-10-05 18:34:58 +02:00
parent 8f7eab764e
commit 04ab272198
10 changed files with 1362 additions and 0 deletions

30
config.mjs Normal file
View File

@@ -0,0 +1,30 @@
import { context } from 'esbuild';
import { BitburnerPlugin } from 'esbuild-bitburner-plugin';
const createContext = async () => await context({
entryPoints: [
'servers/**/*.js',
'servers/**/*.jsx',
'servers/**/*.ts',
'servers/**/*.tsx',
],
outbase: "./servers",
outdir: "./build",
plugins: [
BitburnerPlugin({
port: 12525,
types: 'NetscriptDefinitions.d.ts',
mirror: {
},
distribute: {
},
})
],
bundle: true,
format: 'esm',
platform: 'browser',
logLevel: 'debug',
});
const ctx = await createContext();
ctx.watch();