@azure-net/cli 5.0.1 → 5.1.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/bin/azure-net.js +7 -0
- package/bin/azure-net.ts +8 -0
- package/package.json +9 -2
- package/src/generate/module/generatePresenter.js +348 -360
- package/src/generate/routes/generateRoutes.js +217 -0
- package/src/generate/routes/generateRoutes.ts +282 -0
- package/src/scaffolds/createPresenterFactory.js +63 -65
- package/src/utils/loadConfig.ts +1 -0
package/bin/azure-net.js
CHANGED
|
@@ -179,6 +179,13 @@ generateCommand
|
|
|
179
179
|
const handler = (await import('../src/generate/module/generateModulePreset.js')).default;
|
|
180
180
|
await handler();
|
|
181
181
|
});
|
|
182
|
+
generateCommand
|
|
183
|
+
.command('routes')
|
|
184
|
+
.description('Generate typed SvelteKit routes list')
|
|
185
|
+
.action(async () => {
|
|
186
|
+
const handler = (await import('../src/generate/routes/generateRoutes.js')).default;
|
|
187
|
+
await handler();
|
|
188
|
+
});
|
|
182
189
|
checkCommand
|
|
183
190
|
.command('presenter-names')
|
|
184
191
|
.description('Check duplicate presenter names in src')
|
package/bin/azure-net.ts
CHANGED
|
@@ -209,6 +209,14 @@ generateCommand
|
|
|
209
209
|
await handler();
|
|
210
210
|
});
|
|
211
211
|
|
|
212
|
+
generateCommand
|
|
213
|
+
.command('routes')
|
|
214
|
+
.description('Generate typed SvelteKit routes list')
|
|
215
|
+
.action(async () => {
|
|
216
|
+
const handler = (await import('../src/generate/routes/generateRoutes.js')).default;
|
|
217
|
+
await handler();
|
|
218
|
+
});
|
|
219
|
+
|
|
212
220
|
checkCommand
|
|
213
221
|
.command('presenter-names')
|
|
214
222
|
.description('Check duplicate presenter names in src')
|
package/package.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-net/cli",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"azure-net": "bin/azure-net.js"
|
|
7
7
|
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": "Pixel1917",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public",
|
|
12
|
+
"registry": "https://registry.npmjs.org/"
|
|
13
|
+
},
|
|
8
14
|
"peerDependencies": {
|
|
9
|
-
"@azure-net/kit": "
|
|
15
|
+
"@azure-net/kit": ">=5.0.0-4"
|
|
10
16
|
},
|
|
11
17
|
"dependencies": {
|
|
12
18
|
"commander": "^11",
|
|
@@ -16,6 +22,7 @@
|
|
|
16
22
|
"@eslint/js": "^9.31.0",
|
|
17
23
|
"@types/node": "^24.0.3",
|
|
18
24
|
"@types/prompts": "^2.4.9",
|
|
25
|
+
"env-cmd": "^11.0.0",
|
|
19
26
|
"eslint": "^9.31.0",
|
|
20
27
|
"prettier": "^3.6.2",
|
|
21
28
|
"typescript": "^5",
|