recital / exporters / html / build.js
build.js
Raw
const esbuild = require('esbuild')

esbuild
	.buildSync({
		entryPoints: ['src/index.ts'],
		bundle: true,
		platform: 'node',
		external: ['@a-morphous/recital', '@a-morphous/recital-ext-common-commands'],
		outfile: 'dist/stage-html.js',
	})

esbuild
	.buildSync({
		entryPoints: ['src/index.ts'],
		bundle: true,
		format: 'esm',
		external: ['@a-morphous/recital', '@a-morphous/recital-ext-common-commands'],
		outfile: 'dist/stage-html.module.js',
	})

esbuild.buildSync({
	entryPoints: ['cli.js'],
	bundle: true,
	platform: 'node',
	outfile: 'dist/cli.js'
}) // no external so we can use it right away.