Skip to content

Commit a1f5e77

Browse files
authored
Merge pull request #886 from mzhang0/mzhang0/rename-webapp-templates
[W-21655060] feat: rename webapp templates
2 parents b17e60d + 40aaa49 commit a1f5e77

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ Generate a Salesforce DX project.
745745
```
746746
USAGE
747747
$ sf template generate project -n <value> [--json] [--flags-dir <value>] [-t
748-
standard|empty|analytics|reactb2e|reactb2x|agent] [-d <value>] [-s <value>] [-p <value>] [-x] [--api-version
748+
standard|empty|analytics|reactinternalapp|reactexternalapp|agent] [-d <value>] [-s <value>] [-p <value>] [-x] [--api-version
749749
<value>]
750750
751751
FLAGS
@@ -754,7 +754,7 @@ FLAGS
754754
-p, --default-package-dir=<value> [default: force-app] Default package directory name.
755755
-s, --namespace=<value> Namespace associated with this project and any connected scratch orgs.
756756
-t, --template=<option> [default: standard] Template to use for project creation.
757-
<options: standard|empty|analytics|reactb2e|reactb2x|agent>
757+
<options: standard|empty|analytics|reactinternalapp|reactexternalapp|agent>
758758
-x, --manifest Generate a manifest (package.xml) for change-set based development.
759759
--api-version=<value> Will set this version as sourceApiVersion in the sfdx-project.json file
760760
@@ -809,7 +809,7 @@ FLAG DESCRIPTIONS
809809
810810
Metadata items such as classes and Lightning bundles are placed inside this folder.
811811
812-
-t, --template=standard|empty|analytics|reactb2e|reactb2x|agent Template to use for project creation.
812+
-t, --template=standard|empty|analytics|reactinternalapp|reactexternalapp|agent Template to use for project creation.
813813
814814
The template determines the sample configuration files and directories that this command generates. For example, the
815815
empty template provides these files and directory to get you started.
@@ -833,7 +833,7 @@ FLAG DESCRIPTIONS
833833
834834
The analytics template provides similar files and the force-app/main/default/waveTemplates directory.
835835
836-
The reactb2e and reactb2x templates provide React-based project scaffolding for B2E and B2X web application use
836+
The reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external web application use
837837
cases.
838838
839839
The agent template provides project scaffolding for building Agentforce agents and includes a sample agent called

messages/project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The standard template provides a complete force-app directory structure so you k
5858

5959
The analytics template provides similar files and the force-app/main/default/waveTemplates directory.
6060

61-
The reactb2e and reactb2x templates provide React-based project scaffolding for B2E and B2X web application use cases.
61+
The reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external web application use cases.
6262

6363
The agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.
6464

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"@salesforce/core": "^8.27.1",
1111
"@salesforce/sf-plugins-core": "^12",
12-
"@salesforce/templates": "^66.5.6"
12+
"@salesforce/templates": "^66.6.2"
1313
},
1414
"devDependencies": {
1515
"@oclif/plugin-command-snapshot": "^5.3.13",

src/commands/template/generate/project/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class Project extends SfCommand<CreateOutput> {
3333
summary: messages.getMessage('flags.template.summary'),
3434
description: messages.getMessage('flags.template.description'),
3535
default: 'standard',
36-
options: ['standard', 'empty', 'analytics', 'reactb2e', 'reactb2x', 'agent'] as const,
36+
options: ['standard', 'empty', 'analytics', 'reactinternalapp', 'reactexternalapp', 'agent'] as const,
3737
})(),
3838
'output-dir': outputDirFlag,
3939
namespace: Flags.string({

test/commands/template/generate/project/index.nut.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ describe('template generate project:', () => {
243243
assert.file([path.join(session.project.dir, 'analytics1', 'eslint.config.js')]);
244244
});
245245

246-
it('should create project with reactb2e template', () => {
247-
const projectName = 'react-b2e-test';
248-
const alphanumericName = 'reactb2etest';
249-
execCmd(`template generate project --projectname ${projectName} --template reactb2e`, {
246+
it('should create project with reactinternalapp template', () => {
247+
const projectName = 'react-internal-app-test';
248+
const alphanumericName = 'reactinternalapptest';
249+
execCmd(`template generate project --projectname ${projectName} --template reactinternalapp`, {
250250
ensureExitCode: 0,
251251
});
252252
const projectDir = path.join(session.project.dir, projectName);
@@ -265,10 +265,10 @@ describe('template generate project:', () => {
265265
assert.fileContent(webappMetaPath, alphanumericName);
266266
});
267267

268-
it('should create project with reactb2x template', () => {
268+
it('should create project with reactexternalapp template', () => {
269269
const projectName = 'react-b2x-test';
270270
const alphanumericName = 'reactb2xtest';
271-
execCmd(`template generate project --projectname ${projectName} --template reactb2x`, {
271+
execCmd(`template generate project --projectname ${projectName} --template reactexternalapp`, {
272272
ensureExitCode: 0,
273273
});
274274
const projectDir = path.join(session.project.dir, projectName);

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,10 +1649,10 @@
16491649
cli-progress "^3.12.0"
16501650
terminal-link "^3.0.0"
16511651

1652-
"@salesforce/templates@^66.5.6":
1653-
version "66.5.6"
1654-
resolved "https://registry.yarnpkg.com/@salesforce/templates/-/templates-66.5.6.tgz#1fcece13106882ded54fcd96a5d9bf49fd31a546"
1655-
integrity sha512-k18ROus8XUskIT6n2eXsHvoZK3NmrVePSPduCfjWEohMEJ/qy9ltdyMos/eebzc3ejooLBu40/22zKjVZFoFfA==
1652+
"@salesforce/templates@^66.6.2":
1653+
version "66.6.2"
1654+
resolved "https://registry.yarnpkg.com/@salesforce/templates/-/templates-66.6.2.tgz#efc37965d41ba81791d08ecb733a327f4e9f8536"
1655+
integrity sha512-ACrKYF586OtPD9PfDivFL9p66Bb08wbVOlp/FnlphjLFmcVNGxNlmG0bJnZqjHQnckZOvtrVfwBaHxS4iFObtg==
16561656
dependencies:
16571657
"@salesforce/kit" "^3.2.4"
16581658
ejs "^3.1.10"

0 commit comments

Comments
 (0)