@stacksjs/path 0.70.87 → 0.70.88
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 +1 -1
- package/dist/index.d.ts +0 -1097
- package/dist/index.js +0 -737
package/dist/index.d.ts
DELETED
|
@@ -1,1097 +0,0 @@
|
|
|
1
|
-
import { basename, delimiter, dirname, extname, isAbsolute, join, normalize, parse, relative, resolve, sep, toNamespacedPath } from 'node:path';
|
|
2
|
-
import type { ParsedPath } from 'node:path';
|
|
3
|
-
/**
|
|
4
|
-
* Returns the path to the `actions` directory. The `actions` directory
|
|
5
|
-
* contains the core Stacks' actions.
|
|
6
|
-
*
|
|
7
|
-
* @param path - The relative path to the file or directory.
|
|
8
|
-
* @returns The absolute path to the file or directory.
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* import { actionsPath } from '@stacksjs/path'
|
|
12
|
-
*
|
|
13
|
-
* console.log(actionsPath('path/to/action.ts')) // Outputs the absolute path to 'path/to/action.ts' within the `actions` directory
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare function actionsPath(path?: string): string;
|
|
17
|
-
export declare function relativeActionsPath(path?: string): string;
|
|
18
|
-
export declare function userActionsPath(path?: string, options?: { relative: true }): string;
|
|
19
|
-
export declare function builtUserActionsPath(path?: string, options?: { relative: boolean }): string;
|
|
20
|
-
export declare function userComponentsPath(path?: string): string;
|
|
21
|
-
export declare function userViewsPath(path?: string): string;
|
|
22
|
-
export declare function userFunctionsPath(path?: string): string;
|
|
23
|
-
/**
|
|
24
|
-
* Pick where a user lib folder (`components` / `functions`) lives
|
|
25
|
-
* (stacksjs/stacks#929). A root-level `<project>/components` (or
|
|
26
|
-
* `/functions`) folder wins when it exists; otherwise the conventional
|
|
27
|
-
* `resources/<name>`. Lets apps keep these at the project root without
|
|
28
|
-
* losing the `resources/`-nested default.
|
|
29
|
-
*
|
|
30
|
-
* Pure + injectable `exists` so the selection is unit-testable without
|
|
31
|
-
* touching the real filesystem.
|
|
32
|
-
*/
|
|
33
|
-
export declare function resolveUserLibBase(rootDir: string, resourcesDir: string, exists?: (p: string) => boolean): string;
|
|
34
|
-
/**
|
|
35
|
-
* Returns the path to the user-defined `Jobs` directory.
|
|
36
|
-
*
|
|
37
|
-
* @param path - The relative path to the file or directory within the `Jobs` directory.
|
|
38
|
-
* @returns The absolute path to the specified file or directory within the user-defined `Jobs` directory.
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* import { userJobsPath } from '@stacksjs/path'
|
|
42
|
-
*
|
|
43
|
-
* console.log(userJobsPath('MyJob.ts')) // Outputs the absolute path to 'MyJob.ts' within the user-defined `Jobs` directory.
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export declare function userJobsPath(path?: string): string;
|
|
47
|
-
/**
|
|
48
|
-
* Returns the path to the user-defined `Controllers` directory.
|
|
49
|
-
*
|
|
50
|
-
* @param path - The relative path to the file or directory within the `Controllers` directory.
|
|
51
|
-
* @returns The absolute path to the specified file or directory within the user-defined `Controllers` directory.
|
|
52
|
-
*/
|
|
53
|
-
export declare function userControllersPath(path?: string): string;
|
|
54
|
-
/**
|
|
55
|
-
* Returns the path to the user-defined `Listeners` directory.
|
|
56
|
-
*
|
|
57
|
-
* @param path - The relative path to the file or directory within the `Listeners` directory.
|
|
58
|
-
* @returns The absolute path to the specified file or directory within the user-defined `Listeners` directory.
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* import { userListenersPath } from '@stacksjs/path'
|
|
62
|
-
*
|
|
63
|
-
* console.log(userListenersPath('MyListener.ts')) // Outputs the absolute path to 'MyListener.ts' within the user-defined `Listeners` directory.
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export declare function userListenersPath(path?: string): string;
|
|
67
|
-
/**
|
|
68
|
-
* Returns the path to the user-defined `Middleware` directory.
|
|
69
|
-
*
|
|
70
|
-
* @param path - The relative path to the file or directory within the Middleware directory.
|
|
71
|
-
* @returns The absolute path to the specified file or directory within the user-defined Middleware directory.
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* import { userMiddlewarePath } from '@stacksjs/path'
|
|
75
|
-
*
|
|
76
|
-
* console.log(userMiddlewarePath('MyMiddleware.ts')) // Outputs the absolute path to 'MyMiddleware.ts' within the user-defined Middleware directory.
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
export declare function userMiddlewarePath(path?: string): string;
|
|
80
|
-
/**
|
|
81
|
-
* Returns the path to the user-defined `Models` directory.
|
|
82
|
-
*
|
|
83
|
-
* @param path - The relative path to the file or directory within the `Models` directory.
|
|
84
|
-
* @returns The absolute path to the specified file or directory within the user-defined `Models` directory.
|
|
85
|
-
* @example
|
|
86
|
-
* ```ts
|
|
87
|
-
* import { userModelsPath } from '@stacksjs/path'
|
|
88
|
-
*
|
|
89
|
-
* console.log(userModelsPath('MyModel.ts')) // Outputs the absolute path to 'MyModel.ts' within the user-defined `Models` directory.
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
export declare function userModelsPath(path?: string): string;
|
|
93
|
-
/**
|
|
94
|
-
* Returns the path to the user-defined `Notifications` directory.
|
|
95
|
-
*
|
|
96
|
-
* @param path - The relative path to the file or directory within the `Notifications` directory.
|
|
97
|
-
* @returns The absolute path to the specified file or directory within the user-defined `Notifications` directory.
|
|
98
|
-
* @example
|
|
99
|
-
* ```ts
|
|
100
|
-
* import { userNotificationsPath } from '@stacksjs/path'
|
|
101
|
-
*
|
|
102
|
-
* console.log(userNotificationsPath('MyNotification.ts')) // Outputs the absolute path to 'MyNotification.ts' within the user-defined `Notifications` directory.
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
export declare function userNotificationsPath(path?: string): string;
|
|
106
|
-
/**
|
|
107
|
-
* Returns the path to the user-defined `Mail` directory.
|
|
108
|
-
*
|
|
109
|
-
* Mailable classes live here, one file per email type. The companion
|
|
110
|
-
* stx template lives in `resources/emails/<kebab-name>.stx` and is
|
|
111
|
-
* resolved by `@stacksjs/email`'s template loader at send time.
|
|
112
|
-
*
|
|
113
|
-
* @param path - The relative path to the file or directory within the `Mail` directory.
|
|
114
|
-
* @returns The absolute path to the specified file or directory within the user-defined `Mail` directory.
|
|
115
|
-
* @example
|
|
116
|
-
* ```ts
|
|
117
|
-
* import { userMailPath } from '@stacksjs/path'
|
|
118
|
-
*
|
|
119
|
-
* console.log(userMailPath('Welcome.ts')) // Outputs the absolute path to 'Welcome.ts' within the user-defined `Mail` directory.
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
export declare function userMailPath(path?: string): string;
|
|
123
|
-
/**
|
|
124
|
-
* Returns the path to the user-defined `resources/emails` directory
|
|
125
|
-
* where stx email templates live. The make:mail scaffolder writes a
|
|
126
|
-
* companion stx file alongside each Mailable class.
|
|
127
|
-
*/
|
|
128
|
-
export declare function userEmailsPath(path?: string): string;
|
|
129
|
-
export declare function userDatabasePath(path?: string): string;
|
|
130
|
-
export declare function userMigrationsPath(path?: string): string;
|
|
131
|
-
/**
|
|
132
|
-
* Returns the path to the user-defined `Events.ts` file.
|
|
133
|
-
*
|
|
134
|
-
* @returns The absolute path to the `Events.ts` file within the user-defined directory.
|
|
135
|
-
* @example
|
|
136
|
-
* ```ts
|
|
137
|
-
* import { userEventsPath } from '@stacksjs/path'
|
|
138
|
-
*
|
|
139
|
-
* console.log(userEventsPath()) // Outputs the absolute path to 'Events.ts' within the user-defined directory.
|
|
140
|
-
* ```
|
|
141
|
-
*/
|
|
142
|
-
export declare function userEventsPath(): string;
|
|
143
|
-
/**
|
|
144
|
-
* Returns the path to the `ai` directory. The AI directory
|
|
145
|
-
* contains the core Stacks' AI logic which currently
|
|
146
|
-
* is a wrapper of the OpenAI API.
|
|
147
|
-
*
|
|
148
|
-
* @param path - relative path to the file or directory
|
|
149
|
-
* @returns string - absolute path to the file or directory
|
|
150
|
-
*
|
|
151
|
-
* @example
|
|
152
|
-
* ```ts
|
|
153
|
-
* import { aiPath } from '@stacksjs/path'
|
|
154
|
-
*
|
|
155
|
-
* console.log(aiPath('src/drivers/example.ts')) // Outputs the absolute path to 'openai.ts' within the AI directory
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
|
-
export declare function aiPath(path?: string): string;
|
|
159
|
-
/**
|
|
160
|
-
* Returns the path to the `assets` directory within the `resources` directory.
|
|
161
|
-
*
|
|
162
|
-
* @param path - The relative path to the file or directory within the `assets` directory.
|
|
163
|
-
* @returns The absolute path to the specified file or directory within the `assets` directory.
|
|
164
|
-
* @example
|
|
165
|
-
* ```ts
|
|
166
|
-
* import { assetsPath } from '@stacksjs/path'
|
|
167
|
-
*
|
|
168
|
-
* console.log(assetsPath('images/logo.png')) // Outputs the absolute path to 'images/logo.png' within the `assets` directory.
|
|
169
|
-
* ```
|
|
170
|
-
*/
|
|
171
|
-
export declare function assetsPath(path?: string): string;
|
|
172
|
-
/**
|
|
173
|
-
* Returns the path to the `alias` directory within the core directory.
|
|
174
|
-
*
|
|
175
|
-
* @returns The absolute path to the `alias` directory.
|
|
176
|
-
* @example
|
|
177
|
-
* ```ts
|
|
178
|
-
* import { aliasPath } from '@stacksjs/path'
|
|
179
|
-
*
|
|
180
|
-
* console.log(aliasPath()) // Outputs the absolute path to the `alias` directory.
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
|
-
export declare function aliasPath(): string;
|
|
184
|
-
/**
|
|
185
|
-
* Returns the path to the `buddy` directory, optionally relative to the current working directory.
|
|
186
|
-
*
|
|
187
|
-
* @param path - The relative path to the file or directory within the buddy directory.
|
|
188
|
-
* @param options - Optional. An object containing configuration settings.
|
|
189
|
-
* @param options.relative - If true, returns the path relative to the current working directory.
|
|
190
|
-
* @returns The absolute or relative path to the specified file or directory within the buddy * @returns The absolute or relative path to the specified file or directory within the buddy directory.
|
|
191
|
-
* @example
|
|
192
|
-
* ```ts
|
|
193
|
-
* import { buddyPath } from '@stacksjs/path'
|
|
194
|
-
*
|
|
195
|
-
* console.log(buddyPath('config/buddy.json')) // Outputs the absolute path to 'config/buddy.json' within the buddy directory.
|
|
196
|
-
* console.log(buddyPath('config/buddy.json', { relative: true })) // Outputs the relative path to 'config/buddy.json' within the buddy directory.
|
|
197
|
-
* ```
|
|
198
|
-
*/
|
|
199
|
-
export declare function buddyPath(path?: string, options?: { relative?: boolean }): string;
|
|
200
|
-
/**
|
|
201
|
-
* Returns the path to the `runtime` directory within the framework directory.
|
|
202
|
-
*
|
|
203
|
-
* @param path - The relative path to the file or directory within the runtime directory.
|
|
204
|
-
* @returns The absolute path to the specified file or directory within the runtime directory.
|
|
205
|
-
* @example
|
|
206
|
-
* ```ts
|
|
207
|
-
* import { runtimePath } from '@stacksjs/path'
|
|
208
|
-
*
|
|
209
|
-
* console.log(runtimePath('runtime-config.json')) // Outputs the absolute path to 'runtime-config.json' within the runtime directory.
|
|
210
|
-
* ```
|
|
211
|
-
*/
|
|
212
|
-
export declare function runtimePath(path?: string): string;
|
|
213
|
-
/**
|
|
214
|
-
* Returns the path to the `analytics` directory within the core directory.
|
|
215
|
-
*
|
|
216
|
-
* @param path - The relative path to the file or directory within the `analytics` directory.
|
|
217
|
-
* @returns The absolute path to the specified file or directory within the `analytics` directory.
|
|
218
|
-
* @example
|
|
219
|
-
* ```ts
|
|
220
|
-
* import { analyticsPath } from '@stacksjs/path'
|
|
221
|
-
*
|
|
222
|
-
* console.log(analyticsPath('data/report.csv')) // Outputs the absolute path to 'data/report.csv' within the `analytics` directory.
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
export declare function analyticsPath(path?: string): string;
|
|
226
|
-
/**
|
|
227
|
-
* Returns the path to the `arrays` directory within the core directory.
|
|
228
|
-
*
|
|
229
|
-
* @param path - The relative path to the file or directory within the `arrays` directory.
|
|
230
|
-
* @returns The absolute path to the specified file or directory within the `arrays` directory.
|
|
231
|
-
* @example
|
|
232
|
-
* ```ts
|
|
233
|
-
* import { arraysPath } from '@stacksjs/path'
|
|
234
|
-
*
|
|
235
|
-
* console.log(arraysPath('list.txt')) // Outputs the absolute path to 'list.txt' within the `arrays` directory.
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
|
-
export declare function arraysPath(path?: string): string;
|
|
239
|
-
/**
|
|
240
|
-
* Returns the path to the `app` directory, optionally relative to the project directory.
|
|
241
|
-
*
|
|
242
|
-
* @param path - The relative path to the file or directory within the app directory.
|
|
243
|
-
* @returns The absolute path to the specified file or directory within the app directory.
|
|
244
|
-
* @example
|
|
245
|
-
* ```ts
|
|
246
|
-
* import { appPath } from '@stacksjs/path'
|
|
247
|
-
*
|
|
248
|
-
* console.log(appPath('Actions/DummyAction.ts')) // Outputs the absolute path to 'Actions/DummyAction.ts' within the app directory.
|
|
249
|
-
* ```
|
|
250
|
-
*/
|
|
251
|
-
export declare function appPath(path?: string, options?: { relative?: boolean, cwd?: string }): string;
|
|
252
|
-
/**
|
|
253
|
-
* Returns the path to the defaults `app` directory within the framework directory.
|
|
254
|
-
* This is where default Actions, Controllers, etc. are stored.
|
|
255
|
-
*
|
|
256
|
-
* @param path - The relative path to the file or directory within the defaults app directory.
|
|
257
|
-
* @returns The absolute path to the specified file or directory within the defaults app directory.
|
|
258
|
-
*/
|
|
259
|
-
export declare function defaultsAppPath(path?: string): string;
|
|
260
|
-
/**
|
|
261
|
-
* Returns the path to the defaults `resources` directory within the framework directory.
|
|
262
|
-
* This is where default views, components, layouts, etc. are stored.
|
|
263
|
-
*
|
|
264
|
-
* @param path - The relative path to the file or directory within the defaults resources directory.
|
|
265
|
-
* @returns The absolute path to the specified file or directory within the defaults resources directory.
|
|
266
|
-
*/
|
|
267
|
-
export declare function defaultsResourcesPath(path?: string): string;
|
|
268
|
-
/**
|
|
269
|
-
* Returns the path to the `auth` directory within the core directory.
|
|
270
|
-
*
|
|
271
|
-
* @param path - The relative path to the file or directory within the auth directory.
|
|
272
|
-
* @returns The absolute path to the specified file or directory within the auth directory.
|
|
273
|
-
* @example
|
|
274
|
-
* ```ts
|
|
275
|
-
* import { authPath } from '@stacksjs/path'
|
|
276
|
-
*
|
|
277
|
-
* console.log(authPath('login.ts')) // Outputs the absolute path to 'login.ts' within the auth directory.
|
|
278
|
-
* ```
|
|
279
|
-
*/
|
|
280
|
-
export declare function authPath(path?: string): string;
|
|
281
|
-
/**
|
|
282
|
-
* Returns the path to the `auth` directory within the core directory.
|
|
283
|
-
*
|
|
284
|
-
* @param path - The relative path to the file or directory within the auth directory.
|
|
285
|
-
* @returns The absolute path to the specified file or directory within the auth directory.
|
|
286
|
-
* @example
|
|
287
|
-
* ```ts
|
|
288
|
-
* import { coreApiPath } from '@stacksjs/path'
|
|
289
|
-
*
|
|
290
|
-
* console.log(coreApiPath('login.ts')) // Outputs the absolute path to 'login.ts' within the auth directory.
|
|
291
|
-
* ```
|
|
292
|
-
*/
|
|
293
|
-
export declare function coreApiPath(path?: string): string;
|
|
294
|
-
/**
|
|
295
|
-
* Returns the path to the build directory. The build directory
|
|
296
|
-
* contains Stacks' build engine & its tooling integrations.
|
|
297
|
-
*
|
|
298
|
-
* @param path string - relative path to the file or directory
|
|
299
|
-
* @returns string - absolute path to the file or directory
|
|
300
|
-
* @example
|
|
301
|
-
* ```ts
|
|
302
|
-
* buildPath('functions.stx')
|
|
303
|
-
* buildPath('components.ts')
|
|
304
|
-
* ```
|
|
305
|
-
*/
|
|
306
|
-
export declare function buildPath(path?: string): string;
|
|
307
|
-
/**
|
|
308
|
-
* Returns the path to the build engine directory.
|
|
309
|
-
*
|
|
310
|
-
* @param path - The relative path to the file or directory within the build engine directory.
|
|
311
|
-
* @returns The absolute path to the specified file or directory within the build engine directory.
|
|
312
|
-
*/
|
|
313
|
-
export declare function buildEnginePath(path?: string): string;
|
|
314
|
-
/**
|
|
315
|
-
* Returns the path to the `libs` directory within the framework directory.
|
|
316
|
-
*
|
|
317
|
-
* @param path - The relative path to the file or directory within the `libs` directory.
|
|
318
|
-
* @returns The absolute path to the specified file or directory within the `libs` directory.
|
|
319
|
-
*/
|
|
320
|
-
export declare function libsPath(path?: string): string;
|
|
321
|
-
/**
|
|
322
|
-
* Returns the path to the user `libs` directory within the root project directory.
|
|
323
|
-
*
|
|
324
|
-
* @param path - The relative path to the file or directory within the `libs` directory.
|
|
325
|
-
* @returns The absolute path to the specified file or directory within the `libs` directory.
|
|
326
|
-
*/
|
|
327
|
-
export declare function userLibsPath(path?: 'components' | 'functions' | string): string;
|
|
328
|
-
/**
|
|
329
|
-
* Returns the path to the `entries` directory within the `libs` directory.
|
|
330
|
-
*
|
|
331
|
-
* @param path - The relative path to the file or directory within the `entries` directory.
|
|
332
|
-
* @returns The absolute path to the specified file or directory within the `entries` directory.
|
|
333
|
-
*/
|
|
334
|
-
export declare function libsEntriesPath(path?: string): string;
|
|
335
|
-
/**
|
|
336
|
-
* Returns the path to the `cache` directory within the core directory.
|
|
337
|
-
*
|
|
338
|
-
* @param path - The relative path to the file or directory within the cache directory.
|
|
339
|
-
* @returns The absolute path to the specified file or directory within the cache directory.
|
|
340
|
-
*/
|
|
341
|
-
export declare function cachePath(path?: string): string;
|
|
342
|
-
/**
|
|
343
|
-
* Returns the path to the `chat` directory within the core directory.
|
|
344
|
-
*
|
|
345
|
-
* @param path - The relative path to the file or directory within the chat directory.
|
|
346
|
-
* @returns The absolute path to the specified file or directory within the chat directory.
|
|
347
|
-
*/
|
|
348
|
-
export declare function chatPath(path?: string): string;
|
|
349
|
-
/**
|
|
350
|
-
* Returns the path to the `charts` directory within the core directory.
|
|
351
|
-
*
|
|
352
|
-
* @param path - The relative path to the file or directory within the charts directory.
|
|
353
|
-
* @returns The absolute path to the specified file or directory within the charts directory.
|
|
354
|
-
*/
|
|
355
|
-
export declare function chartsPath(path?: string): string;
|
|
356
|
-
/**
|
|
357
|
-
* Returns the path to the `cli` directory within the core directory.
|
|
358
|
-
*
|
|
359
|
-
* @param path - The relative path to the file or directory within the cli directory.
|
|
360
|
-
* @returns The absolute path to the specified file or directory within the cli directory.
|
|
361
|
-
*/
|
|
362
|
-
export declare function cliPath(path?: string): string;
|
|
363
|
-
/**
|
|
364
|
-
* Returns the path to the `cloud` directory within the core directory.
|
|
365
|
-
*
|
|
366
|
-
* @param path - The relative path to the file or directory within the cloud directory.
|
|
367
|
-
* @returns The absolute path to the specified file or directory within the cloud directory.
|
|
368
|
-
*/
|
|
369
|
-
export declare function cloudPath(path?: string): string;
|
|
370
|
-
/**
|
|
371
|
-
* Returns the path to the `cloud` directory within the framework directory.
|
|
372
|
-
*
|
|
373
|
-
* @param path - The relative path to the file or directory within the framework cloud directory.
|
|
374
|
-
* @returns The absolute path to the specified file or directory within the framework cloud directory.
|
|
375
|
-
*/
|
|
376
|
-
export declare function frameworkCloudPath(path?: string): string;
|
|
377
|
-
/**
|
|
378
|
-
* Returns the path to the `collections` directory within the core directory.
|
|
379
|
-
*
|
|
380
|
-
* @param path - The relative path to the file or directory within the `collections` directory.
|
|
381
|
-
* @returns The absolute path to the specified file or directory within the `collections` directory.
|
|
382
|
-
*/
|
|
383
|
-
export declare function collectionsPath(path?: string): string;
|
|
384
|
-
/**
|
|
385
|
-
* Returns the path to the `Commands` directory within the app directory.
|
|
386
|
-
*
|
|
387
|
-
* @param path - The relative path to the file or directory within the `Commands` directory.
|
|
388
|
-
* @returns The absolute path to the specified file or directory within the `Commands` directory.
|
|
389
|
-
*/
|
|
390
|
-
export declare function commandsPath(path?: string): string;
|
|
391
|
-
/**
|
|
392
|
-
* Returns the path to the `components` directory within the `resources` directory.
|
|
393
|
-
*
|
|
394
|
-
* @param path - The relative path to the file or directory within the `components` directory.
|
|
395
|
-
* @returns The absolute path to the specified file or directory within the `components` directory.
|
|
396
|
-
*/
|
|
397
|
-
export declare function componentsPath(path?: string): string;
|
|
398
|
-
/**
|
|
399
|
-
* Returns the path to the `config` directory within the core directory.
|
|
400
|
-
*
|
|
401
|
-
* @param path - The relative path to the file or directory within the config directory.
|
|
402
|
-
* @returns The absolute path to the specified file or directory within the config directory.
|
|
403
|
-
*/
|
|
404
|
-
export declare function configPath(path?: string): string;
|
|
405
|
-
/**
|
|
406
|
-
* Returns the path to the `core` directory within the framework directory.
|
|
407
|
-
*
|
|
408
|
-
* @param path - The relative path to the file or directory within the core directory.
|
|
409
|
-
* @returns The absolute path to the specified file or directory within the core directory.
|
|
410
|
-
*/
|
|
411
|
-
export declare function corePath(path?: string): string;
|
|
412
|
-
/**
|
|
413
|
-
* Returns the absolute path to the `custom-elements.json` file within the core directory.
|
|
414
|
-
*
|
|
415
|
-
* @returns The absolute path to the `custom-elements.json` file.
|
|
416
|
-
*/
|
|
417
|
-
export declare function customElementsDataPath(): string;
|
|
418
|
-
/**
|
|
419
|
-
* Returns the path to the `database` directory within the core directory.
|
|
420
|
-
*
|
|
421
|
-
* @param path - The relative path to the file or directory within the database directory.
|
|
422
|
-
* @returns The absolute path to the specified file or directory within the database directory.
|
|
423
|
-
*/
|
|
424
|
-
export declare function databasePath(path?: string): string;
|
|
425
|
-
/**
|
|
426
|
-
* Returns the path to the `datetime` directory within the core directory.
|
|
427
|
-
*
|
|
428
|
-
* @param path - The relative path to the file or directory within the datetime directory.
|
|
429
|
-
* @returns The absolute path to the specified file or directory within the datetime directory.
|
|
430
|
-
*/
|
|
431
|
-
export declare function datetimePath(path?: string): string;
|
|
432
|
-
/**
|
|
433
|
-
* Returns the path to the `development` directory within the core directory.
|
|
434
|
-
*
|
|
435
|
-
* @param path - The relative path to the file or directory within the development directory.
|
|
436
|
-
* @returns The absolute path to the specified file or directory within the development directory.
|
|
437
|
-
*/
|
|
438
|
-
export declare function developmentPath(path?: string): string;
|
|
439
|
-
/**
|
|
440
|
-
* Returns the path to the `desktop` directory within the core directory.
|
|
441
|
-
*
|
|
442
|
-
* @param path - The relative path to the file or directory within the desktop directory.
|
|
443
|
-
* @returns The absolute path to the specified file or directory within the desktop directory.
|
|
444
|
-
*/
|
|
445
|
-
export declare function desktopPath(path?: string): string;
|
|
446
|
-
/**
|
|
447
|
-
* Returns the path to the `docs` directory within the core directory.
|
|
448
|
-
*
|
|
449
|
-
* @param path - The relative path to the file or directory within the `docs` directory.
|
|
450
|
-
* @returns The absolute path to the specified file or directory within the `docs` directory.
|
|
451
|
-
*/
|
|
452
|
-
export declare function docsPath(path?: string): string;
|
|
453
|
-
/**
|
|
454
|
-
* Returns the path to the `domains` directory within the core directory.
|
|
455
|
-
*
|
|
456
|
-
* @param path - The relative path to the file or directory within the `domains` directory.
|
|
457
|
-
* @returns The absolute path to the specified file or directory within the `domains` directory.
|
|
458
|
-
*/
|
|
459
|
-
export declare function dnsPath(path?: string): string;
|
|
460
|
-
/**
|
|
461
|
-
* Returns the path to the `email` directory within the `notifications` directory.
|
|
462
|
-
*
|
|
463
|
-
* @param path - The relative path to the file or directory within the email directory.
|
|
464
|
-
* @returns The absolute path to the specified file or directory within the email directory.
|
|
465
|
-
*/
|
|
466
|
-
export declare function emailPath(path?: string): string;
|
|
467
|
-
/**
|
|
468
|
-
* Returns the path to the `enums` directory within the core directory.
|
|
469
|
-
*
|
|
470
|
-
* @param path - The relative path to the file or directory within the `enums` directory.
|
|
471
|
-
* @returns The absolute path to the specified file or directory within the `enums` directory.
|
|
472
|
-
*/
|
|
473
|
-
export declare function enumsPath(path?: string): string;
|
|
474
|
-
/**
|
|
475
|
-
* Returns the path to the `eslint-plugin` directory within the core directory.
|
|
476
|
-
*
|
|
477
|
-
* @param path - The relative path to the file or directory within the eslint-plugin directory.
|
|
478
|
-
* @returns The absolute path to the specified file or directory within the eslint-plugin directory.
|
|
479
|
-
*/
|
|
480
|
-
export declare function eslintPluginPath(path?: string): string;
|
|
481
|
-
/**
|
|
482
|
-
* Returns the path to the `error-handling` directory within the core directory.
|
|
483
|
-
*
|
|
484
|
-
* @param path - The relative path to the file or directory within the error-handling directory.
|
|
485
|
-
* @returns The absolute path to the specified file or directory within the error-handling directory.
|
|
486
|
-
*/
|
|
487
|
-
export declare function errorHandlingPath(path?: string): string;
|
|
488
|
-
/**
|
|
489
|
-
* Returns the path to the `events` directory within the core directory.
|
|
490
|
-
*
|
|
491
|
-
* @param path - The relative path to the file or directory within the `events` directory.
|
|
492
|
-
* @returns The absolute path to the specified file or directory within the `events` directory.
|
|
493
|
-
*/
|
|
494
|
-
export declare function eventsPath(path?: string): string;
|
|
495
|
-
/**
|
|
496
|
-
* Returns the path to the `env` directory within the core directory.
|
|
497
|
-
*
|
|
498
|
-
* @param path - The relative path to the file or directory within the env directory.
|
|
499
|
-
* @returns The absolute path to the specified file or directory within the env directory.
|
|
500
|
-
*/
|
|
501
|
-
export declare function coreEnvPath(path?: string): string;
|
|
502
|
-
/**
|
|
503
|
-
* Returns the path to the `examples` directory within the framework directory, filtered by type.
|
|
504
|
-
*
|
|
505
|
-
* @param type - The type of examples to filter by ('web-components').
|
|
506
|
-
* @returns The absolute path to the specified type of examples within the `examples` directory.
|
|
507
|
-
*/
|
|
508
|
-
export declare function examplesPath(type?: 'web-components'): string;
|
|
509
|
-
/**
|
|
510
|
-
* Returns the path to the `faker` directory within the core directory.
|
|
511
|
-
*
|
|
512
|
-
* @param path - The relative path to the file or directory within the faker directory.
|
|
513
|
-
* @returns The absolute path to the specified file or directory within the faker directory.
|
|
514
|
-
*/
|
|
515
|
-
export declare function fakerPath(path?: string): string;
|
|
516
|
-
/**
|
|
517
|
-
* Returns the path to the framework directory, optionally relative to the current working directory.
|
|
518
|
-
*
|
|
519
|
-
* @param path - The relative path to the file or directory within the framework directory.
|
|
520
|
-
* @param options - Optional. An object containing configuration settings.
|
|
521
|
-
* @param options.relative - If true, returns the path relative to the current working directory.
|
|
522
|
-
* @param options.cwd - Specifies a custom working directory.
|
|
523
|
-
* @returns The absolute or relative path to the specified file or directory within the framework directory.
|
|
524
|
-
*/
|
|
525
|
-
export declare function frameworkPath(path?: string, options?: { relative?: boolean, cwd?: string }): string;
|
|
526
|
-
/**
|
|
527
|
-
* Returns the path to the `frontend` directory within the core directory.
|
|
528
|
-
*
|
|
529
|
-
* @param path - The relative path to the file or directory within the health directory.
|
|
530
|
-
* @returns The absolute path to the specified file or directory within the health directory.
|
|
531
|
-
*/
|
|
532
|
-
export declare function browserPath(path?: string): string;
|
|
533
|
-
/**
|
|
534
|
-
* Returns the path to the `health` directory within the core directory.
|
|
535
|
-
*
|
|
536
|
-
* @param path - The relative path to the file or directory within the health directory.
|
|
537
|
-
* @returns The absolute path to the specified file or directory within the health directory.
|
|
538
|
-
*/
|
|
539
|
-
export declare function healthPath(path?: string): string;
|
|
540
|
-
/**
|
|
541
|
-
* Returns the path to the `functions` directory within the `resources` directory.
|
|
542
|
-
*
|
|
543
|
-
* @param path - The relative path to the file or directory within the `functions` directory.
|
|
544
|
-
* @returns The absolute path to the specified file or directory within the `functions` directory.
|
|
545
|
-
*/
|
|
546
|
-
export declare function functionsPath(path?: string): string;
|
|
547
|
-
/**
|
|
548
|
-
* Returns the path to the `git` directory within the core directory.
|
|
549
|
-
*
|
|
550
|
-
* @param path - The relative path to the file or directory within the git directory.
|
|
551
|
-
* @returns The absolute path to the specified file or directory within the git directory.
|
|
552
|
-
*/
|
|
553
|
-
export declare function gitPath(path?: string): string;
|
|
554
|
-
/**
|
|
555
|
-
* Returns the path to the `lang` directory, optionally relative to the project directory.
|
|
556
|
-
*
|
|
557
|
-
* @param path - The relative path to the file or directory within the lang directory.
|
|
558
|
-
* @returns The absolute path to the specified file or directory within the lang directory.
|
|
559
|
-
*/
|
|
560
|
-
export declare function langPath(path?: string): string;
|
|
561
|
-
/**
|
|
562
|
-
* Returns the path to the `layouts` directory within the `resources` directory, optionally relative to the current working directory.
|
|
563
|
-
*
|
|
564
|
-
* @param path - The relative path to the file or directory within the `layouts` directory.
|
|
565
|
-
* @param options - Optional. An object containing configuration settings.
|
|
566
|
-
* @param options.relative - If true, returns the path relative to the current working directory.
|
|
567
|
-
* @param options.defaults - If true, returns the path to the `defaults/layouts` directory.
|
|
568
|
-
* @returns The absolute or relative path to the specified file or directory within the `layouts` directory.
|
|
569
|
-
*/
|
|
570
|
-
export declare function layoutsPath(path?: string, options?: { relative?: boolean, defaults?: boolean }): string;
|
|
571
|
-
export declare function libraryEntryPath(type: LibraryType): string;
|
|
572
|
-
/**
|
|
573
|
-
* Returns the path to the `lint` directory within the core directory.
|
|
574
|
-
*
|
|
575
|
-
* @param path - The relative path to the file or directory within the lint directory.
|
|
576
|
-
* @returns The absolute path to the specified file or directory within the lint directory.
|
|
577
|
-
*/
|
|
578
|
-
export declare function lintPath(path?: string): string;
|
|
579
|
-
/**
|
|
580
|
-
* Returns the path to the `listeners` directory within the app directory.
|
|
581
|
-
*
|
|
582
|
-
* @param path - The relative path to the file or directory within the `listeners` directory.
|
|
583
|
-
* @returns The absolute path to the specified file or directory within the `listeners` directory.
|
|
584
|
-
*/
|
|
585
|
-
export declare function listenersPath(path?: string): string;
|
|
586
|
-
/**
|
|
587
|
-
* Returns the path to the `jobs` directory within the app directory.
|
|
588
|
-
*
|
|
589
|
-
* @param path - The relative path to the file or directory within the `jobs` directory.
|
|
590
|
-
* @returns The absolute path to the specified file or directory within the `jobs` directory.
|
|
591
|
-
*/
|
|
592
|
-
export declare function jobsPath(path?: string): string;
|
|
593
|
-
/**
|
|
594
|
-
* Returns the path to the `logging` directory within the core directory.
|
|
595
|
-
*
|
|
596
|
-
* @param path - The relative path to the file or directory within the logging directory.
|
|
597
|
-
* @returns The absolute path to the specified file or directory within the logging directory.
|
|
598
|
-
*/
|
|
599
|
-
export declare function loggingPath(path?: string): string;
|
|
600
|
-
/**
|
|
601
|
-
* Returns the path to the `logs` directory within the project storage directory.
|
|
602
|
-
*
|
|
603
|
-
* @param path - The relative path to the file or directory within the `logs` directory.
|
|
604
|
-
* @returns The absolute path to the specified file or directory within the `logs` directory.
|
|
605
|
-
*/
|
|
606
|
-
export declare function logsPath(path?: string): string;
|
|
607
|
-
/**
|
|
608
|
-
* Returns the path to the `models` directory within the app directory.
|
|
609
|
-
*
|
|
610
|
-
* @param path - The relative path to the file or directory within the `models` directory.
|
|
611
|
-
* @returns The absolute path to the specified file or directory within the `models` directory.
|
|
612
|
-
*/
|
|
613
|
-
export declare function modelsPath(path?: string): string;
|
|
614
|
-
/**
|
|
615
|
-
* Returns the path to the `modules` directory within the `resources` directory.
|
|
616
|
-
*
|
|
617
|
-
* @param path - The relative path to the file or directory within the `modules` directory.
|
|
618
|
-
* @returns The absolute path to the specified file or directory within the `modules` directory.
|
|
619
|
-
*/
|
|
620
|
-
export declare function modulesPath(path?: string): string;
|
|
621
|
-
/**
|
|
622
|
-
* Returns the path to the `notifications` directory within the core directory.
|
|
623
|
-
*
|
|
624
|
-
* @param path - The relative path to the file or directory within the `notifications` directory.
|
|
625
|
-
* @returns The absolute path to the specified file or directory within the `notifications` directory.
|
|
626
|
-
*/
|
|
627
|
-
export declare function notificationsPath(path?: string): string;
|
|
628
|
-
/**
|
|
629
|
-
* Returns the path to the `newsletter` directory within the core directory.
|
|
630
|
-
*
|
|
631
|
-
* @param path - The relative path to the file or directory within the `newsletter` directory.
|
|
632
|
-
* @returns The absolute path to the specified file or directory within the `newsletter` directory.
|
|
633
|
-
*/
|
|
634
|
-
export declare function newsletterPath(path?: string): string;
|
|
635
|
-
/**
|
|
636
|
-
* Returns the path to the `orm` directory within the core directory.
|
|
637
|
-
*
|
|
638
|
-
* @param path - The relative path to the file or directory within the orm directory.
|
|
639
|
-
* @returns The absolute path to the specified file or directory within the orm directory.
|
|
640
|
-
*/
|
|
641
|
-
export declare function ormPath(path?: string): string;
|
|
642
|
-
/**
|
|
643
|
-
* Returns the path to the `objects` directory within the core directory.
|
|
644
|
-
*
|
|
645
|
-
* @param path - The relative path to the file or directory within the `objects` directory.
|
|
646
|
-
* @returns The absolute path to the specified file or directory within the `objects` directory.
|
|
647
|
-
*/
|
|
648
|
-
export declare function objectsPath(path?: string): string;
|
|
649
|
-
/**
|
|
650
|
-
* Returns the default path to the onboarding views within the project directory, or a specified path.
|
|
651
|
-
*
|
|
652
|
-
* @param path - The relative path to the file or directory within the project directory. Defaults to 'views/dashboard/onboarding'.
|
|
653
|
-
* @returns The absolute path to the specified file or directory within the project directory.
|
|
654
|
-
*/
|
|
655
|
-
export declare function onboardingPath(path?: string): string;
|
|
656
|
-
/**
|
|
657
|
-
* Returns the path to the `package.json` file of a specified library type within the framework directory.
|
|
658
|
-
*
|
|
659
|
-
* @param type - The type of the library ('web-components', or 'functions') for which to return the package.json path.
|
|
660
|
-
* @returns The absolute path to the specified package.json file within the framework directory.
|
|
661
|
-
*/
|
|
662
|
-
export declare function packageJsonPath(type: LibraryType): string;
|
|
663
|
-
/**
|
|
664
|
-
* Returns the path to the `views` directory within the `resources` directory.
|
|
665
|
-
*
|
|
666
|
-
* @param path - The relative path to the file or directory within the `views` directory.
|
|
667
|
-
* @returns The absolute path to the specified file or directory within the `views` directory.
|
|
668
|
-
*/
|
|
669
|
-
export declare function viewsPath(path?: string): string;
|
|
670
|
-
/**
|
|
671
|
-
* Returns the path to the `path` directory within the core directory.
|
|
672
|
-
*
|
|
673
|
-
* @param path - The relative path to the file or directory within the path directory.
|
|
674
|
-
* @returns The absolute path to the specified file or directory within the path directory.
|
|
675
|
-
*/
|
|
676
|
-
export declare function pathPath(path?: string): string;
|
|
677
|
-
/**
|
|
678
|
-
* Returns the path to the `payments` directory within the core directory.
|
|
679
|
-
*
|
|
680
|
-
* @param path - The relative path to the file or directory within the `payments` directory.
|
|
681
|
-
* @returns The absolute path to the specified file or directory within the `payments` directory.
|
|
682
|
-
*/
|
|
683
|
-
export declare function paymentsPath(path?: string): string;
|
|
684
|
-
/**
|
|
685
|
-
* Returns the project path, resolving from the current working directory and moving up until the storage directory is no longer part of the path.
|
|
686
|
-
*
|
|
687
|
-
* @param filePath - The relative path to append to the project path. Defaults to an empty string.
|
|
688
|
-
* @returns The absolute path to the specified file or directory within the project directory.
|
|
689
|
-
*/
|
|
690
|
-
export declare function projectPath(filePath?: string, options?: { relative: boolean }): string;
|
|
691
|
-
/**
|
|
692
|
-
* Finds and returns the absolute path of a specified project by name.
|
|
693
|
-
*
|
|
694
|
-
* @param project - The name of the project to find.
|
|
695
|
-
* @returns The absolute path to the specified project.
|
|
696
|
-
* @throws Error if the project with the specified name cannot be found.
|
|
697
|
-
*/
|
|
698
|
-
export declare function findProjectPath(project: string): Promise<string>;
|
|
699
|
-
/**
|
|
700
|
-
* Returns the path to the `config` directory within the project directory.
|
|
701
|
-
*
|
|
702
|
-
* @param path - The relative path to the file or directory within the config directory.
|
|
703
|
-
* @returns The absolute path to the specified file or directory within the config directory.
|
|
704
|
-
*/
|
|
705
|
-
export declare function projectConfigPath(path?: string): string;
|
|
706
|
-
/**
|
|
707
|
-
* Returns the path to the `storage` directory within the project directory.
|
|
708
|
-
*
|
|
709
|
-
* @param path - The relative path to the file or directory within the storage directory.
|
|
710
|
-
* @returns The absolute path to the specified file or directory within the storage directory.
|
|
711
|
-
*/
|
|
712
|
-
export declare function storagePath(path?: string): string;
|
|
713
|
-
/**
|
|
714
|
-
* Returns the path to the `public` directory within the project directory.
|
|
715
|
-
*
|
|
716
|
-
* @param path - The relative path to the file or directory within the public directory.
|
|
717
|
-
* @returns The absolute path to the specified file or directory within the public directory.
|
|
718
|
-
*/
|
|
719
|
-
export declare function publicPath(path?: string): string;
|
|
720
|
-
/**
|
|
721
|
-
* Returns the path to the `push` directory within the `notifications` directory.
|
|
722
|
-
*
|
|
723
|
-
* @param path - The relative path to the file or directory within the push directory.
|
|
724
|
-
* @returns The absolute path to the specified file or directory within the push directory.
|
|
725
|
-
*/
|
|
726
|
-
export declare function pushPath(path?: string): string;
|
|
727
|
-
/**
|
|
728
|
-
* Returns the path to the `query-builder` directory within the core directory.
|
|
729
|
-
*
|
|
730
|
-
* @param path - The relative path to the file or directory within the query-builder directory.
|
|
731
|
-
* @returns The absolute path to the specified file or directory within the query-builder directory.
|
|
732
|
-
*/
|
|
733
|
-
export declare function queryBuilderPath(path?: string): string;
|
|
734
|
-
/**
|
|
735
|
-
* Returns the path to the `queue` directory within the core directory.
|
|
736
|
-
*
|
|
737
|
-
* @param path - The relative path to the file or directory within the queue directory.
|
|
738
|
-
* @returns The absolute path to the specified file or directory within the queue directory.
|
|
739
|
-
*/
|
|
740
|
-
export declare function queuePath(path?: string): string;
|
|
741
|
-
/**
|
|
742
|
-
* Returns the path to the `realtime` directory within the core directory.
|
|
743
|
-
*
|
|
744
|
-
* @param path - The relative path to the file or directory within the realtime directory.
|
|
745
|
-
* @returns The absolute path to the specified file or directory within the realtime directory.
|
|
746
|
-
*/
|
|
747
|
-
export declare function realtimePath(path?: string): string;
|
|
748
|
-
/**
|
|
749
|
-
* Returns the path to the `resources` directory within the project storage directory, with an option for relative paths.
|
|
750
|
-
*
|
|
751
|
-
* @param path - The relative path to the file or directory within the `resources` directory.
|
|
752
|
-
* @param options - Optional. An object containing configuration settings.
|
|
753
|
-
* @param options.relative - If true, returns the path relative to the current working directory.
|
|
754
|
-
* @returns The absolute or relative path to the specified file or directory within the `resources` directory.
|
|
755
|
-
*/
|
|
756
|
-
export declare function resourcesPath(path?: string, options?: { relative?: boolean }): string;
|
|
757
|
-
/**
|
|
758
|
-
* Returns the path to the `repl` directory within the core directory.
|
|
759
|
-
*
|
|
760
|
-
* @param path - The relative path to the file or directory within the repl directory.
|
|
761
|
-
* @returns The absolute path to the specified file or directory within the repl directory.
|
|
762
|
-
*/
|
|
763
|
-
export declare function replPath(path?: string): string;
|
|
764
|
-
/**
|
|
765
|
-
* Returns the path to the `router` directory within the core directory.
|
|
766
|
-
*
|
|
767
|
-
* @param path - The relative path to the file or directory within the router directory.
|
|
768
|
-
* @returns The absolute path to the specified file or directory within the router directory.
|
|
769
|
-
*/
|
|
770
|
-
export declare function routerPath(path?: string): string;
|
|
771
|
-
/**
|
|
772
|
-
* Returns the path to the `routes` directory within the `resources` directory, with an option for relative paths.
|
|
773
|
-
*
|
|
774
|
-
* @param path - The relative path to the file or directory within the `routes` directory.
|
|
775
|
-
* @param options - Optional. An object containing configuration settings.
|
|
776
|
-
* @param options.relative - If true, returns the path relative to the current working directory.
|
|
777
|
-
* @returns The absolute or relative path to the specified file or directory within the `routes` directory.
|
|
778
|
-
*/
|
|
779
|
-
export declare function routesPath(path?: string, options?: { relative?: boolean }): string;
|
|
780
|
-
/**
|
|
781
|
-
* Returns the path to the `search-engine` directory within the core directory.
|
|
782
|
-
*
|
|
783
|
-
* @param path - The relative path to the file or directory within the search-engine directory.
|
|
784
|
-
* @returns The absolute path to the specified file or directory within the search-engine directory.
|
|
785
|
-
*/
|
|
786
|
-
export declare function searchEnginePath(path?: string): string;
|
|
787
|
-
/**
|
|
788
|
-
* Returns the path to the `settings` directory within the project directory, defaulting to the views/dashboard/settings directory.
|
|
789
|
-
*
|
|
790
|
-
* @param path - The relative path to the file or directory within the `settings` directory.
|
|
791
|
-
* @returns The absolute path to the specified file or directory within the `settings` directory.
|
|
792
|
-
*/
|
|
793
|
-
export declare function settingsPath(path?: string): string;
|
|
794
|
-
/**
|
|
795
|
-
* Returns the path to the `scripts` directory within the framework directory.
|
|
796
|
-
*
|
|
797
|
-
* @param path - The relative path to the file or directory within the `scripts` directory.
|
|
798
|
-
* @returns The absolute path to the specified file or directory within the `scripts` directory.
|
|
799
|
-
*/
|
|
800
|
-
export declare function scriptsPath(path?: string): string;
|
|
801
|
-
/**
|
|
802
|
-
* Returns the path to the `scheduler` directory within the core directory.
|
|
803
|
-
*
|
|
804
|
-
* @param path - The relative path to the file or directory within the scheduler directory.
|
|
805
|
-
* @returns The absolute path to the specified file or directory within the scheduler directory.
|
|
806
|
-
*/
|
|
807
|
-
export declare function schedulerPath(path?: string): string;
|
|
808
|
-
/**
|
|
809
|
-
* Returns the path to the `slug` directory within the core directory.
|
|
810
|
-
*
|
|
811
|
-
* @param path - The relative path to the file or directory within the slug directory.
|
|
812
|
-
* @returns The absolute path to the specified file or directory within the slug directory.
|
|
813
|
-
*/
|
|
814
|
-
export declare function slugPath(path?: string): string;
|
|
815
|
-
/**
|
|
816
|
-
* Returns the path to the `sms` directory within the `notifications` directory.
|
|
817
|
-
*
|
|
818
|
-
* @param path - The relative path to the file or directory within the `sms` directory.
|
|
819
|
-
* @returns The absolute path to the specified file or directory within the `sms` directory.
|
|
820
|
-
*/
|
|
821
|
-
export declare function smsPath(path?: string): string;
|
|
822
|
-
/**
|
|
823
|
-
* Returns the path to the `storage` directory within the core directory.
|
|
824
|
-
*
|
|
825
|
-
* @param path - The relative path to the file or directory within the storage directory.
|
|
826
|
-
* @returns The absolute path to the specified file or directory within the storage directory.
|
|
827
|
-
*/
|
|
828
|
-
export declare function coreStoragePath(path?: string): string;
|
|
829
|
-
/**
|
|
830
|
-
* Returns the path to the `stores` directory within the `resources` directory.
|
|
831
|
-
*
|
|
832
|
-
* @param path - The relative path to the file or directory within the `stores` directory.
|
|
833
|
-
* @returns The absolute path to the specified file or directory within the `stores` directory.
|
|
834
|
-
*/
|
|
835
|
-
export declare function storesPath(path?: string): string;
|
|
836
|
-
/**
|
|
837
|
-
* Returns the path to the `security` directory within the core directory.
|
|
838
|
-
*
|
|
839
|
-
* @param path - The relative path to the file or directory within the security directory.
|
|
840
|
-
* @returns The absolute path to the specified file or directory within the security directory.
|
|
841
|
-
*/
|
|
842
|
-
export declare function securityPath(path?: string): string;
|
|
843
|
-
/**
|
|
844
|
-
* Returns the path to the `server` directory within the core directory.
|
|
845
|
-
*
|
|
846
|
-
* @param path - The relative path to the file or directory within the server directory.
|
|
847
|
-
* @returns The absolute path to the specified file or directory within the server directory.
|
|
848
|
-
*/
|
|
849
|
-
export declare function serverPath(path?: string): string;
|
|
850
|
-
export declare function userServerPath(path?: string): string;
|
|
851
|
-
/**
|
|
852
|
-
* Returns the path to the `serverless` directory within the core directory.
|
|
853
|
-
*
|
|
854
|
-
* @param path - The relative path to the file or directory within the `serverless` directory.
|
|
855
|
-
* @returns The absolute path to the specified file or directory within the `serverless` directory.
|
|
856
|
-
*/
|
|
857
|
-
export declare function serverlessPath(path?: string): string;
|
|
858
|
-
/**
|
|
859
|
-
* Returns the path to the specified directory or file within the framework's `src` directory.
|
|
860
|
-
*
|
|
861
|
-
* @param path - The relative path to the file or directory within the framework's `src` directory.
|
|
862
|
-
* @returns The absolute path to the specified file or directory within the framework's `src` directory.
|
|
863
|
-
*/
|
|
864
|
-
export declare function stacksPath(path?: string): string;
|
|
865
|
-
export declare function stacksLockPath(): string;
|
|
866
|
-
export declare function stacksBackupPath(stackName?: string): string;
|
|
867
|
-
/**
|
|
868
|
-
* Returns the path to the `shell` directory within the core directory.
|
|
869
|
-
*
|
|
870
|
-
* @param path - The relative path to the file or directory within the shell directory.
|
|
871
|
-
* @returns The absolute path to the specified file or directory within the shell directory.
|
|
872
|
-
*/
|
|
873
|
-
export declare function shellPath(path?: string): string;
|
|
874
|
-
/**
|
|
875
|
-
* Returns the path to the `strings` directory within the core directory.
|
|
876
|
-
*
|
|
877
|
-
* @param path - The relative path to the file or directory within the `strings` directory.
|
|
878
|
-
* @returns The absolute path to the specified file or directory within the `strings` directory.
|
|
879
|
-
*/
|
|
880
|
-
export declare function stringsPath(path?: string): string;
|
|
881
|
-
/**
|
|
882
|
-
* Returns the path to the `testing` directory within the core directory.
|
|
883
|
-
*
|
|
884
|
-
* @param path - The relative path to the file or directory within the testing directory.
|
|
885
|
-
* @returns The absolute path to the specified file or directory within the testing directory.
|
|
886
|
-
*/
|
|
887
|
-
export declare function testingPath(path?: string): string;
|
|
888
|
-
/**
|
|
889
|
-
* Returns the path to the `tinker` directory within the core directory.
|
|
890
|
-
*
|
|
891
|
-
* @param path - The relative path to the file or directory within the tinker directory.
|
|
892
|
-
* @returns The absolute path to the specified file or directory within the tinker directory.
|
|
893
|
-
*/
|
|
894
|
-
export declare function tinkerPath(path?: string): string;
|
|
895
|
-
/**
|
|
896
|
-
* Returns the path to the `tests` directory within the framework directory.
|
|
897
|
-
*
|
|
898
|
-
* @param path - The relative path to the file or directory within the `tests` directory.
|
|
899
|
-
* @returns The absolute path to the specified file or directory within the `tests` directory.
|
|
900
|
-
*/
|
|
901
|
-
export declare function testsPath(path?: string): string;
|
|
902
|
-
/**
|
|
903
|
-
* Returns the path to the `types` directory within the core directory.
|
|
904
|
-
*
|
|
905
|
-
* @param path - The relative path to the file or directory within the `types` directory.
|
|
906
|
-
* @returns The absolute path to the specified file or directory within the `types` directory.
|
|
907
|
-
*/
|
|
908
|
-
export declare function typesPath(path?: string): string;
|
|
909
|
-
/**
|
|
910
|
-
* Returns the path to the `ui` directory within the core directory.
|
|
911
|
-
*
|
|
912
|
-
* @param path - The relative path to the file or directory within the ui directory.
|
|
913
|
-
* @returns The absolute path to the specified file or directory within the ui directory.
|
|
914
|
-
*/
|
|
915
|
-
export declare function uiPath(path?: string, options?: { relative?: boolean }): string;
|
|
916
|
-
/**
|
|
917
|
-
* Returns the path to the `utils` directory within the core directory.
|
|
918
|
-
*
|
|
919
|
-
* @param path - The relative path to the file or directory within the `utils` directory.
|
|
920
|
-
* @returns The absolute path to the specified file or directory within the `utils` directory.
|
|
921
|
-
*/
|
|
922
|
-
export declare function utilsPath(path?: string): string;
|
|
923
|
-
/**
|
|
924
|
-
* Returns the path to the `validation` directory within the core directory.
|
|
925
|
-
*
|
|
926
|
-
* @param path - The relative path to the file or directory within the validation directory.
|
|
927
|
-
* @returns The absolute path to the specified file or directory within the validation directory.
|
|
928
|
-
*/
|
|
929
|
-
export declare function validationPath(path?: string): string;
|
|
930
|
-
/**
|
|
931
|
-
* Returns the path to the `validation` directory within the core directory.
|
|
932
|
-
*
|
|
933
|
-
* @param path - The relative path to the file or directory within the validation directory.
|
|
934
|
-
* @returns The absolute path to the specified file or directory within the validation directory.
|
|
935
|
-
*/
|
|
936
|
-
export declare function socialsPath(path?: string): string;
|
|
937
|
-
/**
|
|
938
|
-
* Returns the path to the `x-ray` directory within the `stacks` directory of the framework.
|
|
939
|
-
*
|
|
940
|
-
* @param path - The relative path to the file or directory within the x-ray directory.
|
|
941
|
-
* @returns The absolute path to the specified file or directory within the x-ray directory.
|
|
942
|
-
*/
|
|
943
|
-
export declare function xRayPath(path?: string): string;
|
|
944
|
-
/**
|
|
945
|
-
* Returns the path to the home directory, optionally appending a given path.
|
|
946
|
-
*
|
|
947
|
-
* @param path - The relative path to append to the home directory path.
|
|
948
|
-
* @returns The absolute path to the specified file or directory within the home directory.
|
|
949
|
-
*/
|
|
950
|
-
export declare function homeDir(path?: string): string;
|
|
951
|
-
export declare const path: Path;
|
|
952
|
-
export declare interface Path {
|
|
953
|
-
actionsPath: (path?: string) => string
|
|
954
|
-
userActionsPath: (path?: string) => string
|
|
955
|
-
builtUserActionsPath: (path?: string, option?: { relative: boolean }) => string
|
|
956
|
-
userComponentsPath: (path?: string) => string
|
|
957
|
-
userViewsPath: (path?: string) => string
|
|
958
|
-
userFunctionsPath: (path?: string) => string
|
|
959
|
-
aiPath: (path?: string) => string
|
|
960
|
-
assetsPath: (path?: string) => string
|
|
961
|
-
relativeActionsPath: (path?: string) => string
|
|
962
|
-
aliasPath: (path?: string) => string
|
|
963
|
-
analyticsPath: (path?: string) => string
|
|
964
|
-
arraysPath: (path?: string) => string
|
|
965
|
-
appPath: (path?: string) => string
|
|
966
|
-
defaultsAppPath: (path?: string) => string
|
|
967
|
-
defaultsResourcesPath: (path?: string) => string
|
|
968
|
-
authPath: (path?: string) => string
|
|
969
|
-
coreApiPath: (path?: string) => string
|
|
970
|
-
buddyPath: (path?: string) => string
|
|
971
|
-
buildEnginePath: (path?: string) => string
|
|
972
|
-
libsEntriesPath: (path?: string) => string
|
|
973
|
-
buildPath: (path?: string) => string
|
|
974
|
-
cachePath: (path?: string) => string
|
|
975
|
-
chartsPath: (path?: string) => string
|
|
976
|
-
chatPath: (path?: string) => string
|
|
977
|
-
cliPath: (path?: string) => string
|
|
978
|
-
cloudPath: (path?: string) => string
|
|
979
|
-
frameworkCloudPath: (path?: string) => string
|
|
980
|
-
collectionsPath: (path?: string) => string
|
|
981
|
-
commandsPath: (path?: string) => string
|
|
982
|
-
componentsPath: (path?: string) => string
|
|
983
|
-
configPath: (path?: string) => string
|
|
984
|
-
projectConfigPath: (path?: string) => string
|
|
985
|
-
corePath: (path?: string) => string
|
|
986
|
-
customElementsDataPath: (path?: string) => string
|
|
987
|
-
databasePath: (path?: string) => string
|
|
988
|
-
datetimePath: (path?: string) => string
|
|
989
|
-
developmentPath: (path?: string) => string
|
|
990
|
-
desktopPath: (path?: string) => string
|
|
991
|
-
docsPath: (path?: string) => string
|
|
992
|
-
dnsPath: (path?: string) => string
|
|
993
|
-
emailPath: (path?: string) => string
|
|
994
|
-
enumsPath: (path?: string) => string
|
|
995
|
-
eslintPluginPath: (path?: string) => string
|
|
996
|
-
errorHandlingPath: (path?: string) => string
|
|
997
|
-
eventsPath: (path?: string) => string
|
|
998
|
-
coreEnvPath: (path?: string) => string
|
|
999
|
-
healthPath: (path?: string) => string
|
|
1000
|
-
examplesPath: (type?: 'web-components') => string
|
|
1001
|
-
fakerPath: (path?: string) => string
|
|
1002
|
-
frameworkPath: (path?: string) => string
|
|
1003
|
-
browserPath: (path?: string) => string
|
|
1004
|
-
storagePath: (path?: string) => string
|
|
1005
|
-
functionsPath: (path?: string) => string
|
|
1006
|
-
gitPath: (path?: string) => string
|
|
1007
|
-
langPath: (path?: string) => string
|
|
1008
|
-
layoutsPath: (path?: string, options?: { relative?: boolean }) => string
|
|
1009
|
-
libsPath: (path?: string) => string
|
|
1010
|
-
userLibsPath: (path?: string) => string
|
|
1011
|
-
libraryEntryPath: (type: LibraryType) => string
|
|
1012
|
-
lintPath: (path?: string) => string
|
|
1013
|
-
listenersPath: (path?: string) => string
|
|
1014
|
-
loggingPath: (path?: string) => string
|
|
1015
|
-
logsPath: (path?: string) => string
|
|
1016
|
-
jobsPath: (path?: string) => string
|
|
1017
|
-
modulesPath: (path?: string) => string
|
|
1018
|
-
ormPath: (path?: string) => string
|
|
1019
|
-
objectsPath: (path?: string) => string
|
|
1020
|
-
onboardingPath: (path?: string) => string
|
|
1021
|
-
notificationsPath: (path?: string) => string
|
|
1022
|
-
newsletterPath: (path?: string) => string
|
|
1023
|
-
packageJsonPath: (type: LibraryType) => string
|
|
1024
|
-
viewsPath: (path?: string) => string
|
|
1025
|
-
pathPath: (path?: string) => string
|
|
1026
|
-
paymentsPath: (path?: string) => string
|
|
1027
|
-
projectPath: (path?: string) => string
|
|
1028
|
-
findProjectPath: (project: string) => Promise<string>
|
|
1029
|
-
coreStoragePath: (path?: string) => string
|
|
1030
|
-
publicPath: (path?: string) => string
|
|
1031
|
-
pushPath: (path?: string) => string
|
|
1032
|
-
queryBuilderPath: (path?: string) => string
|
|
1033
|
-
queuePath: (path?: string) => string
|
|
1034
|
-
realtimePath: (path?: string) => string
|
|
1035
|
-
resourcesPath: (path?: string) => string
|
|
1036
|
-
replPath: (path?: string) => string
|
|
1037
|
-
routerPath: (path?: string) => string
|
|
1038
|
-
routesPath: (path?: string) => string
|
|
1039
|
-
runtimePath: (path?: string) => string
|
|
1040
|
-
searchEnginePath: (path?: string) => string
|
|
1041
|
-
schedulerPath: (path?: string) => string
|
|
1042
|
-
settingsPath: (path?: string) => string
|
|
1043
|
-
smsPath: (path?: string) => string
|
|
1044
|
-
slugPath: (path?: string) => string
|
|
1045
|
-
scriptsPath: (path?: string) => string
|
|
1046
|
-
securityPath: (path?: string) => string
|
|
1047
|
-
serverPath: (path?: string) => string
|
|
1048
|
-
userServerPath: (path?: string) => string
|
|
1049
|
-
serverlessPath: (path?: string) => string
|
|
1050
|
-
stacksPath: (path?: string) => string
|
|
1051
|
-
stacksLockPath: () => string
|
|
1052
|
-
stacksBackupPath: (stackName?: string) => string
|
|
1053
|
-
stringsPath: (path?: string) => string
|
|
1054
|
-
shellPath: (path?: string) => string
|
|
1055
|
-
storesPath: (path?: string) => string
|
|
1056
|
-
socialsPath: (path?: string) => string
|
|
1057
|
-
testingPath: (path?: string) => string
|
|
1058
|
-
testsPath: (path?: string) => string
|
|
1059
|
-
tinkerPath: (path?: string) => string
|
|
1060
|
-
typesPath: (path?: string) => string
|
|
1061
|
-
uiPath: (path?: string, options?: { relative?: boolean }) => string
|
|
1062
|
-
userDatabasePath: (path?: string) => string
|
|
1063
|
-
userMigrationsPath: (path?: string) => string
|
|
1064
|
-
userEventsPath: (path?: string) => string
|
|
1065
|
-
userJobsPath: (path?: string) => string
|
|
1066
|
-
userControllersPath: (path?: string) => string
|
|
1067
|
-
userListenersPath: (path?: string) => string
|
|
1068
|
-
userMiddlewarePath: (path?: string) => string
|
|
1069
|
-
userModelsPath: (path?: string) => string
|
|
1070
|
-
userNotificationsPath: (path?: string) => string
|
|
1071
|
-
userMailPath: (path?: string) => string
|
|
1072
|
-
userEmailsPath: (path?: string) => string
|
|
1073
|
-
utilsPath: (path?: string) => string
|
|
1074
|
-
validationPath: (path?: string) => string
|
|
1075
|
-
xRayPath: (path?: string) => string
|
|
1076
|
-
homeDir: (path?: string) => string
|
|
1077
|
-
basename: (path: string) => string
|
|
1078
|
-
delimiter: () => ';' | ':'
|
|
1079
|
-
dirname: (path: string) => string
|
|
1080
|
-
extname: (path: string) => string
|
|
1081
|
-
isAbsolute: (path: string) => boolean
|
|
1082
|
-
join: (...paths: string[]) => string
|
|
1083
|
-
normalize: (path: string) => string
|
|
1084
|
-
relative: (from: string, to: string) => string
|
|
1085
|
-
resolve: (...paths: string[]) => string
|
|
1086
|
-
parse: (path: string) => ParsedPath
|
|
1087
|
-
sep: () => '/' | '\\'
|
|
1088
|
-
toNamespacedPath: (path: string) => string
|
|
1089
|
-
}
|
|
1090
|
-
/**
|
|
1091
|
-
* Returns the path to the library entry file, filtered by library type.
|
|
1092
|
-
*
|
|
1093
|
-
* @param type - The type of library ('web-components', or 'functions').
|
|
1094
|
-
* @returns The absolute path to the specified library entry file.
|
|
1095
|
-
*/
|
|
1096
|
-
export type LibraryType = 'web-components' | 'functions';
|
|
1097
|
-
export { basename, delimiter, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep, toNamespacedPath };
|