prodex 1.0.3 → 1.0.5
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 +84 -74
- package/dist/README.md +84 -74
- package/dist/package.json +1 -1
- package/dist/src/cli/init.js +4 -10
- package/dist/src/constants/config-loader.js +1 -1
- package/dist/src/constants/config.js +1 -1
- package/dist/src/core/combine.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
# 🧩 Prodex — Unified Project Indexer & Dependency Extractor
|
|
2
2
|
|
|
3
|
-
**Prodex** *(short for “Project Index”)*
|
|
3
|
+
> **Prodex** *(short for “Project Index”)* — a cross-language dependency combiner for modern full-stack applications.
|
|
4
|
+
> Traverses **Laravel + React + TypeScript** projects to generate a single, organized view of your project’s true dependency scope.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 🧠 Recent Fixes & Updates — v1.0.4
|
|
9
|
+
|
|
10
|
+
- 🪟 **Windows path resolution fixed** — now uses proper `file://` URLs for full ESM compatibility.
|
|
11
|
+
- 🧾 **Improved output naming** — automatic, context-aware filenames (e.g. `prodex-[entries]-combined.txt`).
|
|
12
|
+
- ⚙️ **“Yes to all” confirmation added** — skip repetitive prompts during CLI runs.
|
|
6
13
|
|
|
7
14
|
---
|
|
8
15
|
|
|
9
|
-
## 🚀
|
|
16
|
+
## 🚀 Features
|
|
10
17
|
|
|
11
18
|
| Feature | Description |
|
|
12
19
|
|----------|-------------|
|
|
13
|
-
| ⚙️ **Cross-language resolver** |
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
+
| ⚙️ **Cross-language resolver** | Parses JS/TS (`import`, `export`) and PHP (`use`, `require`, `include`) dependency trees. |
|
|
21
|
+
| 🧭 **Alias detection** | Reads `tsconfig.json` and `vite.config.*` for alias paths (`@/components/...`). |
|
|
22
|
+
| 🧩 **Laravel-aware** | Maps PSR-4 namespaces and detects providers under `app/Providers`. |
|
|
23
|
+
| 🔄 **Recursive chain following** | Resolves dependency graphs up to a configurable depth and file limit. |
|
|
24
|
+
| 🪶 **Clean unified output** | Merges all resolved files into a single `.txt` file with region markers for readability. |
|
|
25
|
+
| 🧠 **Static & safe** | Fully static parsing — no runtime execution or file modification. |
|
|
26
|
+
| 💬 **Interactive CLI** | Select files, confirm settings, or use “Yes to all” for streamlined automation. |
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -36,86 +43,104 @@ npm install --save-dev prodex
|
|
|
36
43
|
|
|
37
44
|
## 🧰 Usage
|
|
38
45
|
|
|
39
|
-
Run
|
|
46
|
+
Run from your project root:
|
|
40
47
|
|
|
41
48
|
```bash
|
|
42
|
-
prodex
|
|
49
|
+
prodex
|
|
43
50
|
```
|
|
44
51
|
|
|
45
|
-
|
|
52
|
+
or:
|
|
46
53
|
|
|
47
54
|
```bash
|
|
48
|
-
npx prodex
|
|
55
|
+
npx prodex
|
|
49
56
|
```
|
|
50
57
|
|
|
51
58
|
You’ll be guided through an interactive CLI:
|
|
52
59
|
|
|
53
60
|
```
|
|
54
|
-
🧩 Prodex — Project
|
|
61
|
+
🧩 Prodex — Project Indexer
|
|
55
62
|
🧩 Active Config:
|
|
56
|
-
• Output: ./
|
|
63
|
+
• Output Directory: ./prodex/
|
|
57
64
|
• Scan Depth: 2
|
|
58
65
|
• Base Dirs: app, routes, resources/js
|
|
59
66
|
```
|
|
60
67
|
|
|
61
|
-
After selecting
|
|
68
|
+
After selecting entries:
|
|
62
69
|
|
|
63
70
|
```
|
|
64
|
-
✅ combined.txt written (12 file(s)).
|
|
71
|
+
✅ prodex-[entries]-combined.txt written (12 file(s)).
|
|
65
72
|
```
|
|
66
73
|
|
|
67
|
-
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 🗂 Output Example
|
|
68
77
|
|
|
69
78
|
```
|
|
70
|
-
|
|
71
|
-
|
|
79
|
+
## ==== path: app/Services/Shots/ComputeService.php ====
|
|
80
|
+
## #region app/Services/Shots/ComputeService.php
|
|
72
81
|
<?php
|
|
73
82
|
// your code here...
|
|
74
|
-
|
|
83
|
+
## #endregion
|
|
75
84
|
```
|
|
76
85
|
|
|
77
86
|
---
|
|
78
87
|
|
|
79
88
|
## ⚙️ Configuration
|
|
80
89
|
|
|
81
|
-
|
|
90
|
+
Optional `.prodex.json` (in project root):
|
|
82
91
|
|
|
83
|
-
```
|
|
92
|
+
```json
|
|
84
93
|
{
|
|
85
|
-
"
|
|
86
|
-
"
|
|
94
|
+
"$schema": "https://raw.githubusercontent.com/emxhive/prodex/main/schema/prodex.schema.json",
|
|
95
|
+
"output": "prodex",
|
|
96
|
+
"scanDepth": 2,
|
|
97
|
+
"limit": 200,
|
|
87
98
|
"baseDirs": ["app", "routes", "resources/js"],
|
|
88
|
-
"
|
|
89
|
-
|
|
99
|
+
"aliasOverrides": {
|
|
100
|
+
"@hooks": "resources/js/hooks",
|
|
101
|
+
"@data": "resources/js/data"
|
|
102
|
+
},
|
|
103
|
+
"entryExcludes": [
|
|
104
|
+
"resources/js/components/ui/",
|
|
105
|
+
"app/DTOs/"
|
|
106
|
+
],
|
|
107
|
+
"importExcludes": [
|
|
108
|
+
"node_modules",
|
|
109
|
+
"@shadcn/"
|
|
110
|
+
]
|
|
90
111
|
}
|
|
91
112
|
```
|
|
92
113
|
|
|
93
|
-
Prodex automatically merges this with sane defaults.
|
|
94
|
-
|
|
95
114
|
---
|
|
96
115
|
|
|
97
|
-
##
|
|
116
|
+
## ⚡ CLI Flags (UNTESTED)
|
|
98
117
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
118
|
+
| Flag | Description |
|
|
119
|
+
|------|-------------|
|
|
120
|
+
| `--limit <n>` | Override max dependency count |
|
|
121
|
+
| `--output <dir>` | Custom output directory |
|
|
122
|
+
| `--depth <n>` | Set scan depth |
|
|
123
|
+
| `--no-chain` | Disable dependency chain following |
|
|
124
|
+
| `--debug` | Enable verbose logging |
|
|
102
125
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
126
|
+
Example:
|
|
127
|
+
```bash
|
|
128
|
+
prodex --depth 3 --output ./dump --limit 500
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
106
132
|
|
|
107
|
-
|
|
108
|
-
- Parses `use`, grouped `use {}`, `require`, and `include`.
|
|
109
|
-
- Expands PSR-4 namespaces via `composer.json`.
|
|
110
|
-
- Loads bindings from all `app/Providers/*.php` to link interfaces to implementations.
|
|
133
|
+
## 🧩 Workflow Overview
|
|
111
134
|
|
|
112
|
-
**
|
|
113
|
-
|
|
114
|
-
-
|
|
135
|
+
1. **Config Loader** — merges `.prodex.json` with defaults and alias maps.
|
|
136
|
+
2. **Resolvers** —
|
|
137
|
+
- JS/TS: follows imports, re-exports, dynamic imports.
|
|
138
|
+
- PHP: expands `use`, grouped imports, PSR-4 mappings.
|
|
139
|
+
3. **Combiner** — normalizes indentation, strips comments, merges all code into one readable combined file.
|
|
115
140
|
|
|
116
141
|
---
|
|
117
142
|
|
|
118
|
-
## 🧱 Example: Laravel + React
|
|
143
|
+
## 🧱 Example: Laravel + React
|
|
119
144
|
|
|
120
145
|
```bash
|
|
121
146
|
prodex
|
|
@@ -123,11 +148,10 @@ prodex
|
|
|
123
148
|
|
|
124
149
|
```
|
|
125
150
|
🧩 Following dependency chain...
|
|
126
|
-
✅ combined.txt written (24 file(s)).
|
|
151
|
+
✅ prodex-app-routes-combined.txt written (24 file(s)).
|
|
127
152
|
```
|
|
128
153
|
|
|
129
154
|
Included files:
|
|
130
|
-
|
|
131
155
|
```
|
|
132
156
|
resources/js/pages/accounts.tsx
|
|
133
157
|
app/Http/Controllers/Shots/AccountsController.php
|
|
@@ -141,41 +165,27 @@ app/Support/Shots/CacheKeys.php
|
|
|
141
165
|
|
|
142
166
|
## 🧠 Ideal Use Cases
|
|
143
167
|
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
- 📄
|
|
168
|
+
- 📦 Generate single-file **project snapshots**
|
|
169
|
+
- 🤖 Provide structured context for **AI assistants**
|
|
170
|
+
- 🧩 Perform **dependency audits** or code reviews
|
|
171
|
+
- 📄 Simplify documentation and onboarding
|
|
148
172
|
|
|
149
173
|
---
|
|
150
174
|
|
|
151
|
-
##
|
|
152
|
-
|
|
153
|
-
| Flag | Description |
|
|
154
|
-
|------|-------------|
|
|
155
|
-
| `--depth <n>` | Override scan depth |
|
|
156
|
-
| `--output <path>` | Custom output path |
|
|
157
|
-
| `--no-chain` | Disable dependency recursion |
|
|
158
|
-
| `--debug` | Enable verbose logging |
|
|
159
|
-
|
|
160
|
-
Example:
|
|
175
|
+
## 🔮 Upcoming Features
|
|
161
176
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
177
|
+
- 📝 **Markdown export** (`.md`) with automatic code fences
|
|
178
|
+
- 📦 **Configurable output formats** (txt / md)
|
|
179
|
+
- ⚡ **Alias auto-discovery for Laravel Mix and Next.js**
|
|
165
180
|
|
|
166
181
|
---
|
|
167
182
|
|
|
183
|
+
## 🧾 License
|
|
168
184
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
it’s an **indexer** that unifies multi-language project contexts for smarter automation, analysis, and AI-assisted workflows.
|
|
173
|
-
|
|
174
|
-
Built with care for mixed stacks like **Laravel + Inertia + React**,
|
|
175
|
-
and designed to be both *safe* and *predictable.*
|
|
185
|
+
**MIT © 2025 [emxhive](https://github.com/emxhive)**
|
|
186
|
+
Issues and contributions welcome:
|
|
187
|
+
👉 [github.com/emxhive/prodex/issues](https://github.com/emxhive/prodex/issues)
|
|
176
188
|
|
|
177
189
|
---
|
|
178
190
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
MIT © 2025 emxhive
|
|
191
|
+
**Prodex** — *because every project deserves a clear map, not a maze.*
|
package/dist/README.md
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
# 🧩 Prodex — Unified Project Indexer & Dependency Extractor
|
|
2
2
|
|
|
3
|
-
**Prodex** *(short for “Project Index”)*
|
|
3
|
+
> **Prodex** *(short for “Project Index”)* — a cross-language dependency combiner for modern full-stack applications.
|
|
4
|
+
> Traverses **Laravel + React + TypeScript** projects to generate a single, organized view of your project’s true dependency scope.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 🧠 Recent Fixes & Updates — v1.0.4
|
|
9
|
+
|
|
10
|
+
- 🪟 **Windows path resolution fixed** — now uses proper `file://` URLs for full ESM compatibility.
|
|
11
|
+
- 🧾 **Improved output naming** — automatic, context-aware filenames (e.g. `prodex-[entries]-combined.txt`).
|
|
12
|
+
- ⚙️ **“Yes to all” confirmation added** — skip repetitive prompts during CLI runs.
|
|
6
13
|
|
|
7
14
|
---
|
|
8
15
|
|
|
9
|
-
## 🚀
|
|
16
|
+
## 🚀 Features
|
|
10
17
|
|
|
11
18
|
| Feature | Description |
|
|
12
19
|
|----------|-------------|
|
|
13
|
-
| ⚙️ **Cross-language resolver** |
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
+
| ⚙️ **Cross-language resolver** | Parses JS/TS (`import`, `export`) and PHP (`use`, `require`, `include`) dependency trees. |
|
|
21
|
+
| 🧭 **Alias detection** | Reads `tsconfig.json` and `vite.config.*` for alias paths (`@/components/...`). |
|
|
22
|
+
| 🧩 **Laravel-aware** | Maps PSR-4 namespaces and detects providers under `app/Providers`. |
|
|
23
|
+
| 🔄 **Recursive chain following** | Resolves dependency graphs up to a configurable depth and file limit. |
|
|
24
|
+
| 🪶 **Clean unified output** | Merges all resolved files into a single `.txt` file with region markers for readability. |
|
|
25
|
+
| 🧠 **Static & safe** | Fully static parsing — no runtime execution or file modification. |
|
|
26
|
+
| 💬 **Interactive CLI** | Select files, confirm settings, or use “Yes to all” for streamlined automation. |
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -36,86 +43,104 @@ npm install --save-dev prodex
|
|
|
36
43
|
|
|
37
44
|
## 🧰 Usage
|
|
38
45
|
|
|
39
|
-
Run
|
|
46
|
+
Run from your project root:
|
|
40
47
|
|
|
41
48
|
```bash
|
|
42
|
-
prodex
|
|
49
|
+
prodex
|
|
43
50
|
```
|
|
44
51
|
|
|
45
|
-
|
|
52
|
+
or:
|
|
46
53
|
|
|
47
54
|
```bash
|
|
48
|
-
npx prodex
|
|
55
|
+
npx prodex
|
|
49
56
|
```
|
|
50
57
|
|
|
51
58
|
You’ll be guided through an interactive CLI:
|
|
52
59
|
|
|
53
60
|
```
|
|
54
|
-
🧩 Prodex — Project
|
|
61
|
+
🧩 Prodex — Project Indexer
|
|
55
62
|
🧩 Active Config:
|
|
56
|
-
• Output: ./
|
|
63
|
+
• Output Directory: ./prodex/
|
|
57
64
|
• Scan Depth: 2
|
|
58
65
|
• Base Dirs: app, routes, resources/js
|
|
59
66
|
```
|
|
60
67
|
|
|
61
|
-
After selecting
|
|
68
|
+
After selecting entries:
|
|
62
69
|
|
|
63
70
|
```
|
|
64
|
-
✅ combined.txt written (12 file(s)).
|
|
71
|
+
✅ prodex-[entries]-combined.txt written (12 file(s)).
|
|
65
72
|
```
|
|
66
73
|
|
|
67
|
-
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 🗂 Output Example
|
|
68
77
|
|
|
69
78
|
```
|
|
70
|
-
|
|
71
|
-
|
|
79
|
+
## ==== path: app/Services/Shots/ComputeService.php ====
|
|
80
|
+
## #region app/Services/Shots/ComputeService.php
|
|
72
81
|
<?php
|
|
73
82
|
// your code here...
|
|
74
|
-
|
|
83
|
+
## #endregion
|
|
75
84
|
```
|
|
76
85
|
|
|
77
86
|
---
|
|
78
87
|
|
|
79
88
|
## ⚙️ Configuration
|
|
80
89
|
|
|
81
|
-
|
|
90
|
+
Optional `.prodex.json` (in project root):
|
|
82
91
|
|
|
83
|
-
```
|
|
92
|
+
```json
|
|
84
93
|
{
|
|
85
|
-
"
|
|
86
|
-
"
|
|
94
|
+
"$schema": "https://raw.githubusercontent.com/emxhive/prodex/main/schema/prodex.schema.json",
|
|
95
|
+
"output": "prodex",
|
|
96
|
+
"scanDepth": 2,
|
|
97
|
+
"limit": 200,
|
|
87
98
|
"baseDirs": ["app", "routes", "resources/js"],
|
|
88
|
-
"
|
|
89
|
-
|
|
99
|
+
"aliasOverrides": {
|
|
100
|
+
"@hooks": "resources/js/hooks",
|
|
101
|
+
"@data": "resources/js/data"
|
|
102
|
+
},
|
|
103
|
+
"entryExcludes": [
|
|
104
|
+
"resources/js/components/ui/",
|
|
105
|
+
"app/DTOs/"
|
|
106
|
+
],
|
|
107
|
+
"importExcludes": [
|
|
108
|
+
"node_modules",
|
|
109
|
+
"@shadcn/"
|
|
110
|
+
]
|
|
90
111
|
}
|
|
91
112
|
```
|
|
92
113
|
|
|
93
|
-
Prodex automatically merges this with sane defaults.
|
|
94
|
-
|
|
95
114
|
---
|
|
96
115
|
|
|
97
|
-
##
|
|
116
|
+
## ⚡ CLI Flags (UNTESTED)
|
|
98
117
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
118
|
+
| Flag | Description |
|
|
119
|
+
|------|-------------|
|
|
120
|
+
| `--limit <n>` | Override max dependency count |
|
|
121
|
+
| `--output <dir>` | Custom output directory |
|
|
122
|
+
| `--depth <n>` | Set scan depth |
|
|
123
|
+
| `--no-chain` | Disable dependency chain following |
|
|
124
|
+
| `--debug` | Enable verbose logging |
|
|
102
125
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
126
|
+
Example:
|
|
127
|
+
```bash
|
|
128
|
+
prodex --depth 3 --output ./dump --limit 500
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
106
132
|
|
|
107
|
-
|
|
108
|
-
- Parses `use`, grouped `use {}`, `require`, and `include`.
|
|
109
|
-
- Expands PSR-4 namespaces via `composer.json`.
|
|
110
|
-
- Loads bindings from all `app/Providers/*.php` to link interfaces to implementations.
|
|
133
|
+
## 🧩 Workflow Overview
|
|
111
134
|
|
|
112
|
-
**
|
|
113
|
-
|
|
114
|
-
-
|
|
135
|
+
1. **Config Loader** — merges `.prodex.json` with defaults and alias maps.
|
|
136
|
+
2. **Resolvers** —
|
|
137
|
+
- JS/TS: follows imports, re-exports, dynamic imports.
|
|
138
|
+
- PHP: expands `use`, grouped imports, PSR-4 mappings.
|
|
139
|
+
3. **Combiner** — normalizes indentation, strips comments, merges all code into one readable combined file.
|
|
115
140
|
|
|
116
141
|
---
|
|
117
142
|
|
|
118
|
-
## 🧱 Example: Laravel + React
|
|
143
|
+
## 🧱 Example: Laravel + React
|
|
119
144
|
|
|
120
145
|
```bash
|
|
121
146
|
prodex
|
|
@@ -123,11 +148,10 @@ prodex
|
|
|
123
148
|
|
|
124
149
|
```
|
|
125
150
|
🧩 Following dependency chain...
|
|
126
|
-
✅ combined.txt written (24 file(s)).
|
|
151
|
+
✅ prodex-app-routes-combined.txt written (24 file(s)).
|
|
127
152
|
```
|
|
128
153
|
|
|
129
154
|
Included files:
|
|
130
|
-
|
|
131
155
|
```
|
|
132
156
|
resources/js/pages/accounts.tsx
|
|
133
157
|
app/Http/Controllers/Shots/AccountsController.php
|
|
@@ -141,41 +165,27 @@ app/Support/Shots/CacheKeys.php
|
|
|
141
165
|
|
|
142
166
|
## 🧠 Ideal Use Cases
|
|
143
167
|
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
- 📄
|
|
168
|
+
- 📦 Generate single-file **project snapshots**
|
|
169
|
+
- 🤖 Provide structured context for **AI assistants**
|
|
170
|
+
- 🧩 Perform **dependency audits** or code reviews
|
|
171
|
+
- 📄 Simplify documentation and onboarding
|
|
148
172
|
|
|
149
173
|
---
|
|
150
174
|
|
|
151
|
-
##
|
|
152
|
-
|
|
153
|
-
| Flag | Description |
|
|
154
|
-
|------|-------------|
|
|
155
|
-
| `--depth <n>` | Override scan depth |
|
|
156
|
-
| `--output <path>` | Custom output path |
|
|
157
|
-
| `--no-chain` | Disable dependency recursion |
|
|
158
|
-
| `--debug` | Enable verbose logging |
|
|
159
|
-
|
|
160
|
-
Example:
|
|
175
|
+
## 🔮 Upcoming Features
|
|
161
176
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
177
|
+
- 📝 **Markdown export** (`.md`) with automatic code fences
|
|
178
|
+
- 📦 **Configurable output formats** (txt / md)
|
|
179
|
+
- ⚡ **Alias auto-discovery for Laravel Mix and Next.js**
|
|
165
180
|
|
|
166
181
|
---
|
|
167
182
|
|
|
183
|
+
## 🧾 License
|
|
168
184
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
it’s an **indexer** that unifies multi-language project contexts for smarter automation, analysis, and AI-assisted workflows.
|
|
173
|
-
|
|
174
|
-
Built with care for mixed stacks like **Laravel + Inertia + React**,
|
|
175
|
-
and designed to be both *safe* and *predictable.*
|
|
185
|
+
**MIT © 2025 [emxhive](https://github.com/emxhive)**
|
|
186
|
+
Issues and contributions welcome:
|
|
187
|
+
👉 [github.com/emxhive/prodex/issues](https://github.com/emxhive/prodex/issues)
|
|
176
188
|
|
|
177
189
|
---
|
|
178
190
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
MIT © 2025 emxhive
|
|
191
|
+
**Prodex** — *because every project deserves a clear map, not a maze.*
|
package/dist/package.json
CHANGED
package/dist/src/cli/init.js
CHANGED
|
@@ -17,17 +17,10 @@ export async function initProdex() {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
const jsonc = `{
|
|
20
|
-
// -------------------------------------------------------------
|
|
21
|
-
// 🧩 Prodex Configuration
|
|
22
|
-
// -------------------------------------------------------------
|
|
23
|
-
// Customize how Prodex flattens your project.
|
|
24
|
-
// For docs, visit: https://github.com/emxhive/prodex#configuration
|
|
25
|
-
// -------------------------------------------------------------
|
|
26
|
-
|
|
27
20
|
"$schema": "https://raw.githubusercontent.com/emxhive/prodex/main/schema/prodex.schema.json",
|
|
28
|
-
|
|
29
|
-
"output": "combined.txt",
|
|
21
|
+
"output": "prodex",
|
|
30
22
|
"scanDepth": 2,
|
|
23
|
+
"limit": 200,
|
|
31
24
|
"baseDirs": ["app", "routes", "resources/js"],
|
|
32
25
|
"aliasOverrides": {
|
|
33
26
|
"@hooks": "resources/js/hooks",
|
|
@@ -41,7 +34,8 @@ export async function initProdex() {
|
|
|
41
34
|
"node_modules",
|
|
42
35
|
"@shadcn/"
|
|
43
36
|
]
|
|
44
|
-
}
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
45
39
|
|
|
46
40
|
fs.writeFileSync(dest, jsonc, "utf8");
|
|
47
41
|
console.log(`✅ Created ${dest}`);
|
|
@@ -3,7 +3,7 @@ import { resolvePhpImports } from "../resolvers/php-resolver.js";
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export const ROOT = process.cwd();
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
export const CODE_EXTS = [".js", ".mjs", ".ts", ".tsx", ".d.ts", ".php"];
|
|
8
8
|
export const ENTRY_EXCLUDES = [
|
|
9
9
|
"resources/js/components/ui/",
|
package/dist/src/core/combine.js
CHANGED
|
@@ -104,14 +104,14 @@ const regionEnd = "##endregion";
|
|
|
104
104
|
function render(p) {
|
|
105
105
|
const ext = path.extname(p);
|
|
106
106
|
let s = read(p);
|
|
107
|
-
s = stripComments(s, ext);
|
|
108
|
-
s = normalizeIndent(s);
|
|
107
|
+
// s = stripComments(s, ext);
|
|
108
|
+
// s = normalizeIndent(s);
|
|
109
109
|
return `${header(p)}\n${regionStart(p)}\n${s}\n${regionEnd}\n\n`;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
function toc(files) {
|
|
113
113
|
return (
|
|
114
|
-
["
|
|
114
|
+
["##==== Combined Scope ====", ...files.map(f => "## - " + rel(f))].join(
|
|
115
115
|
"\n"
|
|
116
116
|
) + "\n\n"
|
|
117
117
|
);
|