Adds application
This commit is contained in:
commit
b2dc69142a
12 changed files with 1683 additions and 0 deletions
20
build/context.mjs
Normal file
20
build/context.mjs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import * as esbuild from "esbuild";
|
||||
import path from "path";
|
||||
|
||||
const isDev = process.env.BUILD_TARGET !== 'DOCKER';
|
||||
|
||||
const context = await esbuild.context({
|
||||
entryPoints: [
|
||||
path.join('source', 'main.ts')
|
||||
],
|
||||
bundle: true,
|
||||
outdir: './dist/',
|
||||
platform: 'node',
|
||||
target: 'node10.4',
|
||||
sourcemap: isDev ? 'external' : false,
|
||||
loader: {
|
||||
'.node': 'copy',
|
||||
}
|
||||
})
|
||||
|
||||
export default context
|
||||
Loading…
Add table
Add a link
Reference in a new issue