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
This commit is contained in:
VERSE
2026-07-04 22:08:36 +07:00
committed by GitHub
parent ffa336196a
commit 2ef3c90819
482 changed files with 22971 additions and 5 deletions
+45
View File
@@ -0,0 +1,45 @@
package js
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "stencil",
Description: "CLI to build Stencil projects and generate components",
Subcommands: []core.Subcommand{
{Name: "build", Description: "Build components for development or production"},
{Name: "workers", Description: "Number of workers"},
{Name: "test", Description: "Run unit and end-to-end tests"},
{Name: "generate", Description: "Bootstrap components"},
{Name: "telemetry", Description: "Opt in or out of telemetry"},
{Name: "off", Description: "Disable sharing anonymous usage data"},
{Name: "on", Description: "Enable sharing anonymous usage data"},
},
Options: []core.Option{
{Name: "--ci", Description: "Set stencil config file"},
{Name: "--debug", Description: "Set the log level to debug"},
{Name: "--dev", Description: "Development build"},
{Name: "--docs-readme", Description: "Generate component readme.md docs"},
{Name: "--es5", Description: "Creates an ES5 compatible build"},
{Name: "--log", Description: "Write stencil-build.log file"},
{Name: "--prerender", Description: "Prerender the application"},
{Name: "--prod", Description: "Runs a production build"},
{Name: "--max-workers", Description: "Max number of workers the compiler should use"},
{Name: "--next", Description: "Opt-in to test the 'next' Stencil compiler features"},
{Name: "--no-cache", Description: "Disables using the cache"},
{Name: "--no-open", Description: "Do not automatically open the browser window"},
{Name: "--port", Description: "Port for the Integrated Dev Server"},
{Name: "--serve", Description: "Start the dev-server"},
{Name: "--stats", Description: "Write stencil-stats.json file"},
{Name: "--verbose", Description: "Logs additional information about each step of the build"},
{Name: "--watch", Description: "Rebuild when files update"},
{Name: "--spec", Description: "Run unit tests with Jest"},
{Name: "--e2e", Description: "Run e2e tests with Puppeteer"},
{Name: "--no-build", Description: "Skips build process before running the tests"},
{Name: "--help", Description: "Display the help output explaining the different flags"},
{Name: "--version", Description: "Prints the current Stencil version"},
},
})
}