1.0.0-next.13 • Published 2 years ago
@erwink/esb v1.0.0-next.13
esb
esb is a command line tool for transforming and running Typescript with ESBuild
Install
$ npm install -g @erwink/esb
$ npm install -D @erwink/esb
Usage
running a file
$ esb src/index.ts
$ node --loader @erwink/esb src/index.ts
running a build configuration
Add a configuration file to your project root
esb.config.js
/** @type {import('esbuild').BuildOptions} */
const common = {
sourcemap: 'inline',
bundle: true,
entryPoints: [ 'src/index.ts' ],
format: 'esm',
outdir: 'dist',
}
/** @type {import('esbuild').BuildOptions} */
export const build = {
...common,
minify: true,
}
/** @type {import('esbuild').BuildOptions} */
export const MyCustomDevConfig = {
...common,
watch: true,
incremental: true
}
Now you can build your project using the cli
$ esb MyCustomDevConfig # or whatever esb.config.js exports
1.0.0-next.11
2 years ago
1.0.0-next.10
2 years ago
1.0.0-next.13
2 years ago
1.0.0-next.12
2 years ago
1.0.0-next.8
2 years ago
1.0.0-next.9
2 years ago
1.0.0-next.7
3 years ago
1.0.0-next.6
3 years ago
1.0.0-next.5
3 years ago
1.0.0-next.4
3 years ago
1.0.0-next.3
3 years ago
1.0.0-next.2
3 years ago
1.0.0-next.1
3 years ago
1.0.0-next.0
3 years ago