mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-21 23:03:11 -05:00
fe0dfdf6c4
This is a massive refactor to port Squire to TypeScript, fix a bunch of small bugs and modernise our tooling. The development was done on an internal repository, so apologies to anyone following externally for the commit dump; updates from here should come as real commits again. Co-authored-by: Joe Woods <woods@fastmailteam.com>
38 lines
916 B
JavaScript
Executable file
38 lines
916 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
import esbuild from 'esbuild';
|
|
|
|
Promise.all([
|
|
esbuild.build({
|
|
entryPoints: ['source/Legacy.ts'],
|
|
bundle: true,
|
|
target: 'es6',
|
|
format: 'iife',
|
|
outfile: 'dist/squire-raw.js',
|
|
}),
|
|
esbuild.build({
|
|
entryPoints: ['source/Legacy.ts'],
|
|
bundle: true,
|
|
minify: true,
|
|
sourcemap: 'linked',
|
|
target: 'es6',
|
|
format: 'iife',
|
|
outfile: 'dist/squire.js',
|
|
}),
|
|
esbuild.build({
|
|
entryPoints: ['source/Squire.ts'],
|
|
bundle: true,
|
|
target: 'esnext',
|
|
format: 'esm',
|
|
outfile: 'dist/squire-raw.mjs',
|
|
}),
|
|
esbuild.build({
|
|
entryPoints: ['source/Squire.ts'],
|
|
bundle: true,
|
|
minify: true,
|
|
sourcemap: 'linked',
|
|
target: 'esnext',
|
|
format: 'esm',
|
|
outfile: 'dist/squire.mjs',
|
|
}),
|
|
]).catch(() => process.exit(1));
|