@mallardbay/cursor-rules 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/bin/setup-cursor.sh +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,10 +4,11 @@ A tool for managing Cursor IDE rules across different environment types with sha
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
This project provides a structured way to manage Cursor IDE rules for different development environments while maintaining a shared base configuration. It supports
|
|
7
|
+
This project provides a structured way to manage Cursor IDE rules for different development environments while maintaining a shared base configuration. It supports three main environment types:
|
|
8
8
|
|
|
9
9
|
- `frontend`: Basic frontend development rules
|
|
10
10
|
- `frontend-lib`: Extended rules for frontend library development, inheriting from frontend rules
|
|
11
|
+
- `backend`: Backend development rules
|
|
11
12
|
|
|
12
13
|
## Installation
|
|
13
14
|
|
|
@@ -27,6 +28,7 @@ Where `<env-type>` can be either:
|
|
|
27
28
|
|
|
28
29
|
- `frontend`
|
|
29
30
|
- `frontend-lib`
|
|
31
|
+
- `backend`
|
|
30
32
|
|
|
31
33
|
### Example
|
|
32
34
|
|
|
@@ -36,6 +38,9 @@ npx @mallardbay/cursor-rules frontend
|
|
|
36
38
|
|
|
37
39
|
# For frontend library development
|
|
38
40
|
npx @mallardbay/cursor-rules frontend-lib
|
|
41
|
+
|
|
42
|
+
# For backend development
|
|
43
|
+
npx @mallardbay/cursor-rules backend
|
|
39
44
|
```
|
|
40
45
|
|
|
41
46
|
## Project Structure
|
|
@@ -48,8 +53,10 @@ The rules are organized in the following directory structure:
|
|
|
48
53
|
│ └── rules/ # Shared base rules
|
|
49
54
|
├── frontend/
|
|
50
55
|
│ └── rules/ # Frontend-specific rules
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
├── frontend-lib/
|
|
57
|
+
│ └── rules/ # Frontend library-specific rules
|
|
58
|
+
└── backend/
|
|
59
|
+
└── rules/ # Backend-specific rules
|
|
53
60
|
```
|
|
54
61
|
|
|
55
62
|
## Rule Inheritance
|
|
@@ -72,6 +79,7 @@ The rules follow an inheritance pattern:
|
|
|
72
79
|
- `.cursor/shared/rules/`: Shared base rules
|
|
73
80
|
- `.cursor/frontend/rules/`: Frontend-specific rules
|
|
74
81
|
- `.cursor/frontend-lib/rules/`: Frontend library-specific rules
|
|
82
|
+
- `.cursor/backend/rules/`: Backend-specific rules
|
|
75
83
|
|
|
76
84
|
## License
|
|
77
85
|
|
package/bin/setup-cursor.sh
CHANGED
|
@@ -17,6 +17,7 @@ SRC_DIR="$(cd "$(dirname "$SCRIPT_PATH")/.." && pwd)"
|
|
|
17
17
|
SHARED_DIR="$SRC_DIR/.cursor/shared/rules"
|
|
18
18
|
FRONTEND_DIR="$SRC_DIR/.cursor/frontend/rules"
|
|
19
19
|
FRONTEND_LIB_DIR="$SRC_DIR/.cursor/frontend-lib/rules"
|
|
20
|
+
BACKEND_DIR="$SRC_DIR/.cursor/backend/rules"
|
|
20
21
|
|
|
21
22
|
mkdir -p .cursor/rules
|
|
22
23
|
|
|
@@ -36,6 +37,9 @@ case "$ENV_TYPE" in
|
|
|
36
37
|
frontend)
|
|
37
38
|
copy_rules "$FRONTEND_DIR"
|
|
38
39
|
;;
|
|
40
|
+
backend)
|
|
41
|
+
copy_rules "$BACKEND_DIR"
|
|
42
|
+
;;
|
|
39
43
|
frontend-lib)
|
|
40
44
|
copy_rules "$FRONTEND_DIR"
|
|
41
45
|
copy_rules "$FRONTEND_LIB_DIR"
|