Files
iris-context/commands/js/gatsby.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

38 lines
1.9 KiB
Go

package js
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "gatsby",
Description: "Set host. Defaults to localhost",
Subcommands: []spec.Subcommand{
{Name: "develop", Description: "Start the Gatsby development server"},
{Name: "build", Description: "Compile your application and make it ready for deployment"},
{Name: "serve", Description: "Serve the production build of your site for testing"},
{Name: "clean", Description: "Wipe out the cache (.cache folder) and public directories"},
{Name: "info", Description: "Get helpful environment information"},
{Name: "plugin", Description: "Run commands pertaining to gatsby plugins"},
{Name: "docs", Description: "Documentation about using and creating plugins"},
{Name: "repl", Description: "Gatsby will prompt you to type in commands and explore"},
},
Options: []spec.Option{
{Name: "-H", Description: "Set host. Defaults to localhost"},
{Name: "-p", Description: "Set port. Defaults to env.PORT or 8000"},
{Name: "-o", Description: "Open the site in your (default) browser for you"},
{Name: "-S", Description: "Use HTTPS"},
{Name: "--inspect", Description: "Opens a port for debugging"},
{Name: "--prefix-paths", Description: "Build site with link paths prefixed (set pathPrefix in your config)"},
{Name: "--no-uglify", Description: "Build site without uglifying JS bundles (for debugging)"},
{Name: "--profile", Description: "Build site with react profiling"},
{Name: "--open-tracing-config-file", Description: "Use Tracer configuration file"},
{Name: "--graphql-tracing", Description: "Trace every graphql resolver, may have performance implications"},
{Name: "--no-color", Description: "Disables colored terminal output"},
{Name: "-C", Description: "Copy environment information to your clipboard"},
{Name: "-v", Description: "View your current Gatsby CLI version"},
},
})
}