Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion messages/lightning.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion messages/lightningCmp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion messages/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions messages/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading