Files
iris-context/commands/js/vite.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

42 lines
1.9 KiB
Go

package js
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "vite",
Description: "Native ESM-powered web dev build tool",
Options: []core.Option{
{Name: "-h", Description: "Show help message"},
{Name: "--host", Description: "Specify the hostname"},
{Name: "--port", Description: "Specify the port"},
{Name: "--https", Description: "Use TLS + HTTP/2"},
{Name: "--open", Description: "Open browser on startup"},
{Name: "--cors", Description: "Enable CORS"},
{Name: "--strictPort", Description: "Exit if the port is already in use"},
{Name: "--force", Description: "For the optimizer to re-bundle"},
{Name: "-c", Description: "Use the specified config file"},
{Name: "--base", Description: "Public base path"},
{Name: "-l", Description: "Set the log level"},
{Name: "--clearScreen", Description: "Enable screen clearing when logging"},
{Name: "-d", Description: "Show debug logs"},
{Name: "-f", Description: "Filter debug logs"},
{Name: "-m", Description: "Set env mode"},
{Name: "-v", Description: "Display version number"},
{Name: "--target", Description: "Transpile target (must be a valid esbuild target)"},
{Name: "--outDir", Description: "Output directory"},
{Name: "--assetsDir", Description: "Directory under outDir to place assets in"},
{Name: "--assetsInlineLimit", Description: "Static asset base64 inline threshold in bytes"},
{Name: "--ssr", Description: "Build specified entry for server-side rendering"},
{Name: "--sourcemap", Description: "Output sourcemaps for build"},
{Name: "--minify", Description: "Enable minification"},
{Name: "--manifest", Description: "Emit build manifest json"},
{Name: "--ssrManifest", Description: "Emit ssr manifest json"},
{Name: "--emptyOutDir", Description: "Force empty outDir when it's outside of root"},
{Name: "-w", Description: "Rebuilds when modules have changed on disk"},
},
})
}