This is a plugin and cli wrapper for esbuild that allows angular-like syntax and file structure in mithril projects
  • JavaScript 99.8%
  • HTML 0.1%
Find a file
Jonatan Nilsson 192da93545
All checks were successful
/ deploy (push) Successful in 7s
cli: Add support to specify esbuild supported flags
2026-03-12 15:02:58 +00:00
.forgejo/workflows ci: Publish first because fuck 2fa and then push release 2026-03-11 20:44:42 +00:00
build cli: Add support to specify esbuild supported flags 2026-03-12 15:02:58 +00:00
test cli: Add external esbuild plugin support 2026-03-11 20:26:22 +00:00
.gitignore cli: Add external esbuild plugin support 2026-03-11 20:26:22 +00:00
.npmrc Finished implementing v1 2025-10-21 15:14:30 +00:00
cli.mjs cli: Add support to specify esbuild supported flags 2026-03-12 15:02:58 +00:00
LICENSE Initial commit 2025-10-17 03:00:46 +00:00
package.json cli: Add support to specify esbuild supported flags 2026-03-12 15:02:58 +00:00
README.md cli: Add support to specify esbuild supported flags 2026-03-12 15:02:58 +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
  -p name, --plugin name         - Specify list of external plugins to include
                                   This can also be comma separated list.
                                   Each entry can be in format of "name1:import1".
                                   Example: --plugin esbuild-sass-plugin:sassPlugin
  -s name=value                  - Specify certain support features either true or false.
     --supported name=value        Each value gets passed into JSON.parse().
                                   Note: Due to v8 bug, object-rest-spread is default false
  -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