id = "create-react-app" name = "create-react-app" description = "Create a new React project." executables = ["create-react-app"] [commands] format = 1 label = "Create React app" description = "Scaffold a React project from a template. Yarn Plug'n'Play and react-scripts overrides are left out." quality = "ai-draft" base = "fig:create-react-app" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/create-react-app.ts" license = "MIT" [[commands.field]] id = "name" label = "Project directory" type = "path" path = { kind = "directory", role = "output" } position = 0 min = 1 sources = ["fig"] [[commands.field]] id = "template" label = "Template" description = "A cra-template-* npm package, relative path, or archive." type = "string" option = ["--template"] suggestions = [{ value = "typescript", label = "TypeScript" }] sources = ["fig"] [[commands.field]] id = "use_npm" label = "Use npm" type = "boolean" option = ["--use-npm"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose logs" type = "boolean" option = ["--verbose"] sources = ["fig"] [[commands.task]] id = "typescript" label = "TypeScript app" set = { template = ["typescript"] } fields = ["name", "template", "use_npm"] required = ["name"] [[commands.group]] id = "basic" label = "Basic" fields = ["name", "template", "use_npm", "verbose"]