@stacksjs/path 0.58.63 → 0.58.65
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/dist/index.js +30 -0
- package/package.json +1 -1
- package/src/index.ts +31 -0
package/dist/index.js
CHANGED
|
@@ -11,6 +11,24 @@ function relativeActionsPath(path) {
|
|
|
11
11
|
function userActionsPath(path) {
|
|
12
12
|
return appPath(`Actions/${path || ""}`);
|
|
13
13
|
}
|
|
14
|
+
function userJobsPath(path) {
|
|
15
|
+
return appPath(`Jobs/${path || ""}`);
|
|
16
|
+
}
|
|
17
|
+
function userListenersPath(path) {
|
|
18
|
+
return appPath(`Listeners/${path || ""}`);
|
|
19
|
+
}
|
|
20
|
+
function userMiddlewarePath(path) {
|
|
21
|
+
return appPath(`Middleware/${path || ""}`);
|
|
22
|
+
}
|
|
23
|
+
function userModelsPath(path) {
|
|
24
|
+
return appPath(`Models/${path || ""}`);
|
|
25
|
+
}
|
|
26
|
+
function userNotificationsPath(path) {
|
|
27
|
+
return appPath(`Notifications/${path || ""}`);
|
|
28
|
+
}
|
|
29
|
+
function userEventsPath() {
|
|
30
|
+
return appPath(`Events.ts`);
|
|
31
|
+
}
|
|
14
32
|
function aiPath(path) {
|
|
15
33
|
return corePath(`ai/${path || ""}`);
|
|
16
34
|
}
|
|
@@ -404,6 +422,12 @@ var path = {
|
|
|
404
422
|
tinkerPath,
|
|
405
423
|
typesPath,
|
|
406
424
|
uiPath,
|
|
425
|
+
userEventsPath,
|
|
426
|
+
userJobsPath,
|
|
427
|
+
userListenersPath,
|
|
428
|
+
userMiddlewarePath,
|
|
429
|
+
userModelsPath,
|
|
430
|
+
userNotificationsPath,
|
|
407
431
|
utilsPath,
|
|
408
432
|
validationPath,
|
|
409
433
|
vitePath,
|
|
@@ -429,6 +453,12 @@ export {
|
|
|
429
453
|
viewsPath,
|
|
430
454
|
validationPath,
|
|
431
455
|
utilsPath,
|
|
456
|
+
userNotificationsPath,
|
|
457
|
+
userModelsPath,
|
|
458
|
+
userMiddlewarePath,
|
|
459
|
+
userListenersPath,
|
|
460
|
+
userJobsPath,
|
|
461
|
+
userEventsPath,
|
|
432
462
|
userActionsPath,
|
|
433
463
|
uiPath,
|
|
434
464
|
typesPath,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -27,6 +27,30 @@ export function userActionsPath(path?: string) {
|
|
|
27
27
|
return appPath(`Actions/${path || ''}`)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export function userJobsPath(path?: string) {
|
|
31
|
+
return appPath(`Jobs/${path || ''}`)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function userListenersPath(path?: string) {
|
|
35
|
+
return appPath(`Listeners/${path || ''}`)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function userMiddlewarePath(path?: string) {
|
|
39
|
+
return appPath(`Middleware/${path || ''}`)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function userModelsPath(path?: string) {
|
|
43
|
+
return appPath(`Models/${path || ''}`)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function userNotificationsPath(path?: string) {
|
|
47
|
+
return appPath(`Notifications/${path || ''}`)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function userEventsPath() {
|
|
51
|
+
return appPath(`Events.ts`)
|
|
52
|
+
}
|
|
53
|
+
|
|
30
54
|
/**
|
|
31
55
|
* Returns the path to the `ai` directory. The AI directory
|
|
32
56
|
* contains the core Stacks' AI logic which currently
|
|
@@ -316,6 +340,7 @@ export function paymentsPath(path?: string) {
|
|
|
316
340
|
return corePath(`payments/${path || ''}`)
|
|
317
341
|
}
|
|
318
342
|
|
|
343
|
+
// all paths ultimately build on the projectPath
|
|
319
344
|
export function projectPath(filePath = '') {
|
|
320
345
|
let path = process.cwd()
|
|
321
346
|
|
|
@@ -554,6 +579,12 @@ export const path = {
|
|
|
554
579
|
tinkerPath,
|
|
555
580
|
typesPath,
|
|
556
581
|
uiPath,
|
|
582
|
+
userEventsPath,
|
|
583
|
+
userJobsPath,
|
|
584
|
+
userListenersPath,
|
|
585
|
+
userMiddlewarePath,
|
|
586
|
+
userModelsPath,
|
|
587
|
+
userNotificationsPath,
|
|
557
588
|
utilsPath,
|
|
558
589
|
validationPath,
|
|
559
590
|
vitePath,
|