@ea-lab/reactive-json-docs 1.1.1 → 1.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ea-lab/reactive-json-docs",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Complete documentation for Reactive-JSON - Components, examples and LLM-parsable guides",
5
5
  "main": "public/rjbuild/docs/index.yaml",
6
6
  "files": [
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## ⚠️ Important Rules
6
6
 
7
- **NEVER SKIP STEPS** unless explicitly requested by the user. Each step is critical for the proper functioning of the project and must be executed in the defined chronological order.
7
+ **NEVER SKIP STEPS** unless explicitly requested by the user or told by the assistant. Each step is critical for the proper functioning of the project and must be executed in the defined chronological order.
8
8
 
9
9
  When user feedback is required, wait for it and do not continue until this feedback is given.
10
10
 
@@ -16,14 +16,16 @@ Adapt commands according to the execution environment (Windows, Ubuntu, Mac...).
16
16
  2. [Collecting User Information](#collecting-user-information)
17
17
  3. [Documentation Repositories Setup](#documentation-repositories-setup)
18
18
  4. [Cursor Workspace Configuration](#cursor-workspace-configuration)
19
- 5. [Vite Project Initialization](#vite-project-initialization)
20
- 6. [Project Structure Verification](#project-structure-verification)
21
- 7. [Dependencies Installation](#dependencies-installation)
22
- 8. [Cursor Project Rules Creation](#cursor-project-rules-creation)
23
- 9. [Generated Project Cleanup](#generated-project-cleanup)
24
- 10. [Basic Configuration with ReactiveJsonRoot](#basic-configuration-with-reactivejsonroot)
25
- 11. [Routing Configuration (Optional)](#routing-configuration-optional)
26
- 12. [Final Verification](#final-verification)
19
+ 5. [Template Option (Tailwind)](#template-option-tailwind)
20
+ - 5a. [Template download and initialization (Tailwind)](#5a-template-download-and-initialization-tailwind)
21
+ 6. [Vite Project Initialization](#vite-project-initialization)
22
+ 7. [Project Structure Verification](#project-structure-verification)
23
+ 8. [Dependencies Installation](#dependencies-installation)
24
+ 9. [Cursor Project Rules Creation](#cursor-project-rules-creation)
25
+ 10. [Generated Project Cleanup](#generated-project-cleanup)
26
+ 11. [Basic Configuration with ReactiveJsonRoot](#basic-configuration-with-reactivejsonroot)
27
+ 12. [Routing Configuration (Optional)](#routing-configuration-optional)
28
+ 13. [Final Verification](#final-verification)
27
29
 
28
30
  ## Chronological Steps
29
31
 
@@ -55,14 +57,12 @@ be initialized, then ask for confirmation:
55
57
 
56
58
  **Action:** Ask the user for the following information:
57
59
 
58
- - **TypeScript**: Ask if the user wants to use TypeScript (yes/no)
59
60
  - **Documentation repositories location**: Absolute path where to clone reactive-json and reactive-json-docs repositories. When the user gives a relative path, convert it to absolute
60
61
  and ask for confirmation.
61
62
 
62
63
  **Important:** For documentation location, **NEVER** place them in the current project directory. Propose by default: `~/cursor-docs/` or let the user specify another location outside the current project.
63
64
 
64
65
  **Variables to remember:**
65
- - `<use_typescript>`: true/false based on the answer
66
66
  - `<docs_location>`: Absolute path for repositories (must be outside current directory)
67
67
 
68
68
  **Validation:** Verify that `<docs_location>` is not within the current project directory.
@@ -102,15 +102,64 @@ git clone https://github.com/Ealab-collab/reactive-json-docs.git
102
102
  > 1. Go to `File > Add Folder to Workspace`
103
103
  > 2. Add the folder `<docs_location>/reactive-json`
104
104
  > 3. Add the folder `<docs_location>/reactive-json-docs`
105
+ > 4. Save the workspace file by going to `File > Save Workspace As...` and save it preferably outside the project directory (e.g., in your home directory or in the project directory ancestor)
105
106
  >
106
107
  > **Confirm that this step is completed before continuing.**
107
108
 
108
109
  ---
109
110
 
110
- ### Vite Project Initialization
111
+ ### Template Option (Tailwind)
112
+
113
+ **Action:** Ask the user if they want to start from the official Tailwind project template prepared by the core team.
114
+
115
+ - Show the user this info:
116
+ > Do you want to start from the official Tailwind project template prepared by the core team?
117
+ >
118
+ > **Answer: Yes/No**
119
+
120
+ **If YES:**
121
+ - Go to the step 5a Template download and initialization (Tailwind)
122
+
123
+ **If NO:**
124
+ - Go to the step 6 Vite Project Initialization
125
+
126
+ ---
127
+
128
+ ### 5a. Template download and initialization (Tailwind)
129
+
130
+ **Action:** Download the Tailwind project template and initialize it.
131
+
132
+ - Commands to execute:
133
+ ```bash
134
+ curl -L -o template.zip https://github.com/Ealab-collab/reactive-json-project-template-tailwind/archive/refs/heads/main.zip
135
+ unzip template.zip
136
+ mv reactive-json-project-template-tailwind-main/* .
137
+ # Move hidden files (but not . and .. directories)
138
+ mv reactive-json-project-template-tailwind-main/.[!.]* . 2>/dev/null || true
139
+ rmdir reactive-json-project-template-tailwind-main
140
+ rm template.zip
141
+ npm install
142
+ npm run dev
143
+ ```
144
+
145
+ **Instructions:**
146
+
147
+ - If the server starts without errors and you see the expected message in your browser, the installation is successful. You can start developing your application with reactive-json.
148
+ - If the server starts with errors, tell that the template had errors, then ask the user to contact the dev team or fix their project or restart the installation procedure with an empty project.
149
+ - Then stop the installation procedure; this is an end of the installation procedure.
150
+
151
+ ---
152
+
153
+ ### 6. Vite Project Initialization
111
154
 
112
155
  **Action:** Create the project with Vite in the current directory
113
156
 
157
+ **Before executing commands, ask the user:**
158
+ - **TypeScript**: Ask if the user wants to use TypeScript (yes/no)
159
+
160
+ **Variables to remember:**
161
+ - `<use_typescript>`: true/false based on the answer
162
+
114
163
  **Commands to execute:**
115
164
 
116
165
  ```bash
@@ -126,7 +175,7 @@ npm create vite@latest . -- --template react
126
175
 
127
176
  ---
128
177
 
129
- ### Project Structure Verification
178
+ ### 7. Project Structure Verification
130
179
 
131
180
  **Action:** Verify the project structure is correct
132
181
 
@@ -157,7 +206,7 @@ ls -la
157
206
 
158
207
  ---
159
208
 
160
- ### Dependencies Installation
209
+ ### 8. Dependencies Installation
161
210
 
162
211
  **Action:** Install required packages
163
212
 
@@ -170,7 +219,7 @@ npm install @ea-lab/reactive-json axios clsx dnd-kit-sortable-tree html-react-pa
170
219
 
171
220
  ---
172
221
 
173
- ### Cursor Project Rules Creation
222
+ ### 9. Cursor Project Rules Creation
174
223
 
175
224
  **Action:** Copy Cursor rules from documentation repositories
176
225
 
@@ -200,7 +249,7 @@ These rules contain all the necessary directives to work effectively with reacti
200
249
 
201
250
  ---
202
251
 
203
- ### Generated Project Cleanup
252
+ ### 10. Generated Project Cleanup
204
253
 
205
254
  **Action:** Remove/clean files generated by Vite
206
255
 
@@ -229,7 +278,7 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
229
278
 
230
279
  ---
231
280
 
232
- ### Basic Configuration with ReactiveJsonRoot
281
+ ### 11. Basic Configuration with ReactiveJsonRoot
233
282
 
234
283
  **Action:** Configure the base component with an external YAML file
235
284
 
@@ -257,7 +306,7 @@ renderView:
257
306
 
258
307
  ---
259
308
 
260
- ### Routing Configuration (Optional)
309
+ ### 12. Routing Configuration (Optional)
261
310
 
262
311
  **Action:** Ask the user if they want to add routing for application organization
263
312
 
@@ -378,11 +427,11 @@ renderView:
378
427
  content: "Your routing is now configured with a navigation bar. You can add more pages in src/pages/ and routes in the App component."
379
428
  ```
380
429
 
381
- **If NO, keep the simple configuration from step 10.**
430
+ **If NO, keep the simple configuration from step 11.**
382
431
 
383
432
  ---
384
433
 
385
- ### Final Verification
434
+ ### 13. Final Verification
386
435
 
387
436
  **Action:** Launch development server
388
437
 
@@ -24,11 +24,12 @@ renderView:
24
24
 
25
25
  1. [Project Setup](#project-setup)
26
26
  2. [Documentation Setup](#documentation-setup)
27
- 3. [Vite Project Creation](#vite-project-creation)
28
- 4. [Dependencies Installation](#dependencies-installation)
29
- 5. [Configuration](#configuration)
30
- 6. [Optional Routing](#optional-routing)
31
- 7. [Verification](#verification)
27
+ 3. [Template Option (Tailwind)](#template-option-tailwind)
28
+ 4. [Vite Project Creation](#vite-project-creation)
29
+ 5. [Dependencies Installation](#dependencies-installation)
30
+ 6. [Configuration](#configuration)
31
+ 7. [Optional Routing](#optional-routing)
32
+ 8. [Verification](#verification)
32
33
 
33
34
  ---
34
35
 
@@ -57,15 +58,6 @@ renderView:
57
58
 
58
59
  > **⚠️ Important**: This directory will become your project root. All project files will be created here.
59
60
 
60
- ### Step 2: Choose Your Setup
61
-
62
- Decide on your project configuration:
63
-
64
- - **TypeScript**: Do you want to use TypeScript? (Recommended for better development experience)
65
- - **Documentation location**: Choose where to store documentation repositories (outside your project directory)
66
-
67
- **Recommended documentation location**: `~/cursor-docs/`
68
-
69
61
  ---
70
62
 
71
63
  - type: h2
@@ -75,7 +67,7 @@ renderView:
75
67
 
76
68
  - type: Markdown
77
69
  content: |
78
- ### Step 3: Clone Documentation Repositories
70
+ ### Step 2: Clone Documentation Repositories
79
71
 
80
72
  Clone the required documentation repositories for Cursor IDE integration:
81
73
 
@@ -94,7 +86,7 @@ renderView:
94
86
  content: |
95
87
  > **ℹ️ Note**: These repositories are for Cursor IDE documentation indexing only. They won't be included in your final project.
96
88
 
97
- ### Step 4: Add to Cursor Workspace
89
+ ### Step 3: Add to Cursor Workspace
98
90
 
99
91
  **Manual Action Required**: Add the cloned folders to your Cursor workspace:
100
92
 
@@ -102,6 +94,7 @@ renderView:
102
94
  2. Go to `File > Add Folder to Workspace`
103
95
  3. Add `~/cursor-docs/reactive-json`
104
96
  4. Add `~/cursor-docs/reactive-json-docs`
97
+ 5. Save the workspace file by going to `File > Save Workspace As...` and save it preferably outside the project directory (e.g., in your home directory or in the project directory ancestor)
105
98
 
106
99
  - type: img
107
100
  attributes:
@@ -118,6 +111,67 @@ renderView:
118
111
 
119
112
  ---
120
113
 
114
+ - type: h2
115
+ content: "Template Option (Tailwind)"
116
+ attributes:
117
+ id: "template-option-tailwind"
118
+
119
+ - type: Markdown
120
+ content: |
121
+ ### Step 4: Choose Template Option
122
+
123
+ You can start your project in two ways:
124
+
125
+ **Option A: Use the official Tailwind template** (Recommended for beginners)
126
+ - A pre-configured project template with Tailwind CSS setup
127
+ - Includes all necessary configurations
128
+ - Faster setup process
129
+ - If you choose this option, follow [**Step 4a**](#step-4a-download-and-initialize-tailwind-template-optional) below
130
+
131
+ **Option B: Start from scratch with Vite**
132
+ - Manual Vite project creation
133
+ - More control over initial configuration
134
+ - If you choose this option, skip to [**Step 5: Create Vite Project from Scratch**](#vite-project-creation)
135
+
136
+ > **💡 Pro Tip**: If you're new to Reactive-JSON, we recommend starting with the Tailwind template.
137
+
138
+ - type: h3
139
+ content: "Step 4a: Download and Initialize Tailwind Template (Optional)"
140
+ attributes:
141
+ id: "step-4a-download-and-initialize-tailwind-template-optional"
142
+
143
+ - type: Markdown
144
+ content: |
145
+ If you chose to use the Tailwind template, download and initialize it now:
146
+
147
+ - type: SyntaxHighlighter
148
+ language: bash
149
+ content: |
150
+ curl -L -o template.zip https://github.com/Ealab-collab/reactive-json-project-template-tailwind/archive/refs/heads/main.zip
151
+ unzip template.zip
152
+ mv reactive-json-project-template-tailwind-main/* .
153
+ # Move hidden files (but not . and .. directories)
154
+ mv reactive-json-project-template-tailwind-main/.[!.]* . 2>/dev/null || true
155
+ rmdir reactive-json-project-template-tailwind-main
156
+ rm template.zip
157
+ npm install
158
+ npm run dev
159
+
160
+ - type: Markdown
161
+ content: |
162
+ **Expected result:**
163
+ - The development server should start without errors
164
+ - You should see a success message in your browser
165
+ - Your Reactive-JSON application is ready!
166
+
167
+ **If you encounter errors:**
168
+ - The template may have issues - contact the development team for support
169
+ - Or restart the installation with an empty project directory
170
+
171
+ > **✅ Success**: If everything works, your project is ready to use! You can start developing your Reactive-JSON application right away.
172
+
173
+ ---
174
+
121
175
  - type: h2
122
176
  content: "Vite Project Creation"
123
177
  attributes:
@@ -125,9 +179,9 @@ renderView:
125
179
 
126
180
  - type: Markdown
127
181
  content: |
128
- ### Step 5: Initialize Vite Project
182
+ ### Step 5: Create Vite Project from Scratch
129
183
 
130
- Create a new Vite project with React:
184
+ If you're not using the template, create a new Vite project:
131
185
 
132
186
  - type: SyntaxHighlighter
133
187
  language: bash
@@ -480,7 +534,7 @@ templates:
480
534
 
481
535
  ## ⚠️ Important Rules
482
536
 
483
- **NEVER SKIP STEPS** unless explicitly requested by the user. Each step is critical for the proper functioning of the project and must be executed in the defined chronological order.
537
+ **NEVER SKIP STEPS** unless explicitly requested by the user or told by the assistant. Each step is critical for the proper functioning of the project and must be executed in the defined chronological order.
484
538
 
485
539
  When user feedback is required, wait for it and do not continue until this feedback is given.
486
540
 
@@ -492,14 +546,16 @@ templates:
492
546
  2. [Collecting User Information](#2-collecting-user-information)
493
547
  3. [Documentation Repositories Setup](#3-documentation-repositories-setup)
494
548
  4. [Cursor Workspace Configuration](#4-cursor-workspace-configuration)
495
- 5. [Vite Project Initialization](#5-vite-project-initialization)
496
- 6. [Project Structure Verification](#6-project-structure-verification)
497
- 7. [Dependencies Installation](#7-dependencies-installation)
498
- 8. [Cursor Project Rules Creation](#8-cursor-project-rules-creation)
499
- 9. [Generated Project Cleanup](#9-generated-project-cleanup)
500
- 10. [Basic Configuration with ReactiveJsonRoot](#10-basic-configuration-with-reactivejsonroot)
501
- 11. [Routing Configuration (Optional)](#11-routing-configuration-optional)
502
- 12. [Final Verification](#12-final-verification)
549
+ 5. [Template Option (Tailwind)](#5-template-option-tailwind)
550
+ - 5a. [Template download and initialization (Tailwind)](#5a-template-download-and-initialization-tailwind)
551
+ 6. [Vite Project Initialization](#6-vite-project-initialization)
552
+ 7. [Project Structure Verification](#7-project-structure-verification)
553
+ 8. [Dependencies Installation](#8-dependencies-installation)
554
+ 9. [Cursor Project Rules Creation](#9-cursor-project-rules-creation)
555
+ 10. [Generated Project Cleanup](#10-generated-project-cleanup)
556
+ 11. [Basic Configuration with ReactiveJsonRoot](#11-basic-configuration-with-reactivejsonroot)
557
+ 12. [Routing Configuration (Optional)](#12-routing-configuration-optional)
558
+ 13. [Final Verification](#13-final-verification)
503
559
 
504
560
  ## Chronological Steps
505
561
 
@@ -531,14 +587,12 @@ templates:
531
587
 
532
588
  **Action:** Ask the user for the following information:
533
589
 
534
- - **TypeScript**: Ask if the user wants to use TypeScript (yes/no)
535
590
  - **Documentation repositories location**: Absolute path where to clone reactive-json and reactive-json-docs repositories. When the user gives a relative path, convert it to absolute
536
591
  and ask for confirmation.
537
592
 
538
593
  **Important:** For documentation location, **NEVER** place them in the current project directory. Propose by default: `~/cursor-docs/` or let the user specify another location outside the current project.
539
594
 
540
595
  **Variables to remember:**
541
- - `<use_typescript>`: true/false based on the answer
542
596
  - `<docs_location>`: Absolute path for repositories (must be outside current directory)
543
597
 
544
598
  **Validation:** Verify that `<docs_location>` is not within the current project directory.
@@ -578,15 +632,64 @@ templates:
578
632
  > 1. Go to `File > Add Folder to Workspace`
579
633
  > 2. Add the folder `<docs_location>/reactive-json`
580
634
  > 3. Add the folder `<docs_location>/reactive-json-docs`
635
+ > 4. Save the workspace file by going to `File > Save Workspace As...` and save it preferably outside the project directory (e.g., in your home directory or in the project directory ancestor)
581
636
  >
582
637
  > **Confirm that this step is completed before continuing.**
583
638
 
584
639
  ---
585
640
 
586
- ### 5. Vite Project Initialization
641
+ ### 5. Template Option (Tailwind)
642
+
643
+ **Action:** Ask the user if they want to start from the official Tailwind project template prepared by the core team.
644
+
645
+ - Show the user this info:
646
+ > Do you want to start from the official Tailwind project template prepared by the core team?
647
+ >
648
+ > **Answer: Yes/No**
649
+
650
+ **If YES:**
651
+ - Go to the step 5a Template download and initialization (Tailwind)
652
+
653
+ **If NO:**
654
+ - Go to the step 6 Vite Project Initialization
655
+
656
+ ---
657
+
658
+ ### 5a. Template download and initialization (Tailwind)
659
+
660
+ **Action:** Download the Tailwind project template and initialize it.
661
+
662
+ - Commands to execute:
663
+ ```bash
664
+ curl -L -o template.zip https://github.com/Ealab-collab/reactive-json-project-template-tailwind/archive/refs/heads/main.zip
665
+ unzip template.zip
666
+ mv reactive-json-project-template-tailwind-main/* .
667
+ # Move hidden files (but not . and .. directories)
668
+ mv reactive-json-project-template-tailwind-main/.[!.]* . 2>/dev/null || true
669
+ rmdir reactive-json-project-template-tailwind-main
670
+ rm template.zip
671
+ npm install
672
+ npm run dev
673
+ ```
674
+
675
+ **Instructions:**
676
+
677
+ - If the server starts without errors and you see the expected message in your browser, the installation is successful. You can start developing your application with reactive-json.
678
+ - If the server starts with errors, tell that the template had errors, then ask the user to contact the dev team or fix their project or restart the installation procedure with an empty project.
679
+ - Then stop the installation procedure; this is an end of the installation procedure.
680
+
681
+ ---
682
+
683
+ ### 6. Vite Project Initialization
587
684
 
588
685
  **Action:** Create the project with Vite in the current directory
589
686
 
687
+ **Before executing commands, ask the user:**
688
+ - **TypeScript**: Ask if the user wants to use TypeScript (yes/no)
689
+
690
+ **Variables to remember:**
691
+ - `<use_typescript>`: true/false based on the answer
692
+
590
693
  **Commands to execute:**
591
694
 
592
695
  ```bash
@@ -602,7 +705,7 @@ templates:
602
705
 
603
706
  ---
604
707
 
605
- ### 6. Project Structure Verification
708
+ ### 7. Project Structure Verification
606
709
 
607
710
  **Action:** Verify the project structure is correct
608
711
 
@@ -633,7 +736,7 @@ templates:
633
736
 
634
737
  ---
635
738
 
636
- ### 7. Dependencies Installation
739
+ ### 8. Dependencies Installation
637
740
 
638
741
  **Action:** Install required packages
639
742
 
@@ -646,7 +749,7 @@ templates:
646
749
 
647
750
  ---
648
751
 
649
- ### 8. Cursor Project Rules Creation
752
+ ### 9. Cursor Project Rules Creation
650
753
 
651
754
  **Action:** Copy Cursor rules from documentation repositories
652
755
 
@@ -676,7 +779,7 @@ templates:
676
779
 
677
780
  ---
678
781
 
679
- ### 9. Generated Project Cleanup
782
+ ### 10. Generated Project Cleanup
680
783
 
681
784
  **Action:** Remove/clean files generated by Vite
682
785
 
@@ -705,7 +808,7 @@ templates:
705
808
 
706
809
  ---
707
810
 
708
- ### 10. Basic Configuration with ReactiveJsonRoot
811
+ ### 11. Basic Configuration with ReactiveJsonRoot
709
812
 
710
813
  **Action:** Configure the base component with an external YAML file
711
814
 
@@ -733,7 +836,7 @@ templates:
733
836
 
734
837
  ---
735
838
 
736
- ### 11. Routing Configuration (Optional)
839
+ ### 12. Routing Configuration (Optional)
737
840
 
738
841
  **Action:** Ask the user if they want to add routing for application organization
739
842
 
@@ -854,11 +957,11 @@ templates:
854
957
  content: "Your routing is now configured with a navigation bar. You can add more pages in src/pages/ and routes in the App component."
855
958
  ```
856
959
 
857
- **If NO, keep the simple configuration from step 10.**
960
+ **If NO, keep the simple configuration from step 11.**
858
961
 
859
962
  ---
860
963
 
861
- ### 12. Final Verification
964
+ ### 13. Final Verification
862
965
 
863
966
  **Action:** Launch development server
864
967