0.0.7 • Published 2 years ago

esbuild-scripts v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

esbuild-scripts

Scripts to build a static site + start a live dev server using esbuild. Made because I got tired of copy/pasting between projects.

Only supports ESM config files for now.

Usage: esbuild-scripts [options] [command]

Options:
  -c, --config <string>  Path to esbuild config (default: "./esbuild.config.mjs")
  -h, --help             display help for command

Commands:
  build                  runs esbuild and saves metafile.json
  start                  builds and then runs a live-reloading dev server
  help [command]         display help for command

esbuild.config.mjs

// Defaults to localhost:3000
export const devConfig = {
	host: 'localhost',
	port: 4000,
};

export const esbuildConfig = ({ isProd }) => ({
	outdir, // required for `start`
})
0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.5.0

4 years ago

0.6.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago