You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursorrules
+5-32Lines changed: 5 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
## Project Overview
4
4
5
-
This is a Salesforce CLI plugin for Lightning development tools (LEX, Mobile, and Experience Sites). It's built with TypeScript, uses yarn for package management, and leverages wireit for intelligent build caching and task orchestration.
5
+
This is a Salesforce CLI plugin for Lightning Web Component development (LEX, Mobile, Experience Sites, and Single Component Preview). It's built with TypeScript, uses yarn for package management, and leverages wireit for intelligent build caching and task orchestration.
6
6
7
7
## Key Technologies
8
8
9
9
- **TypeScript**: Primary language for the plugin
10
10
- **Wireit**: Build task orchestration with intelligent caching
11
11
- **Yarn**: Package manager (v1.22.22 as specified in volta config)
12
-
- **Node.js**: Runtime (v20.11.0 as specified in volta config)
12
+
- **Node.js**: This project supports all active and LTS versions of node
13
13
- **Salesforce CLI (sf)**: The platform this plugin extends
14
14
- **Lightning Web Components (LWC)**: Core technology for component development
15
15
- **Jest/Mocha**: Testing frameworks
@@ -86,7 +86,7 @@ Why both commands are needed:
86
86
### Alternative Cleaning Options
87
87
88
88
- `yarn clean`: Light cleanup (preserves some caches)
89
-
- Individual task clearing: Delete specific folders in `.wireit/` if you know which task is problematic
89
+
- Individual task clearing: Delete specific folders in `.wireit/` or `.eslintcache` if you know which task is problematic
90
90
91
91
## Development Workflow Best Practices
92
92
@@ -109,21 +109,11 @@ yarn test:only # Just unit tests
109
109
yarn test:nuts # Integration tests (slower)
110
110
```
111
111
112
-
### Local Development
113
-
114
-
```bash
115
-
# Use local dev command instead of global sf
116
-
./bin/dev lightning dev component
117
-
./bin/dev lightning dev site
118
-
./bin/dev lightning dev app
119
-
```
120
-
121
112
### Linking for Testing
122
113
123
114
```bash
124
115
# Link plugin to global sf CLI for testing
125
116
sf plugins link .
126
-
sf plugins # Verify plugin is linked
127
117
```
128
118
129
119
## Project-Specific Context
@@ -163,7 +153,7 @@ This plugin provides three main commands:
163
153
- `package.json`: Contains all wireit task definitions
164
154
- `tsconfig.json`: TypeScript configuration
165
155
- `lwc.config.json`: Lightning Web Components configuration
166
-
- `.eslintcache`: ESLint cache file
156
+
- `.eslintcache`: ESLint cache file (can be safely deleted)
167
157
168
158
## Coding Guidelines
169
159
@@ -194,25 +184,8 @@ This plugin provides three main commands:
194
184
2. **Don't ignore wireit cache issues**: If builds seem wrong, clean and rebuild
195
185
3. **Don't skip the yarn install step**: After `clean-all`, always reinstall dependencies
196
186
4. **Don't modify generated files**: Focus changes on `src/` directory
197
-
5. **Don't use global sf CLI for development**: Use `./bin/dev` for local testing
187
+
5. **Don't ignore eslint cache issues**: If linting shouldn't be failing, always try deleting the `.eslintcache`
0 commit comments