mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-08 16:25:58 +08:00
chore: rename sample folders to match ui-bundle-template package names
This commit is contained in:
parent
bb52080233
commit
97794f673f
4
.github/workflows/sync-react-samples.yml
vendored
4
.github/workflows/sync-react-samples.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
|||||||
- name: Read current synced B2E version
|
- name: Read current synced B2E version
|
||||||
id: current-version-b2e
|
id: current-version-b2e
|
||||||
run: |
|
run: |
|
||||||
VERSION_FILE="samples/webapp-template-app-react-sample-b2e-experimental/.version"
|
VERSION_FILE="samples/ui-bundle-template-app-react-sample-b2e/.version"
|
||||||
if [ -f "$VERSION_FILE" ]; then
|
if [ -f "$VERSION_FILE" ]; then
|
||||||
CURRENT=$(cat "$VERSION_FILE" | tr -d '[:space:]')
|
CURRENT=$(cat "$VERSION_FILE" | tr -d '[:space:]')
|
||||||
echo "current=$CURRENT" >> $GITHUB_OUTPUT
|
echo "current=$CURRENT" >> $GITHUB_OUTPUT
|
||||||
@ -69,7 +69,7 @@ jobs:
|
|||||||
- name: Read current synced B2X version
|
- name: Read current synced B2X version
|
||||||
id: current-version-b2x
|
id: current-version-b2x
|
||||||
run: |
|
run: |
|
||||||
VERSION_FILE="samples/webapp-template-app-react-sample-b2x-experimental/.version"
|
VERSION_FILE="samples/ui-bundle-template-app-react-sample-b2x/.version"
|
||||||
if [ -f "$VERSION_FILE" ]; then
|
if [ -f "$VERSION_FILE" ]; then
|
||||||
CURRENT=$(cat "$VERSION_FILE" | tr -d '[:space:]')
|
CURRENT=$(cat "$VERSION_FILE" | tr -d '[:space:]')
|
||||||
echo "current=$CURRENT" >> $GITHUB_OUTPUT
|
echo "current=$CURRENT" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
@ -17,7 +17,7 @@ afv-library/
|
|||||||
│ ├── generating-flow/
|
│ ├── generating-flow/
|
||||||
│ └── ...
|
│ └── ...
|
||||||
├── samples/ # Synced sample apps (e.g. from npm)
|
├── samples/ # Synced sample apps (e.g. from npm)
|
||||||
│ └── webapp-template-app-react-sample-b2e-experimental/
|
│ └── ui-bundle-template-app-react-sample-b2e/
|
||||||
│ └── ...
|
│ └── ...
|
||||||
├── scripts/
|
├── scripts/
|
||||||
│ └── ...
|
│ └── ...
|
||||||
@ -30,7 +30,7 @@ Browse the repository and copy/paste any rule or skill directly into Agentforce
|
|||||||
|
|
||||||
## Samples
|
## Samples
|
||||||
|
|
||||||
The `samples/` folder contains synced sample apps. For example, `samples/webapp-template-app-react-sample-b2e-experimental/` is kept in sync with the npm package `@salesforce/ui-bundle-template-app-react-sample-b2e` (nightly and on manual trigger via GitHub Actions). To run the same sync locally from the repo root:
|
The `samples/` folder contains synced sample apps. For example, `samples/ui-bundle-template-app-react-sample-b2e/` is kept in sync with the npm package `@salesforce/ui-bundle-template-app-react-sample-b2e` (nightly and on manual trigger via GitHub Actions). To run the same sync locally from the repo root:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install
|
npm install
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
Sample apps and templates synced into this repo for reference and reuse.
|
Sample apps and templates synced into this repo for reference and reuse.
|
||||||
|
|
||||||
## webapp-template-app-react-sample-b2e-experimental
|
## ui-bundle-template-app-react-sample-b2e
|
||||||
|
|
||||||
Source is synced from the npm package [@salesforce/ui-bundle-template-app-react-sample-b2e](https://www.npmjs.com/package/@salesforce/ui-bundle-template-app-react-sample-b2e). Only the package's source (no `node_modules`) is copied into `samples/webapp-template-app-react-sample-b2e-experimental/`.
|
Source is synced from the npm package [@salesforce/ui-bundle-template-app-react-sample-b2e](https://www.npmjs.com/package/@salesforce/ui-bundle-template-app-react-sample-b2e). Only the package's source (no `node_modules`) is copied into `samples/ui-bundle-template-app-react-sample-b2e/`.
|
||||||
|
|
||||||
### How it's updated
|
### How it's updated
|
||||||
|
|
||||||
@ -16,15 +16,15 @@ Source is synced from the npm package [@salesforce/ui-bundle-template-app-react-
|
|||||||
npm run sync-react-b2e-sample
|
npm run sync-react-b2e-sample
|
||||||
```
|
```
|
||||||
|
|
||||||
This installs the package into root `node_modules` and copies its source into `samples/webapp-template-app-react-sample-b2e-experimental/`, and updates `.version` in that folder.
|
This installs the package into root `node_modules` and copies its source into `samples/ui-bundle-template-app-react-sample-b2e/`, and updates `.version` in that folder.
|
||||||
|
|
||||||
### Version tracking
|
### Version tracking
|
||||||
|
|
||||||
The file `samples/webapp-template-app-react-sample-b2e-experimental/.version` stores the last-synced npm version. The Action compares it to the latest on npm and only creates a PR when they differ.
|
The file `samples/ui-bundle-template-app-react-sample-b2e/.version` stores the last-synced npm version. The Action compares it to the latest on npm and only creates a PR when they differ.
|
||||||
|
|
||||||
## webapp-template-app-react-sample-b2x-experimental
|
## ui-bundle-template-app-react-sample-b2x
|
||||||
|
|
||||||
Source is synced from the npm package [@salesforce/ui-bundle-template-app-react-sample-b2x](https://www.npmjs.com/package/@salesforce/ui-bundle-template-app-react-sample-b2x). Only the package's source (no `node_modules`) is copied into `samples/webapp-template-app-react-sample-b2x-experimental/`.
|
Source is synced from the npm package [@salesforce/ui-bundle-template-app-react-sample-b2x](https://www.npmjs.com/package/@salesforce/ui-bundle-template-app-react-sample-b2x). Only the package's source (no `node_modules`) is copied into `samples/ui-bundle-template-app-react-sample-b2x/`.
|
||||||
|
|
||||||
### How it's updated
|
### How it's updated
|
||||||
|
|
||||||
@ -36,11 +36,11 @@ Source is synced from the npm package [@salesforce/ui-bundle-template-app-react-
|
|||||||
npm run sync-react-b2x-sample
|
npm run sync-react-b2x-sample
|
||||||
```
|
```
|
||||||
|
|
||||||
This installs the package into root `node_modules` and copies its source into `samples/webapp-template-app-react-sample-b2x-experimental/`, and updates `.version` in that folder.
|
This installs the package into root `node_modules` and copies its source into `samples/ui-bundle-template-app-react-sample-b2x/`, and updates `.version` in that folder.
|
||||||
|
|
||||||
### Version tracking
|
### Version tracking
|
||||||
|
|
||||||
The file `samples/webapp-template-app-react-sample-b2x-experimental/.version` stores the last-synced npm version. The Action compares it to the latest on npm and only creates a PR when they differ.
|
The file `samples/ui-bundle-template-app-react-sample-b2x/.version` stores the last-synced npm version. The Action compares it to the latest on npm and only creates a PR when they differ.
|
||||||
|
|
||||||
## native-mobile-rental-tenant-app
|
## native-mobile-rental-tenant-app
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user