Files
iris-context/commands/js/swc.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

34 lines
1.8 KiB
Go

package js
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "swc",
Description: "Path to the file",
Options: []core.Option{
{Name: "--filename", Description: "Path to the file"},
{Name: "--config-file", Description: "Path to a .swcrc file to use"},
{Name: "--env-name", Description: "Whether or not to look up .swcrc files"},
{Name: "--ignore", Description: "List of glob paths to not compile"},
{Name: "--only", Description: "List of glob paths to only compile"},
{Name: "--watch", Description: "Watch for changes and recompile"},
{Name: "--quiet", Description: "Suppress compilation output"},
{Name: "--source-maps", Description: "Generate source maps"},
{Name: "--source-map-target", Description: "Define the file for the source map"},
{Name: "--source-file-name", Description: "Set sources[0] on returned source map"},
{Name: "--source-root", Description: "The root from which all sources are relative"},
{Name: "--out-file", Description: "Compile all input files into a single file"},
{Name: "--out-dir", Description: "Compile an input directory of modules into an output directory"},
{Name: "--copy-files", Description: "When compiling a directory, copy over non-compilable files"},
{Name: "--include-dotfiles", Description: "Include dotfiles when compiling and copying non-compilable files"},
{Name: "--config", Description: "Override a config from .swcrc file"},
{Name: "--sync", Description: "Invoke swc synchronously. Useful for debugging"},
{Name: "--log-watch-compilation", Description: "Log a message when a watched file is successfully compiled"},
{Name: "--extensions", Description: "Log a message when a watched file is successfully compiled"},
},
})
}