Skip to content

Commit 96be9de

Browse files
Merge branch 'main' into refactor-webapp-discovery
2 parents 49c4034 + caed512 commit 96be9de

9 files changed

Lines changed: 43 additions & 812 deletions

File tree

.github/workflows/create-github-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: create-github-release
22

33
on:
4-
# push:
5-
# branches:
6-
# - main
7-
# - prerelease/**
8-
# tags-ignore:
9-
# - '*'
4+
push:
5+
branches:
6+
- main
7+
- prerelease/**
8+
tags-ignore:
9+
- '*'
1010
workflow_dispatch:
1111
inputs:
1212
prerelease:

.github/workflows/onRelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
2626
needs: [getDistTag]
2727
with:
28-
ctc: true
28+
#ctc: true
2929
sign: true
3030
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
3131
githubTag: ${{ github.event.release.tag_name || inputs.tag }}

CHANGELOG.md

Lines changed: 11 additions & 742 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 7 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,10 @@
1-
**NOTE: This template for sf plugins is not yet official. Please consult with the Platform CLI team before using this template.**
1+
# plugin-app-dev
22

3-
# plugin-webapp
3+
[![NPM](https://img.shields.io/npm/v/@salesforce/plugin-app-dev.svg?label=@salesforce/plugin-app-dev)](https://www.npmjs.com/package/@salesforce/plugin-app-dev) [![Downloads/week](https://img.shields.io/npm/dw/@salesforce/plugin-app-dev.svg)](https://npmjs.org/package/@salesforce/plugin-app-dev) [![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/license/apache-2-0)
44

5-
[![NPM](https://img.shields.io/npm/v/@salesforce/plugin-webapp.svg?label=@salesforce/plugin-webapp)](https://www.npmjs.com/package/@salesforce/plugin-webapp) [![Downloads/week](https://img.shields.io/npm/dw/@salesforce/plugin-webapp.svg)](https://npmjs.org/package/@salesforce/plugin-webapp) [![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/license/apache-2-0)
5+
# Salesforce CLI App Dev Plugin
66

7-
## Using the template
8-
9-
This repository provides a template for creating a plugin for the Salesforce CLI. To convert this template to a working plugin:
10-
11-
1. Please get in touch with the Platform CLI team. We want to help you develop your plugin.
12-
2. Generate your plugin:
13-
14-
```
15-
sf plugins install dev
16-
sf dev generate plugin
17-
18-
git init -b main
19-
git add . && git commit -m "chore: initial commit"
20-
```
21-
22-
3. Create your plugin's repo in the salesforcecli github org
23-
4. When you're ready, replace the contents of this README with the information you want.
24-
25-
## Learn about `sf` plugins
26-
27-
Salesforce CLI plugins are based on the [oclif plugin framework](https://oclif.io/docs/introduction). Read the [plugin developer guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_architecture_sf_cli.htm) to learn about Salesforce CLI plugin development.
28-
29-
This repository contains a lot of additional scripts and tools to help with general Salesforce node development and enforce coding standards. You should familiarize yourself with some of the [node developer packages](#tooling) used by Salesforce. There is also a default circleci config using the [release management orb](https://github.com/forcedotcom/npm-release-management-orb) standards.
30-
31-
Additionally, there are some additional tests that the Salesforce CLI will enforce if this plugin is ever bundled with the CLI. These test are included by default under the `posttest` script and it is required to keep these tests active in your plugin if you plan to have it bundled.
32-
33-
### Tooling
34-
35-
- [@salesforce/core](https://github.com/forcedotcom/sfdx-core)
36-
- [@salesforce/kit](https://github.com/forcedotcom/kit)
37-
- [@salesforce/sf-plugins-core](https://github.com/salesforcecli/sf-plugins-core)
38-
- [@salesforce/ts-types](https://github.com/forcedotcom/ts-types)
39-
- [@salesforce/ts-sinon](https://github.com/forcedotcom/ts-sinon)
40-
- [@salesforce/dev-config](https://github.com/forcedotcom/dev-config)
41-
- [@salesforce/dev-scripts](https://github.com/forcedotcom/dev-scripts)
42-
43-
# Salesforce CLI Webapp Plugin
44-
45-
A Salesforce CLI plugin for building and deploying web applications that integrate with Salesforce. This plugin provides tools for local development, packaging, and deployment of webapps with built-in Salesforce authentication.
7+
A Salesforce CLI plugin for building web applications that integrate with Salesforce. This plugin provides tools for local development, packaging, and deployment of webapps with built-in Salesforce authentication.
468

479
This plugin is bundled with the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli). For more information on the CLI, read the [getting started guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm).
4810

@@ -62,7 +24,7 @@ We always recommend using the latest version of these commands bundled with the
6224
1. **Install the plugin:**
6325

6426
```bash
65-
sf plugins install @salesforce/plugin-webapp
27+
sf plugins install @salesforce/plugin-app-dev
6628
```
6729

6830
2. **Authenticate with Salesforce:**
@@ -107,7 +69,7 @@ We always recommend using the latest version of these commands bundled with the
10769
## Install
10870

10971
```bash
110-
sf plugins install @salesforce/plugin-webapp@x.y.z
72+
sf plugins install @salesforce/plugin-app-dev@x.y.z
11173
```
11274

11375
## Issues
@@ -139,7 +101,7 @@ To build the plugin locally, make sure to have yarn installed and run the follow
139101

140102
```bash
141103
# Clone the repository
142-
git clone git@github.com:salesforcecli/plugin-webapp
104+
git clone git@github.com:salesforcecli/plugin-app-dev
143105

144106
# Install the dependencies and compile
145107
yarn && yarn build

SF_WEBAPP_DEV_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ Output:
611611
### Building the Plugin
612612

613613
```bash
614-
cd /path/to/plugin-webapp
614+
cd /path/to/plugin-app-dev
615615

616616
# Install dependencies
617617
yarn install
@@ -635,7 +635,7 @@ yarn build # Rebuild - no re-linking needed
635635
### Project Structure
636636

637637
```
638-
plugin-webapp/
638+
plugin-app-dev/
639639
├── src/
640640
│ ├── commands/webapp/
641641
│ │ └── dev.ts # Main command implementation
@@ -679,4 +679,4 @@ plugin-webapp/
679679

680680
---
681681

682-
**Repository:** [github.com/salesforcecli/plugin-webapp](https://github.com/salesforcecli/plugin-webapp)
682+
**Repository:** [github.com/salesforcecli/plugin-app-dev](https://github.com/salesforcecli/plugin-app-dev)

command-snapshot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"flagAliases": [],
66
"flagChars": ["b", "n", "o", "p", "u"],
77
"flags": ["flags-dir", "json", "name", "open", "port", "target-org", "url"],
8-
"plugin": "@salesforce/plugin-webapp"
8+
"plugin": "@salesforce/plugin-app-dev"
99
}
1010
]

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "@salesforce/plugin-webapp",
3-
"description": "webapp development",
4-
"version": "1.0.0",
2+
"name": "@salesforce/plugin-app-dev",
3+
"description": "",
4+
"version": "1.1.2",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {
88
"@inquirer/select": "^5.0.2",
99
"@oclif/core": "^4",
10-
"@salesforce/core": "^8.25.0",
10+
"@salesforce/core": "^8.25.1",
1111
"@salesforce/kit": "^3.2.4",
1212
"@salesforce/sf-plugins-core": "^12.2.6",
1313
"@salesforce/webapp-experimental": "^1.23.0",
@@ -40,7 +40,7 @@
4040
"/oclif.manifest.json",
4141
"/schemas"
4242
],
43-
"homepage": "https://github.com/salesforcecli/plugin-webapp",
43+
"homepage": "https://github.com/salesforcecli/plugin-app-dev",
4444
"keywords": [
4545
"force",
4646
"salesforce",
@@ -67,7 +67,7 @@
6767
},
6868
"flexibleTaxonomy": true
6969
},
70-
"repository": "salesforcecli/plugin-webapp",
70+
"repository": "salesforcecli/plugin-app-dev",
7171
"scripts": {
7272
"build": "wireit",
7373
"clean": "sf-clean",

src/commands/webapp/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { ProxyServer } from '../../proxy/ProxyServer.js';
2626
import { discoverWebapp, DEFAULT_DEV_COMMAND, type DiscoveredWebapp } from '../../config/webappDiscovery.js';
2727

2828
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
29-
const messages = Messages.loadMessages('@salesforce/plugin-webapp', 'webapp.dev');
29+
const messages = Messages.loadMessages('@salesforce/plugin-app-dev', 'webapp.dev');
3030

3131
export default class WebappDev extends SfCommand<WebAppDevResult> {
3232
public static readonly summary = messages.getMessage('summary');

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,10 +1670,10 @@
16701670
strip-ansi "6.0.1"
16711671
ts-retry-promise "^0.8.1"
16721672

1673-
"@salesforce/core@^8.18.7", "@salesforce/core@^8.23.1", "@salesforce/core@^8.23.3", "@salesforce/core@^8.23.4", "@salesforce/core@^8.25.0", "@salesforce/core@^8.5.1", "@salesforce/core@^8.8.0":
1674-
version "8.25.0"
1675-
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.25.0.tgz#2cf53f38aee8fb6ea1b0e6b6e301b66bc0d81d1c"
1676-
integrity sha512-LdUDEK8mmiWpnKn6wtaSDcvZc2Svrg/xldint1OGyVhCGZUAQLjCWRKkBT5DdIVV3g9QrDNhLboi904jcwDe1g==
1673+
"@salesforce/core@^8.18.7", "@salesforce/core@^8.23.1", "@salesforce/core@^8.23.3", "@salesforce/core@^8.23.4", "@salesforce/core@^8.25.1", "@salesforce/core@^8.5.1", "@salesforce/core@^8.8.0":
1674+
version "8.25.1"
1675+
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.25.1.tgz#7646025598bb59b6f95b3656baf8eb0b63a43052"
1676+
integrity sha512-Jon0a9uZpp+mNa5PiY+y8dTjaPcsMaxXEkswdzWotrdrZ4g84MmPKSEv+Q/LtXw3uc9i4RmqBJBUXSIvZhgrjg==
16771677
dependencies:
16781678
"@jsforce/jsforce-node" "^3.10.13"
16791679
"@salesforce/kit" "^3.2.4"
@@ -6099,9 +6099,9 @@ map-obj@^4.0.0:
60996099
integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==
61006100

61016101
markdown-it@^14.1.0:
6102-
version "14.1.0"
6103-
resolved "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz"
6104-
integrity sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==
6102+
version "14.1.1"
6103+
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-14.1.1.tgz#856f90b66fc39ae70affd25c1b18b581d7deee1f"
6104+
integrity sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==
61056105
dependencies:
61066106
argparse "^2.0.1"
61076107
entities "^4.4.0"

0 commit comments

Comments
 (0)