This is a plugin and cli wrapper for esbuild that allows angular-like syntax and file structure in mithril projects
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| build | ||
| test | ||
| .gitignore | ||
| .npmrc | ||
| cli.mjs | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
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