@stacksjs/path 0.58.58 → 0.58.60
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 +10 -0
- package/package.json +1 -1
- package/src/index.ts +10 -0
package/dist/index.js
CHANGED
|
@@ -65,6 +65,9 @@ function cloudPath(path) {
|
|
|
65
65
|
function collectionsPath(path) {
|
|
66
66
|
return corePath(`collections/${path || ""}`);
|
|
67
67
|
}
|
|
68
|
+
function commandsPath(path) {
|
|
69
|
+
return appPath(`Commands/${path || ""}`);
|
|
70
|
+
}
|
|
68
71
|
function componentsPath(path) {
|
|
69
72
|
return resourcesPath(`components/${path || ""}`);
|
|
70
73
|
}
|
|
@@ -146,6 +149,9 @@ function libraryEntryPath(type) {
|
|
|
146
149
|
function lintPath(path) {
|
|
147
150
|
return corePath(`lint/${path || ""}`);
|
|
148
151
|
}
|
|
152
|
+
function listenersPath(path) {
|
|
153
|
+
return appPath(`Listeners/${path || ""}`);
|
|
154
|
+
}
|
|
149
155
|
function eslintPath(path) {
|
|
150
156
|
return lintPath(`eslint/${path || ""}`);
|
|
151
157
|
}
|
|
@@ -319,6 +325,7 @@ var path = {
|
|
|
319
325
|
cliPath,
|
|
320
326
|
cloudPath,
|
|
321
327
|
collectionsPath,
|
|
328
|
+
commandsPath,
|
|
322
329
|
componentsPath,
|
|
323
330
|
configPath,
|
|
324
331
|
projectConfigPath,
|
|
@@ -347,6 +354,7 @@ var path = {
|
|
|
347
354
|
libsPath,
|
|
348
355
|
libraryEntryPath,
|
|
349
356
|
lintPath,
|
|
357
|
+
listenersPath,
|
|
350
358
|
loggingPath,
|
|
351
359
|
jobsPath,
|
|
352
360
|
modulesPath,
|
|
@@ -465,6 +473,7 @@ export {
|
|
|
465
473
|
modelsPath,
|
|
466
474
|
logsPath,
|
|
467
475
|
loggingPath,
|
|
476
|
+
listenersPath,
|
|
468
477
|
lintPath,
|
|
469
478
|
libsPath,
|
|
470
479
|
libsEntriesPath,
|
|
@@ -500,6 +509,7 @@ export {
|
|
|
500
509
|
coreEnvPath,
|
|
501
510
|
configPath,
|
|
502
511
|
componentsPath,
|
|
512
|
+
commandsPath,
|
|
503
513
|
collectionsPath,
|
|
504
514
|
cloudPath,
|
|
505
515
|
cliPath,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -128,6 +128,10 @@ export function collectionsPath(path?: string) {
|
|
|
128
128
|
return corePath(`collections/${path || ''}`)
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
export function commandsPath(path?: string) {
|
|
132
|
+
return appPath(`Commands/${path || ''}`)
|
|
133
|
+
}
|
|
134
|
+
|
|
131
135
|
export function componentsPath(path?: string) {
|
|
132
136
|
return resourcesPath(`components/${path || ''}`)
|
|
133
137
|
}
|
|
@@ -238,6 +242,10 @@ export function lintPath(path?: string) {
|
|
|
238
242
|
return corePath(`lint/${path || ''}`)
|
|
239
243
|
}
|
|
240
244
|
|
|
245
|
+
export function listenersPath(path?: string) {
|
|
246
|
+
return appPath(`Listeners/${path || ''}`)
|
|
247
|
+
}
|
|
248
|
+
|
|
241
249
|
export function eslintPath(path?: string) {
|
|
242
250
|
return lintPath(`eslint/${path || ''}`)
|
|
243
251
|
}
|
|
@@ -465,6 +473,7 @@ export const path = {
|
|
|
465
473
|
cliPath,
|
|
466
474
|
cloudPath,
|
|
467
475
|
collectionsPath,
|
|
476
|
+
commandsPath,
|
|
468
477
|
componentsPath,
|
|
469
478
|
configPath,
|
|
470
479
|
projectConfigPath,
|
|
@@ -493,6 +502,7 @@ export const path = {
|
|
|
493
502
|
libsPath,
|
|
494
503
|
libraryEntryPath,
|
|
495
504
|
lintPath,
|
|
505
|
+
listenersPath,
|
|
496
506
|
loggingPath,
|
|
497
507
|
jobsPath,
|
|
498
508
|
modulesPath,
|