initial commit

This commit is contained in:
2023-12-12 19:31:35 -05:00
commit 964dbed416
15 changed files with 3426 additions and 0 deletions

20
scripts/build.js Normal file
View File

@ -0,0 +1,20 @@
const path = require('path')
const esbuild = require('esbuild')
const clientFiles = [
'common-client-plugin.js'
]
const configs = clientFiles.map(f => ({
entryPoints: [ path.resolve(__dirname, '..', 'client', f) ],
bundle: true,
minify: true,
format: 'esm',
target: 'safari11',
outfile: path.resolve(__dirname, '..', 'dist', f),
}))
const promises = configs.map(c => esbuild.build(c))
Promise.all(promises)
.catch(() => process.exit(1))