chrisakakay / ego

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ego

An opinionated js builder, using esbuild. Rebuild on file system changes and livereload is default.

The following structure is needed to yield a build:

  • src/index.jsx
  • src/index.html
  • a script tag in src/index.html referencing ./index.jsx
  • (optional) static folder to hold images/etc, (will be copied to the build folder)

Usage for building:

  • ego build

Usage for dev env:

  • ego --open --port 8080

Configuration:

  • --outdir - (default: ./dist) change the build folder
  • --staticdir - (default: ./static) change the static folder
  • --public-url - (default: /) change the base url
  • --sourcemap - (default: true) generate sourcemap
  • --engine - (default: esbuild-standard, options: [esbuild-standard, esbuild-svelte])
  • --analyze - (default: all, options: [all, print, save]) show a report of the bundle content
  • --host - (default: true) starts a webserver hosting the app
  • --clear-console - (default: true) clears the console on new events

Dev only flags:

  • --port - (default: 8080) dev server port
  • --open - (default: false) opening the page in a browser
  • --lint - (default: off, options: [ , warn, lint]) run linting

About


Languages

Language:JavaScript 100.0%