ScaffoldFrontendCommand
extends BaseCommand
in package
Scaffolds any frontend project in the right directory using a package manage of choice and a frontend framework of choice.
Command is mostly interactive
Tags
Table of Contents
Properties
- $description : string
- $directory : string
- $frameworks : array<string|int, mixed>
- $name : string
- $packageManager : string
- $pManagers : array<string|int, mixed>
Methods
- askFrameworkOptions() : bool|string
- configure() : void
- execute() : int
- Scaffolds a full frontend framework
Properties
$description
protected
string
$description
= 'Scaffolds any frontend project in the right directory
using a package manage of choice and a frontend framework of choice. Command is mostly interactive..'
$directory
protected
string
$directory
= 'frontend'
$frameworks
protected
array<string|int, mixed>
$frameworks
= ['Vue', 'React', 'Z-js', 'Qwik', 'Lit', 'Preact', 'Svelte', 'Solid']
$name
protected
string
$name
= 'frontend:scaffold'
$packageManager
protected
string
$packageManager
= 'npm'
$pManagers
protected
array<string|int, mixed>
$pManagers
= ['yarn', 'npm', 'pnpm', 'bun']
Methods
askFrameworkOptions()
protected
askFrameworkOptions(mixed $input, mixed $output[, bool|null $shouldYes = false ]) : bool|string
Parameters
- $input : mixed
- $output : mixed
- $shouldYes : bool|null = false
Return values
bool|stringconfigure()
protected
configure() : void
execute()
Scaffolds a full frontend framework
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface