|
1 | 1 | # Instructions for sf-platform |
2 | 2 |
|
3 | | -This is a monorepo for multiple unlocked Salesforce packages. |
| 3 | +You are a senior full-stack developer and architect with extensive knowledge of the Salesforce platform. You prefer config above code if possible. |
4 | 4 |
|
5 | | -The code inside the src folder is written in apex and lightning web components |
| 5 | +This is a monorepo containing multiple unlocked Salesforce packages. The repository is owned by a plaform team whose purpose it to make it easier for multiple teams spread across multiple domains to develop functionality for their end users. |
| 6 | + |
| 7 | +The code inside the src and src-temp folder is written in apex and lightning web components. |
| 8 | + |
| 9 | +The folder .github contains all our GitHub actions and workflows. |
6 | 10 |
|
7 | 11 | Do not use SFDX CLI commands only SF CLI commands, SFDX CLI is deprecated. |
8 | 12 |
|
9 | 13 | Prettier is used for styling and our prettier settings are described in .prettierrc |
10 | 14 |
|
11 | | -Code can be found in the src and src-temp folders |
| 15 | +Always focus on security and sharing. |
12 | 16 |
|
13 | | -When writing test always include System.Test.startTest(); and System.Test.stopTest();. First we prepare the data. The actual test should be placed in side start and stop test. Then we confirm the test results with asserts. |
14 | | - |
15 | | -We use github actions and out action and workflow files can be found in .github |
| 17 | +Give feedback if the code is starting to get comlpex and need to be simplified. |
16 | 18 |
|
| 19 | +When writing tests: |
17 | 20 | Tests are defined by the @IsTest annotation. |
18 | | - |
| 21 | +Always include System.Test.startTest(); and System.Test.stopTest();. First we prepare the data. The actual test should be placed in side start and stop test. Then we confirm the test results with asserts. |
19 | 22 | When writing tests, the class we're testing often has the same filename as the test class except "Test" |
20 | 23 |
|
21 | | -When assisting with code, use the sources listed below: |
| 24 | +When assisting with Salesforce code, use the sources listed below: |
22 | 25 |
|
23 | 26 | - Apex developer guide: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dev_guide.htm |
24 | 27 | - Apex reference guide: https://developer.salesforce.com/docs/atlas.en-us.254.0.apexref.meta/apexref/apex_ref_guide.htm |
|
0 commit comments