- 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
23 lines
731 B
Go
23 lines
731 B
Go
package js
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "nuxt",
|
|
Description: "Launch the development server",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "dev", Description: "Launch the development server"},
|
|
{Name: "build", Description: "Build and optimize your application with webpack for production"},
|
|
{Name: "webpack", Description: "Inspect the webpack config"},
|
|
},
|
|
Options: []spec.Option{
|
|
{Name: "--name", Description: "Bundle name to inspect. (client, server, modern)"},
|
|
{Name: "--dev", Description: "Inspect webpack config for dev mode"},
|
|
{Name: "--depth", Description: "Inspection depth. Defaults to 2 to prevent verbose output"},
|
|
},
|
|
})
|
|
}
|