id = "create-nx-workspace" name = "create-nx-workspace" description = "Create a new Nx workspace." executables = ["create-nx-workspace"] [commands] format = 1 label = "Create Nx workspace" description = "Scaffold a new Nx workspace with a preset and package manager. Cloud and interactive toggles are left out." quality = "ai-draft" base = "fig:create-nx-workspace" 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-nx-workspace.ts" license = "MIT" [[commands.field]] id = "workspace" label = "Workspace name" type = "string" position = 0 min = 1 sources = ["fig"] [[commands.field]] id = "preset" label = "Preset" type = "string" option = ["--preset"] suggestions = [{ value = "empty", label = "empty" }, { value = "npm", label = "npm" }, { value = "web-components", label = "web-components" }, { value = "angular", label = "angular" }, { value = "angular-nest", label = "angular-nest" }, { value = "react", label = "react" }, { value = "react-express", label = "react-express" }, { value = "react-native", label = "react-native" }, { value = "next", label = "next" }, { value = "gatsby", label = "gatsby" }, { value = "nest", label = "nest" }, { value = "express", label = "express" }] sources = ["fig"] [[commands.field]] id = "app_name" label = "Application name" type = "string" option = ["--appName"] sources = ["fig"] [[commands.field]] id = "style" label = "Style" type = "string" option = ["--style"] suggestions = [{ value = "css", label = "css" }, { value = "scss", label = "scss" }, { value = "less", label = "less" }, { value = "styl", label = "styl" }, { value = "styled-components", label = "styled-components" }, { value = "@emotion/styled", label = "@emotion/styled" }, { value = "styled-jsx", label = "styled-jsx" }] sources = ["fig"] [[commands.field]] id = "package_manager" label = "Package manager" type = "enum" option = ["--packageManager", "--pm"] choices = [{ value = "npm", label = "npm" }, { value = "yarn", label = "yarn" }, { value = "pnpm", label = "pnpm" }] sources = ["fig"] [[commands.field]] id = "cli" label = "CLI" type = "enum" option = ["--cli"] choices = [{ value = "nx", label = "nx" }, { value = "angular", label = "angular" }] sources = ["fig"] [[commands.task]] id = "react" label = "React workspace" set = { preset = ["react"] } fields = ["workspace", "preset", "app_name", "style", "package_manager"] required = ["workspace"] [[commands.group]] id = "basic" label = "Basic" fields = ["workspace", "preset", "app_name", "style", "package_manager", "cli"]