This is a plugin and cli wrapper for esbuild that allows angular-like syntax and file structure in mithril projects
Find a file
2025-10-21 15:45:36 +00:00
.forgejo/workflows Finished implementing v1 2025-10-21 15:14:30 +00:00
build cli: Be flexible with argument order, allow outdir in any position 2025-10-21 15:45:36 +00:00
test Finished implementing v1 2025-10-21 15:14:30 +00:00
.gitignore Finished implementing v1 2025-10-21 15:14:30 +00:00
.npmrc Finished implementing v1 2025-10-21 15:14:30 +00:00
cli.mjs Finished implementing v1 2025-10-21 15:14:30 +00:00
LICENSE Initial commit 2025-10-17 03:00:46 +00:00
package.json cli: Be flexible with argument order, allow outdir in any position 2025-10-21 15:45:36 +00:00
README.md Finished implementing v1 2025-10-21 15:14:30 +00:00

esbuild-angular-jsx

This is a plugin and cli wrapper for esbuild that allows angular-like syntax and file structure in mithril projects

Installation

Install with npm globally:

$ npm install --global esbuild-angular-jsx

or as a development dependency for your project:

$ npm install --save-dev esbuild-angular-jsx

Run

$ esbuild-angular-jsx -i app/main.mjs -i app/main.css ./public

Usage

$ esbuild-angular-jsx --help

Usage: esbuild-angular-jsx <options> <required> <outdir>

<required> needs to be a list of input files to process:
  -i filename, --input filename  - Add an entry file to be processed by esbuild
                                   This can also be a comma separated list.

Examples:
esbuild-angular-jsx -i app/main.mjs -i app/main.css ./output
esbuild-angular-jsx -i app/main.mjs,app/main.css ./output

<options> can be any of the following:
  -f esm, --format esm           - Specify format of output, default "esm"
  -t es2020, --target es2020     - Specify esbuild target, default "es2020"
  -e "*.png", --external "*.png" - Specify list of external extensions
                                   This can also be comma separated list
  -l .css:css, --loader .css:css - Specify loader for the specified extension
  -w, --watch                    - Enable watch mode
  -h, --help                     - print this help info

Examples:
esbuild-angular-jsx -e "*.png,*.woff2" -i app/main.mjs,app/main.css ./output