|
1 | | -# Salesforce DX Project: Next Steps |
| 1 | +# ⚡️ Lightning Flow Scanner Demo Flows |
2 | 2 |
|
3 | | -Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started. |
| 3 | +Welcome to the **Lightning Flow Scanner Demo Flows**! This project includes a curated set of Salesforce Flow metadata files (`.flow-meta.xml`) intended for: |
4 | 4 |
|
5 | | -## How Do You Plan to Deploy Your Changes? |
| 5 | +- ✅ Demonstrating best practices and violations detectable by [Lightning Flow Scanner](https://github.com/Lightning-Flow-Scanner) |
| 6 | +- 🧪 Serving as a reliable input set for automated testing in the main scanner repository |
| 7 | +- 🚀 Easy deployment to any org using the Salesforce CLI |
6 | 8 |
|
7 | | -Do you want to deploy a set of changes, or create a self-contained application? Choose a [development model](https://developer.salesforce.com/tools/vscode/en/user-guide/development-models). |
| 9 | +These flows are designed to support testing, demoing, and local development without maintaining a separate demo repository. |
8 | 10 |
|
9 | | -## Configure Your Salesforce DX Project |
| 11 | +--- |
10 | 12 |
|
11 | | -The `sfdx-project.json` file contains useful configuration information for your project. See [Salesforce DX Project Configuration](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm) in the _Salesforce DX Developer Guide_ for details about this file. |
| 13 | +## 🔧 Usage |
12 | 14 |
|
13 | | -## Read All About It |
| 15 | +You can deploy the demo flows using: |
14 | 16 |
|
15 | | -- [Salesforce Extensions Documentation](https://developer.salesforce.com/tools/vscode/) |
16 | | -- [Salesforce CLI Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm) |
17 | | -- [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm) |
18 | | -- [Salesforce CLI Command Reference](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm) |
| 17 | +```bash |
| 18 | +npm run deploy:testflows -- --target-org my-sandbox |
| 19 | +``` |
| 20 | + |
| 21 | +Or with an environment variable: |
| 22 | + |
| 23 | +```bash |
| 24 | +SF_TARGET_ORG=my-sandbox npm run deploy:testflows |
| 25 | +``` |
| 26 | + |
| 27 | +--- |
| 28 | + |
| 29 | +## 📁 Project Structure |
| 30 | + |
| 31 | +This is a standard Salesforce DX project structure: |
| 32 | + |
| 33 | +``` |
| 34 | +example-flows/ |
| 35 | +└── force-app/ |
| 36 | + └── main/ |
| 37 | + └── default/ |
| 38 | + └── flows/ |
| 39 | + ├── Copy_API_Name.flow-meta.xml |
| 40 | + ├── Hardcoded_Id.flow-meta.xml |
| 41 | + ├── ... |
| 42 | +``` |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +## 🧪 Connected to Unit Tests |
| 47 | + |
| 48 | +These flows are directly referenced by unit tests in the main [`lightning-flow-scanner-core`](https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core) repository. Tests point to: |
| 49 | + |
| 50 | +``` |
| 51 | +../example-flows/force-app/main/default/flows/ |
| 52 | +``` |
| 53 | + |
| 54 | +No more maintaining a separate flows repo! 🎉 |
| 55 | + |
| 56 | +--- |
| 57 | + |
| 58 | +## 💡 Want to Explore in VS Code? |
| 59 | + |
| 60 | +1. **Clone this repo** |
| 61 | + - `git clone https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core.git` |
| 62 | +2. **Open `example-flows/` in VS Code** |
| 63 | +3. **Install recommended extensions when prompted** |
| 64 | +4. Use Salesforce CLI or the Lightning Flow Scanner VS Code extension to scan and analyze the flows. |
| 65 | + |
| 66 | +--- |
| 67 | + |
| 68 | +## 🧩 Recommended VS Code Extensions |
| 69 | + |
| 70 | +- [Salesforce Extension Pack](https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode) |
| 71 | +- [Lightning Flow Scanner Extension](https://marketplace.visualstudio.com/items?itemName=ForceConfigControl.lightningflowscanner) |
| 72 | +- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) |
| 73 | + |
| 74 | +--- |
| 75 | + |
| 76 | +## 📖 Resources |
| 77 | + |
| 78 | +- [Lightning Flow Scanner Core](https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core) |
| 79 | +- [Lightning Flow Scanner VS Code Extension](https://marketplace.visualstudio.com/items?itemName=ForceConfigControl.lightningflowscanner) |
| 80 | +- [Salesforce DX Documentation](https://developer.salesforce.com/tools/sfdxcli) |
| 81 | + |
| 82 | +--- |
| 83 | + |
| 84 | +Happy Flow Scanning! 🚦✨ |
0 commit comments