Skip to content

Commit 7edf8b9

Browse files
committed
chore: merge main
2 parents 258bafd + 45d39af commit 7edf8b9

6 files changed

Lines changed: 62 additions & 35 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# [56.14.0](https://github.com/salesforcecli/plugin-templates/compare/56.13.4...56.14.0) (2026-03-31)
2+
3+
### Bug Fixes
4+
5+
- address PR review comments for lwc-language flag ([1bc5916](https://github.com/salesforcecli/plugin-templates/commit/1bc59168a5cd1138b3e976e036235e7b7d087e1d))
6+
- bump templates lib ([3358b8c](https://github.com/salesforcecli/plugin-templates/commit/3358b8c6776946bb32be2542c91b2ea9739f7703))
7+
- only pass lwcLanguage when explicitly provided ([837a878](https://github.com/salesforcecli/plugin-templates/commit/837a87868092a706883954ac061b6d66022fec05))
8+
- only set defaultLwcLanguage when --lwc-language flag is explicitly provided ([23c14ca](https://github.com/salesforcecli/plugin-templates/commit/23c14ca20220863f8c397ee0d16a4add762ab052))
9+
- update TypeScript project NUT tests to match current implementation ([c992773](https://github.com/salesforcecli/plugin-templates/commit/c9927737f5e3d1d123ec06d5f89345f096164873))
10+
11+
### Features
12+
13+
- **project:** add --lwc-language flag to project generate command ([74662f3](https://github.com/salesforcecli/plugin-templates/commit/74662f37423fb3a9ae4cb2efbdee14d6cca4439d))
14+
15+
## [56.13.4](https://github.com/salesforcecli/plugin-templates/compare/56.13.3...56.13.4) (2026-03-31)
16+
17+
### Bug Fixes
18+
19+
- remove top-level ui-bundle topic ([0b62477](https://github.com/salesforcecli/plugin-templates/commit/0b624770e176efb79cfedd2cab967f395a97f5d3))
20+
- remove unnecessary alias ([92210bb](https://github.com/salesforcecli/plugin-templates/commit/92210bb47980c2fd6726724ce22c82a7fce17c0b))
21+
122
## [56.13.3](https://github.com/salesforcecli/plugin-templates/compare/56.13.2...56.13.3) (2026-03-31)
223

324
### Bug Fixes

README.md

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ FLAG DESCRIPTIONS
177177
directory.
178178
```
179179

180-
_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/analytics/template.ts)_
180+
_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/analytics/template.ts)_
181181

182182
## `sf template generate apex class`
183183

@@ -237,7 +237,7 @@ FLAG DESCRIPTIONS
237237
Supplied parameter values or default values are filled into a copy of the template.
238238
```
239239

240-
_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/apex/class.ts)_
240+
_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/apex/class.ts)_
241241

242242
## `sf template generate apex trigger`
243243

@@ -307,7 +307,7 @@ FLAG DESCRIPTIONS
307307
Supplied parameter values or default values are filled into a copy of the template.
308308
```
309309

310-
_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/apex/trigger.ts)_
310+
_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/apex/trigger.ts)_
311311

312312
## `sf template generate digital-experience site`
313313

@@ -361,7 +361,7 @@ FLAG DESCRIPTIONS
361361
project, defaults to the current directory.
362362
```
363363

364-
_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/digital-experience/site.ts)_
364+
_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/digital-experience/site.ts)_
365365

366366
## `sf template generate flexipage`
367367

@@ -443,7 +443,7 @@ FLAG DESCRIPTIONS
443443
'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
444444
```
445445

446-
_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/flexipage/index.ts)_
446+
_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/flexipage/index.ts)_
447447

448448
## `sf template generate lightning app`
449449

@@ -499,7 +499,7 @@ FLAG DESCRIPTIONS
499499
Supplied parameter values or default values are filled into a copy of the template.
500500
```
501501

502-
_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/lightning/app.ts)_
502+
_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/app.ts)_
503503

504504
## `sf template generate lightning component`
505505

@@ -569,7 +569,7 @@ FLAG DESCRIPTIONS
569569
Supplied parameter values or default values are filled into a copy of the template.
570570
```
571571

572-
_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/lightning/component.ts)_
572+
_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/component.ts)_
573573

574574
## `sf template generate lightning event`
575575

@@ -625,7 +625,7 @@ FLAG DESCRIPTIONS
625625
Supplied parameter values or default values are filled into a copy of the template.
626626
```
627627

628-
_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/lightning/event.ts)_
628+
_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/event.ts)_
629629

630630
## `sf template generate lightning interface`
631631

@@ -681,7 +681,7 @@ FLAG DESCRIPTIONS
681681
Supplied parameter values or default values are filled into a copy of the template.
682682
```
683683

684-
_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/lightning/interface.ts)_
684+
_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/interface.ts)_
685685

686686
## `sf template generate lightning test`
687687

@@ -737,7 +737,7 @@ FLAG DESCRIPTIONS
737737
Supplied parameter values or default values are filled into a copy of the template.
738738
```
739739

740-
_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/lightning/test.ts)_
740+
_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/test.ts)_
741741

742742
## `sf template generate project`
743743

@@ -747,7 +747,7 @@ Generate a Salesforce DX project.
747747
USAGE
748748
$ sf template generate project -n <value> [--json] [--flags-dir <value>] [-t
749749
standard|empty|analytics|reactinternalapp|reactexternalapp|agent] [-d <value>] [-s <value>] [-p <value>] [-x]
750-
[--api-version <value>]
750+
[--lwc-language javascript|typescript] [--api-version <value>]
751751
752752
FLAGS
753753
-d, --output-dir=<value> [default: .] Directory for saving the created files.
@@ -758,6 +758,8 @@ FLAGS
758758
<options: standard|empty|analytics|reactinternalapp|reactexternalapp|agent>
759759
-x, --manifest Generate a manifest (package.xml) for change-set based development.
760760
--api-version=<value> Will set this version as sourceApiVersion in the sfdx-project.json file
761+
--lwc-language=<option> Default language for Lightning Web Components.
762+
<options: javascript|typescript>
761763
762764
GLOBAL FLAGS
763765
--flags-dir=<value> Import flag values from a directory.
@@ -795,6 +797,10 @@ EXAMPLES
795797
796798
$ sf template generate project --name mywork --template empty
797799
800+
Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:
801+
802+
$ sf template generate project --name mywork --lwc-language typescript
803+
798804
FLAG DESCRIPTIONS
799805
-d, --output-dir=<value> Directory for saving the created files.
800806
@@ -848,9 +854,16 @@ FLAG DESCRIPTIONS
848854
--api-version=<value> Will set this version as sourceApiVersion in the sfdx-project.json file
849855
850856
Override the api version used for api requests made by this command
857+
858+
--lwc-language=javascript|typescript Default language for Lightning Web Components.
859+
860+
Sets the default language for Lightning Web Components in this project. When set to 'typescript', generates
861+
TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware
862+
ESLint config). TypeScript projects compile locally to a dist/ folder for validation, but deploy raw .ts files to
863+
Salesforce for server-side type stripping. Defaults to 'javascript'.
851864
```
852865

853-
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/project/index.ts)_
866+
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/project/index.ts)_
854867

855868
## `sf template generate static-resource`
856869

@@ -913,7 +926,7 @@ FLAG DESCRIPTIONS
913926
etc.
914927
```
915928

916-
_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/static-resource/index.ts)_
929+
_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/static-resource/index.ts)_
917930

918931
## `sf template generate ui-bundle`
919932

@@ -952,9 +965,6 @@ DESCRIPTION
952965
Use the --template flag for generating the files to get started with a speciic UI framework, such as React. Check out
953966
the README.md file in the generated "uiBundles/<bundlename>" directory for more information about the template.
954967
955-
ALIASES
956-
$ sf ui-bundle generate
957-
958968
EXAMPLES
959969
Generate a UI bundle called MyUiBundle in the current directory:
960970
@@ -1000,7 +1010,7 @@ FLAG DESCRIPTIONS
10001010
Supplied parameter values or default values are filled into a copy of the template.
10011011
```
10021012

1003-
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/ui-bundle/index.ts)_
1013+
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/ui-bundle/index.ts)_
10041014

10051015
## `sf template generate visualforce component`
10061016

@@ -1057,7 +1067,7 @@ FLAG DESCRIPTIONS
10571067
Supplied parameter values or default values are filled into a copy of the template.
10581068
```
10591069

1060-
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/visualforce/component.ts)_
1070+
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/visualforce/component.ts)_
10611071

10621072
## `sf template generate visualforce page`
10631073

@@ -1108,6 +1118,6 @@ FLAG DESCRIPTIONS
11081118
The name can be up to 40 characters and must start with a letter.
11091119
```
11101120

1111-
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.3/src/commands/template/generate/visualforce/page.ts)_
1121+
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/visualforce/page.ts)_
11121122

11131123
<!-- commandsstop -->

command-snapshot.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@
132132
"flags": ["api-version", "flags-dir", "json", "loglevel", "name", "output-dir", "type"],
133133
"plugin": "@salesforce/plugin-templates"
134134
},
135+
{
136+
"alias": [],
137+
"command": "template:generate:ui-bundle",
138+
"flagAliases": [],
139+
"flagChars": ["d", "l", "n", "t"],
140+
"flags": ["api-version", "flags-dir", "json", "label", "name", "output-dir", "template"],
141+
"plugin": "@salesforce/plugin-templates"
142+
},
135143
{
136144
"alias": ["force:visualforce:component:create", "visualforce:generate:component"],
137145
"command": "template:generate:visualforce:component",
@@ -147,13 +155,5 @@
147155
"flagChars": ["d", "l", "n", "t"],
148156
"flags": ["api-version", "flags-dir", "json", "label", "loglevel", "name", "output-dir", "template"],
149157
"plugin": "@salesforce/plugin-templates"
150-
},
151-
{
152-
"alias": ["ui-bundle:generate"],
153-
"command": "template:generate:ui-bundle",
154-
"flagAliases": [],
155-
"flagChars": ["d", "l", "n", "t"],
156-
"flags": ["api-version", "flags-dir", "json", "label", "name", "output-dir", "template"],
157-
"plugin": "@salesforce/plugin-templates"
158158
}
159159
]

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-templates",
33
"description": "Commands to create metadata from a default or custom template",
4-
"version": "56.13.3",
4+
"version": "56.14.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/salesforcecli/plugin-templates/issues",
77
"enableO11y": true,
@@ -90,9 +90,6 @@
9090
}
9191
}
9292
}
93-
},
94-
"ui-bundle": {
95-
"description": "Work with UI bundles."
9693
}
9794
},
9895
"flexibleTaxonomy": true,

src/commands/template/generate/ui-bundle/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export default class UiBundleGenerate extends SfCommand<CreateOutput> {
2020
public static readonly summary = messages.getMessage('summary');
2121
public static readonly description = messages.getMessage('description');
2222
public static readonly examples = messages.getMessages('examples');
23-
public static readonly aliases = ['ui-bundle:generate'];
2423
public static readonly flags = {
2524
name: Flags.string({
2625
char: 'n',

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@
15981598

15991599
"@salesforce/kit@^3.2.6":
16001600
version "3.2.6"
1601-
resolved "https://nexus-proxy.repo.local.sfdc.net/nexus/content/groups/npm-all/@salesforce/kit/-/kit-3.2.6.tgz#6a6c13b463b51694a43d61094af67171086ed4f5"
1601+
resolved "https://registry.yarnpkg.com/@salesforce/kit/-/kit-3.2.6.tgz#6a6c13b463b51694a43d61094af67171086ed4f5"
16021602
integrity sha512-O8S4LWerHa9Zosqh+IoQjgLtpxMOfObRxaRnUdRV4MLtFUi+bQxQiyFvve6eEaBaMP1b1xVDQpvSvQ+PXEDGFQ==
16031603
dependencies:
16041604
"@salesforce/ts-types" "^2.0.12"
@@ -1658,7 +1658,7 @@
16581658

16591659
"@salesforce/templates@^66.7.6":
16601660
version "66.7.6"
1661-
resolved "https://nexus-proxy.repo.local.sfdc.net/nexus/content/groups/npm-all/@salesforce/templates/-/templates-66.7.6.tgz#36c597466acd62b3f98c98e6bc097d33794d769f"
1661+
resolved "https://registry.yarnpkg.com/@salesforce/templates/-/templates-66.7.6.tgz#36c597466acd62b3f98c98e6bc097d33794d769f"
16621662
integrity sha512-lTS4lk2oV5QF0XrWxTIjRjwFKboNfwUTb6G9Jp3rXx/MR5ajwv+vDbld+vhNzDg7gjLoGB3e4GJBQqNn8GnEtg==
16631663
dependencies:
16641664
"@salesforce/kit" "^3.2.6"
@@ -7391,7 +7391,7 @@ supports-preserve-symlinks-flag@^1.0.0:
73917391

73927392
tar@^7.5.13:
73937393
version "7.5.13"
7394-
resolved "https://nexus-proxy.repo.local.sfdc.net/nexus/content/groups/npm-all/tar/-/tar-7.5.13.tgz#0d214ed56781a26edc313581c0e2d929ceeb866d"
7394+
resolved "https://registry.yarnpkg.com/tar/-/tar-7.5.13.tgz#0d214ed56781a26edc313581c0e2d929ceeb866d"
73957395
integrity sha512-tOG/7GyXpFevhXVh8jOPJrmtRpOTsYqUIkVdVooZYJS/z8WhfQUX8RJILmeuJNinGAMSu1veBr4asSHFt5/hng==
73967396
dependencies:
73977397
"@isaacs/fs-minipass" "^4.0.0"

0 commit comments

Comments
 (0)