alepha 0.11.2 → 0.11.4
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/api/files.d.ts +1 -439
- package/api/jobs.d.ts +1 -218
- package/api/notifications.d.ts +1 -264
- package/api/users.d.ts +1 -924
- package/batch.d.ts +1 -585
- package/bucket.d.ts +1 -507
- package/cache/redis.d.ts +1 -40
- package/cache.d.ts +1 -288
- package/command.d.ts +1 -238
- package/core.d.ts +1 -1563
- package/datetime.d.ts +5 -3
- package/devtools.d.ts +1 -368
- package/email.d.ts +1 -144
- package/fake.cjs +8 -0
- package/fake.d.ts +1 -0
- package/fake.js +1 -0
- package/file.d.ts +1 -53
- package/lock/redis.d.ts +1 -24
- package/lock.d.ts +1 -552
- package/logger.d.ts +1 -284
- package/package.json +57 -50
- package/postgres.d.ts +1 -1931
- package/queue/redis.d.ts +1 -29
- package/queue.d.ts +1 -760
- package/react/auth.d.ts +1 -499
- package/react/form.d.ts +1 -188
- package/react/head.d.ts +1 -120
- package/react/i18n.d.ts +1 -118
- package/react.d.ts +1 -929
- package/redis.d.ts +1 -82
- package/scheduler.d.ts +1 -145
- package/security.d.ts +1 -586
- package/server/cache.d.ts +1 -163
- package/server/compress.d.ts +1 -32
- package/server/cookies.d.ts +1 -144
- package/server/cors.d.ts +1 -27
- package/server/health.d.ts +1 -59
- package/server/helmet.d.ts +1 -69
- package/server/links.d.ts +1 -316
- package/server/metrics.d.ts +1 -35
- package/server/multipart.d.ts +1 -42
- package/server/proxy.d.ts +1 -234
- package/server/security.d.ts +1 -87
- package/server/static.d.ts +1 -119
- package/server/swagger.d.ts +1 -148
- package/server.d.ts +1 -849
- package/topic/redis.d.ts +1 -42
- package/topic.d.ts +1 -819
- package/ui.d.ts +1 -619
- package/vite.d.ts +1 -197
package/vite.d.ts
CHANGED
|
@@ -1,197 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Options } from "@vitejs/plugin-react";
|
|
3
|
-
import { BrotliOptions, ZlibOptions } from "node:zlib";
|
|
4
|
-
import { Plugin, UserConfig } from "vite";
|
|
5
|
-
|
|
6
|
-
//#region src/helpers/getEntryFiles.d.ts
|
|
7
|
-
declare const getClientEntry: (root?: string) => Promise<string | undefined>;
|
|
8
|
-
declare const getServerEntry: (root?: string) => Promise<string>;
|
|
9
|
-
declare function extractFirstModuleScriptSrc(html: string): string;
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/viteCompress.d.ts
|
|
12
|
-
interface ViteCompressOptions {
|
|
13
|
-
/**
|
|
14
|
-
* If true, the plugin will not compress the files.
|
|
15
|
-
*
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* If true, the plugin will compress the files using brotli.
|
|
21
|
-
* Can also be an object with brotli options.
|
|
22
|
-
*
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
brotli?: boolean | BrotliOptions;
|
|
26
|
-
/**
|
|
27
|
-
* If true, the plugin will compress the files using gzip.
|
|
28
|
-
* Can also be an object with gzip options.
|
|
29
|
-
*
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
gzip?: boolean | ZlibOptions;
|
|
33
|
-
/**
|
|
34
|
-
* A filter to determine which files to compress.
|
|
35
|
-
* Can be a RegExp or a function that returns true for files to compress.
|
|
36
|
-
*
|
|
37
|
-
* @default /\.(js|mjs|cjs|css|wasm|svg|html)$/
|
|
38
|
-
*/
|
|
39
|
-
filter?: RegExp | ((fileName: string) => boolean);
|
|
40
|
-
}
|
|
41
|
-
declare function viteCompress(options?: ViteCompressOptions): Plugin;
|
|
42
|
-
declare function compressFile(options: ViteCompressOptions | undefined, filePath: string): Promise<void>;
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/helpers/buildClient.d.ts
|
|
45
|
-
interface BuildClientOptions {
|
|
46
|
-
dist: string;
|
|
47
|
-
html: string;
|
|
48
|
-
/**
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
precompress?: ViteCompressOptions | boolean;
|
|
52
|
-
/**
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
prerender?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Build a sitemap.xml file based on the $pages routes.
|
|
58
|
-
*/
|
|
59
|
-
sitemap?: {
|
|
60
|
-
hostname: string;
|
|
61
|
-
};
|
|
62
|
-
config?: UserConfig;
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/viteAlephaBuildDocker.d.ts
|
|
66
|
-
interface ViteAlephaBuildDockerOptions {
|
|
67
|
-
/**
|
|
68
|
-
* The directory where the build output will be placed.
|
|
69
|
-
*
|
|
70
|
-
* @default "dist"
|
|
71
|
-
*/
|
|
72
|
-
distDir?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Image name to use in the Dockerfile.
|
|
75
|
-
* If not provided, it will default to `node:24-alpine`.
|
|
76
|
-
*/
|
|
77
|
-
image?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Command to run in the Docker container.
|
|
80
|
-
* If not provided, it will default to `node`.
|
|
81
|
-
*/
|
|
82
|
-
command?: string;
|
|
83
|
-
}
|
|
84
|
-
//#endregion
|
|
85
|
-
//#region src/viteAlephaBuildVercel.d.ts
|
|
86
|
-
interface ViteAlephaBuildVercelOptions {
|
|
87
|
-
/**
|
|
88
|
-
* The directory where the build output will be placed.
|
|
89
|
-
*
|
|
90
|
-
* @default "dist"
|
|
91
|
-
*/
|
|
92
|
-
distDir?: string;
|
|
93
|
-
/**
|
|
94
|
-
* The name of the client directory.
|
|
95
|
-
*
|
|
96
|
-
* @default "public"
|
|
97
|
-
*/
|
|
98
|
-
clientDir?: string;
|
|
99
|
-
config?: VercelConfig;
|
|
100
|
-
}
|
|
101
|
-
interface VercelConfig {
|
|
102
|
-
projectName?: string;
|
|
103
|
-
orgId?: string;
|
|
104
|
-
projectId?: string;
|
|
105
|
-
config?: Record<string, any> & {
|
|
106
|
-
crons?: Array<{
|
|
107
|
-
path: string;
|
|
108
|
-
schedule: string;
|
|
109
|
-
}>;
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
declare function viteAlephaBuildVercel(opts?: ViteAlephaBuildVercelOptions): Promise<{
|
|
113
|
-
name: string;
|
|
114
|
-
apply: string;
|
|
115
|
-
writeBundle(): void;
|
|
116
|
-
}>;
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/viteAlephaBuild.d.ts
|
|
119
|
-
interface ViteAlephaBuildOptions {
|
|
120
|
-
/**
|
|
121
|
-
* Path to the entry file for the server build.
|
|
122
|
-
* If empty, SSR build will be skipped.
|
|
123
|
-
*/
|
|
124
|
-
serverEntry?: string;
|
|
125
|
-
/**
|
|
126
|
-
* Set false to skip the client build.
|
|
127
|
-
* This is useful if you only want to build the server-side application.
|
|
128
|
-
*/
|
|
129
|
-
client?: false | Partial<BuildClientOptions>;
|
|
130
|
-
/**
|
|
131
|
-
* If true, the build will be optimized for Vercel deployment.
|
|
132
|
-
*
|
|
133
|
-
* If `VERCEL_PROJECT_ID` and `VERCEL_ORG_ID` environment variables are set, .vercel will be generated with the correct configuration.
|
|
134
|
-
*
|
|
135
|
-
* @default false
|
|
136
|
-
*/
|
|
137
|
-
vercel?: boolean | VercelConfig;
|
|
138
|
-
/**
|
|
139
|
-
* If true, the build will be optimized for Docker deployment.
|
|
140
|
-
* Additionally, it will generate a Dockerfile in the dist directory.
|
|
141
|
-
*/
|
|
142
|
-
docker?: boolean | ViteAlephaBuildDockerOptions;
|
|
143
|
-
}
|
|
144
|
-
declare function viteAlephaBuild(options?: ViteAlephaBuildOptions): Promise<Plugin>;
|
|
145
|
-
//#endregion
|
|
146
|
-
//#region src/viteAlephaDev.d.ts
|
|
147
|
-
interface ViteAlephaDevOptions {
|
|
148
|
-
/**
|
|
149
|
-
* Path to the entry file for the server build.
|
|
150
|
-
* If empty, plugin will be disabled.
|
|
151
|
-
*/
|
|
152
|
-
serverEntry?: string;
|
|
153
|
-
/**
|
|
154
|
-
* If true, enables debug logging.
|
|
155
|
-
*
|
|
156
|
-
* @default false
|
|
157
|
-
*/
|
|
158
|
-
debug?: boolean;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Plug Alepha into Vite development server.
|
|
162
|
-
*/
|
|
163
|
-
declare function viteAlephaDev(options?: ViteAlephaDevOptions): Promise<Plugin>;
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region src/viteAlepha.d.ts
|
|
166
|
-
type ViteAlephaOptions = ViteAlephaDevOptions & ViteAlephaBuildOptions & {
|
|
167
|
-
react?: false | Options;
|
|
168
|
-
};
|
|
169
|
-
declare function viteAlepha(options?: ViteAlephaOptions): (Plugin | Promise<Plugin>)[];
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region src/index.d.ts
|
|
172
|
-
declare global {
|
|
173
|
-
var __alepha: Alepha;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Plugin vite for Alepha framework.
|
|
177
|
-
*
|
|
178
|
-
* This module provides Vite plugins and configurations to integrate Alepha applications with Vite's build and development processes.
|
|
179
|
-
*
|
|
180
|
-
* @example
|
|
181
|
-
* ```ts
|
|
182
|
-
* import { defineConfig } from "vite";
|
|
183
|
-
* import { viteAlepha } from "alepha/vite";
|
|
184
|
-
*
|
|
185
|
-
* export default defineConfig({
|
|
186
|
-
* plugins: [viteAlepha()],
|
|
187
|
-
* // other Vite configurations...
|
|
188
|
-
* });
|
|
189
|
-
* ```
|
|
190
|
-
*
|
|
191
|
-
* @module alepha.vite
|
|
192
|
-
*/
|
|
193
|
-
//# sourceMappingURL=index.d.ts.map
|
|
194
|
-
|
|
195
|
-
//#endregion
|
|
196
|
-
export { VercelConfig, ViteAlephaBuildOptions, ViteAlephaBuildVercelOptions, ViteAlephaDevOptions, ViteAlephaOptions, ViteCompressOptions, compressFile, extractFirstModuleScriptSrc, getClientEntry, getServerEntry, viteAlepha, viteAlephaBuild, viteAlephaBuildVercel, viteAlephaDev, viteCompress };
|
|
197
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from '@alepha/vite';
|