diff --git a/messages/lightning.md b/messages/lightning.md index 9fa8be92..29e894fe 100644 --- a/messages/lightning.md +++ b/messages/lightning.md @@ -24,4 +24,4 @@ Template to use for file creation. # flags.template.description -Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if not specified, the CLI automatically selects the template based on the project's sfdx-project.json "defaultLwcLanguage" field: TypeScript template for "typescript", JavaScript template for "javascript". +Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the "defaultLwcLanguage" field in the DX project's "sfdx-project.json" file. diff --git a/messages/lightningCmp.md b/messages/lightningCmp.md index 2bb5bc3f..5f45bbda 100644 --- a/messages/lightningCmp.md +++ b/messages/lightningCmp.md @@ -16,7 +16,7 @@ <%= config.bin %> <%= command.id %> --name mycomponent --type lwc --output-dir force-app/main/default/lwc -- Generate a TypeScript Lightning web component: +- Generate a TypeScript Lightning Web Component: <%= config.bin %> <%= command.id %> --name mycomponent --type lwc --template typescript diff --git a/messages/messages.md b/messages/messages.md index 36cb0067..5a9b4c87 100644 --- a/messages/messages.md +++ b/messages/messages.md @@ -8,7 +8,7 @@ The location can be an absolute path or relative to the current working director # flags.outputdirLighting.description -If you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle. +If you don’t specify an output-dir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle. # flags.template.summary diff --git a/messages/project.md b/messages/project.md index 87cdcaf7..92baf59e 100644 --- a/messages/project.md +++ b/messages/project.md @@ -100,8 +100,8 @@ Normally defaults to https://login.salesforce.com. # flags.lwc-language.summary -Language of the Lightning Web Components. Default is "javascript". +Language of the Lightning Web Components. If not specified, "javascript" is used. # flags.lwc-language.description -Sets the default language for Lightning Web Components in this project. When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). TypeScript files are compiled locally for validation, and the TypeScript (`.ts`) files are deployed to Salesforce for server-side type stripping. If not specified, the project uses JavaScript. +When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components, the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for server-side type stripping.