alepha 0.11.9 → 0.11.10
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/README.md +55 -17
- package/dist/index.cjs +15805 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15804 -0
- package/dist/index.js.map +1 -0
- package/package.json +36 -365
- package/src/assets/biomeJson.ts +33 -0
- package/src/assets/tsconfigJson.ts +17 -0
- package/src/assets/viteConfigTs.ts +14 -0
- package/src/commands/BiomeCommands.ts +60 -0
- package/src/commands/CoreCommands.ts +266 -0
- package/src/commands/DrizzleCommands.ts +403 -0
- package/src/commands/VerifyCommands.ts +48 -0
- package/src/commands/ViteCommands.ts +152 -0
- package/src/index.ts +35 -0
- package/src/services/ProcessRunner.ts +89 -0
- package/src/version.ts +7 -0
- package/api/files.cjs +0 -8
- package/api/files.d.ts +0 -438
- package/api/files.js +0 -1
- package/api/jobs.cjs +0 -8
- package/api/jobs.d.ts +0 -327
- package/api/jobs.js +0 -1
- package/api/notifications.cjs +0 -8
- package/api/notifications.d.ts +0 -263
- package/api/notifications.js +0 -1
- package/api/users.cjs +0 -8
- package/api/users.d.ts +0 -923
- package/api/users.js +0 -1
- package/api/verifications.cjs +0 -8
- package/api/verifications.d.ts +0 -1
- package/api/verifications.js +0 -1
- package/batch.cjs +0 -8
- package/batch.d.ts +0 -154
- package/batch.js +0 -1
- package/bucket.cjs +0 -8
- package/bucket.d.ts +0 -520
- package/bucket.js +0 -1
- package/cache/redis.cjs +0 -8
- package/cache/redis.d.ts +0 -40
- package/cache/redis.js +0 -1
- package/cache.cjs +0 -8
- package/cache.d.ts +0 -288
- package/cache.js +0 -1
- package/command.cjs +0 -8
- package/command.d.ts +0 -269
- package/command.js +0 -1
- package/core.cjs +0 -8
- package/core.d.ts +0 -1904
- package/core.js +0 -1
- package/datetime.cjs +0 -8
- package/datetime.d.ts +0 -144
- package/datetime.js +0 -1
- package/devtools.cjs +0 -8
- package/devtools.d.ts +0 -252
- package/devtools.js +0 -1
- package/email.cjs +0 -8
- package/email.d.ts +0 -187
- package/email.js +0 -1
- package/fake.cjs +0 -8
- package/fake.d.ts +0 -73
- package/fake.js +0 -1
- package/file.cjs +0 -8
- package/file.d.ts +0 -528
- package/file.js +0 -1
- package/lock/redis.cjs +0 -8
- package/lock/redis.d.ts +0 -24
- package/lock/redis.js +0 -1
- package/lock.cjs +0 -8
- package/lock.d.ts +0 -552
- package/lock.js +0 -1
- package/logger.cjs +0 -8
- package/logger.d.ts +0 -287
- package/logger.js +0 -1
- package/postgres.cjs +0 -8
- package/postgres.d.ts +0 -2143
- package/postgres.js +0 -1
- package/queue/redis.cjs +0 -8
- package/queue/redis.d.ts +0 -29
- package/queue/redis.js +0 -1
- package/queue.cjs +0 -8
- package/queue.d.ts +0 -760
- package/queue.js +0 -1
- package/react/auth.cjs +0 -8
- package/react/auth.d.ts +0 -504
- package/react/auth.js +0 -1
- package/react/form.cjs +0 -8
- package/react/form.d.ts +0 -211
- package/react/form.js +0 -1
- package/react/head.cjs +0 -8
- package/react/head.d.ts +0 -120
- package/react/head.js +0 -1
- package/react/i18n.cjs +0 -8
- package/react/i18n.d.ts +0 -168
- package/react/i18n.js +0 -1
- package/react.cjs +0 -8
- package/react.d.ts +0 -1263
- package/react.js +0 -1
- package/redis.cjs +0 -8
- package/redis.d.ts +0 -82
- package/redis.js +0 -1
- package/retry.cjs +0 -8
- package/retry.d.ts +0 -162
- package/retry.js +0 -1
- package/router.cjs +0 -8
- package/router.d.ts +0 -45
- package/router.js +0 -1
- package/scheduler.cjs +0 -8
- package/scheduler.d.ts +0 -145
- package/scheduler.js +0 -1
- package/security.cjs +0 -8
- package/security.d.ts +0 -586
- package/security.js +0 -1
- package/server/cache.cjs +0 -8
- package/server/cache.d.ts +0 -163
- package/server/cache.js +0 -1
- package/server/compress.cjs +0 -8
- package/server/compress.d.ts +0 -38
- package/server/compress.js +0 -1
- package/server/cookies.cjs +0 -8
- package/server/cookies.d.ts +0 -144
- package/server/cookies.js +0 -1
- package/server/cors.cjs +0 -8
- package/server/cors.d.ts +0 -45
- package/server/cors.js +0 -1
- package/server/health.cjs +0 -8
- package/server/health.d.ts +0 -58
- package/server/health.js +0 -1
- package/server/helmet.cjs +0 -8
- package/server/helmet.d.ts +0 -98
- package/server/helmet.js +0 -1
- package/server/links.cjs +0 -8
- package/server/links.d.ts +0 -322
- package/server/links.js +0 -1
- package/server/metrics.cjs +0 -8
- package/server/metrics.d.ts +0 -35
- package/server/metrics.js +0 -1
- package/server/multipart.cjs +0 -8
- package/server/multipart.d.ts +0 -42
- package/server/multipart.js +0 -1
- package/server/proxy.cjs +0 -8
- package/server/proxy.d.ts +0 -234
- package/server/proxy.js +0 -1
- package/server/security.cjs +0 -8
- package/server/security.d.ts +0 -92
- package/server/security.js +0 -1
- package/server/static.cjs +0 -8
- package/server/static.d.ts +0 -119
- package/server/static.js +0 -1
- package/server/swagger.cjs +0 -8
- package/server/swagger.d.ts +0 -161
- package/server/swagger.js +0 -1
- package/server.cjs +0 -8
- package/server.d.ts +0 -849
- package/server.js +0 -1
- package/topic/redis.cjs +0 -8
- package/topic/redis.d.ts +0 -42
- package/topic/redis.js +0 -1
- package/topic.cjs +0 -8
- package/topic.d.ts +0 -819
- package/topic.js +0 -1
- package/vite.cjs +0 -8
- package/vite.d.ts +0 -186
- package/vite.js +0 -1
package/topic.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@alepha/topic'
|
package/vite.cjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var m = require('@alepha/vite');
|
|
3
|
-
Object.keys(m).forEach(function (k) {
|
|
4
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
5
|
-
enumerable: true,
|
|
6
|
-
get: function () { return m[k]; }
|
|
7
|
-
});
|
|
8
|
-
});
|
package/vite.d.ts
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { Options } from "@vitejs/plugin-react";
|
|
2
|
-
import { Alepha } from "alepha";
|
|
3
|
-
import { BrotliOptions, ZlibOptions } from "node:zlib";
|
|
4
|
-
import { Plugin, UserConfig, defineConfig } from "vite";
|
|
5
|
-
|
|
6
|
-
//#region src/viteCompress.d.ts
|
|
7
|
-
interface ViteCompressOptions {
|
|
8
|
-
/**
|
|
9
|
-
* If true, the plugin will not compress the files.
|
|
10
|
-
*
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* If true, the plugin will compress the files using brotli.
|
|
16
|
-
* Can also be an object with brotli options.
|
|
17
|
-
*
|
|
18
|
-
* @default true
|
|
19
|
-
*/
|
|
20
|
-
brotli?: boolean | BrotliOptions;
|
|
21
|
-
/**
|
|
22
|
-
* If true, the plugin will compress the files using gzip.
|
|
23
|
-
* Can also be an object with gzip options.
|
|
24
|
-
*
|
|
25
|
-
* @default true
|
|
26
|
-
*/
|
|
27
|
-
gzip?: boolean | ZlibOptions;
|
|
28
|
-
/**
|
|
29
|
-
* A filter to determine which files to compress.
|
|
30
|
-
* Can be a RegExp or a function that returns true for files to compress.
|
|
31
|
-
*
|
|
32
|
-
* @default /\.(js|mjs|cjs|css|wasm|svg|html)$/
|
|
33
|
-
*/
|
|
34
|
-
filter?: RegExp | ((fileName: string) => boolean);
|
|
35
|
-
}
|
|
36
|
-
declare function viteCompress(options?: ViteCompressOptions): Plugin;
|
|
37
|
-
declare function compressFile(options: ViteCompressOptions | undefined, filePath: string): Promise<void>;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/helpers/buildClient.d.ts
|
|
40
|
-
interface BuildClientOptions {
|
|
41
|
-
dist: string;
|
|
42
|
-
/**
|
|
43
|
-
* If true, precompress assets using gzip and brotli compression.
|
|
44
|
-
*
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
precompress?: ViteCompressOptions | boolean;
|
|
48
|
-
/**
|
|
49
|
-
* If true, prerender all static routes found in the $pages directory.
|
|
50
|
-
*
|
|
51
|
-
* @default false
|
|
52
|
-
*/
|
|
53
|
-
prerender?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Build a sitemap.xml file based on the $pages routes.
|
|
56
|
-
*/
|
|
57
|
-
sitemap?: {
|
|
58
|
-
hostname: string;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Override Vite config options.
|
|
62
|
-
*/
|
|
63
|
-
config?: UserConfig;
|
|
64
|
-
/**
|
|
65
|
-
* If true, generate build stats report.
|
|
66
|
-
*/
|
|
67
|
-
stats?: boolean;
|
|
68
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/viteAlephaBuildDocker.d.ts
|
|
71
|
-
interface ViteAlephaBuildDockerOptions {
|
|
72
|
-
/**
|
|
73
|
-
* The directory where the build output will be placed.
|
|
74
|
-
*
|
|
75
|
-
* @default "dist"
|
|
76
|
-
*/
|
|
77
|
-
distDir?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Image name to use in the Dockerfile.
|
|
80
|
-
* If not provided, it will default to `node:24-alpine`.
|
|
81
|
-
*/
|
|
82
|
-
image?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Command to run in the Docker container.
|
|
85
|
-
* If not provided, it will default to `node`.
|
|
86
|
-
*/
|
|
87
|
-
command?: string;
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region src/viteAlephaBuildVercel.d.ts
|
|
91
|
-
interface ViteAlephaBuildVercelOptions {
|
|
92
|
-
/**
|
|
93
|
-
* The directory where the build output will be placed.
|
|
94
|
-
*
|
|
95
|
-
* @default "dist"
|
|
96
|
-
*/
|
|
97
|
-
distDir?: string;
|
|
98
|
-
/**
|
|
99
|
-
* The name of the client directory.
|
|
100
|
-
*
|
|
101
|
-
* @default "public"
|
|
102
|
-
*/
|
|
103
|
-
clientDir?: string;
|
|
104
|
-
config?: VercelConfig;
|
|
105
|
-
}
|
|
106
|
-
interface VercelConfig {
|
|
107
|
-
projectName?: string;
|
|
108
|
-
orgId?: string;
|
|
109
|
-
projectId?: string;
|
|
110
|
-
config?: Record<string, any> & {
|
|
111
|
-
crons?: Array<{
|
|
112
|
-
path: string;
|
|
113
|
-
schedule: string;
|
|
114
|
-
}>;
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
declare function viteAlephaBuildVercel(opts?: ViteAlephaBuildVercelOptions): Promise<{
|
|
118
|
-
name: string;
|
|
119
|
-
apply: string;
|
|
120
|
-
writeBundle(): void;
|
|
121
|
-
}>;
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region src/viteAlephaBuild.d.ts
|
|
124
|
-
interface ViteAlephaBuildOptions {
|
|
125
|
-
/**
|
|
126
|
-
* Path to the entry file for the server build.
|
|
127
|
-
* If empty, SSR build will be skipped.
|
|
128
|
-
*/
|
|
129
|
-
serverEntry?: string | false;
|
|
130
|
-
/**
|
|
131
|
-
* Set false to skip the client build.
|
|
132
|
-
* This is useful if you only want to build the server-side application.
|
|
133
|
-
*/
|
|
134
|
-
client?: false | Partial<BuildClientOptions>;
|
|
135
|
-
/**
|
|
136
|
-
* If true, the build will be optimized for Vercel deployment.
|
|
137
|
-
*
|
|
138
|
-
* If `VERCEL_PROJECT_ID` and `VERCEL_ORG_ID` environment variables are set, .vercel will be generated with the correct configuration.
|
|
139
|
-
*
|
|
140
|
-
* @default false
|
|
141
|
-
*/
|
|
142
|
-
vercel?: boolean | VercelConfig;
|
|
143
|
-
/**
|
|
144
|
-
* If true, the build will be optimized for Docker deployment.
|
|
145
|
-
* Additionally, it will generate a Dockerfile in the dist directory.
|
|
146
|
-
*/
|
|
147
|
-
docker?: boolean | ViteAlephaBuildDockerOptions;
|
|
148
|
-
/**
|
|
149
|
-
* If true, build statistics will be printed after the build completes.
|
|
150
|
-
*/
|
|
151
|
-
stats?: boolean;
|
|
152
|
-
}
|
|
153
|
-
declare function viteAlephaBuild(options?: ViteAlephaBuildOptions): Promise<Plugin>;
|
|
154
|
-
//#endregion
|
|
155
|
-
//#region src/viteAlephaDev.d.ts
|
|
156
|
-
interface ViteAlephaDevOptions {
|
|
157
|
-
/**
|
|
158
|
-
* Path to the entry file for the server build.
|
|
159
|
-
* If empty, plugin will be disabled.
|
|
160
|
-
*/
|
|
161
|
-
serverEntry?: string | false;
|
|
162
|
-
/**
|
|
163
|
-
* If true, enables debug logging.
|
|
164
|
-
*
|
|
165
|
-
* @default false
|
|
166
|
-
*/
|
|
167
|
-
debug?: boolean;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Plug Alepha into Vite development server.
|
|
171
|
-
*/
|
|
172
|
-
declare function viteAlephaDev(options?: ViteAlephaDevOptions): Promise<Plugin>;
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/viteAlepha.d.ts
|
|
175
|
-
type ViteAlephaOptions = ViteAlephaDevOptions & ViteAlephaBuildOptions & {
|
|
176
|
-
react?: false | Options;
|
|
177
|
-
};
|
|
178
|
-
declare function viteAlepha(options?: ViteAlephaOptions): (Plugin | Promise<Plugin>)[];
|
|
179
|
-
//#endregion
|
|
180
|
-
//#region src/index.d.ts
|
|
181
|
-
declare global {
|
|
182
|
-
var __alepha: Alepha;
|
|
183
|
-
}
|
|
184
|
-
//#endregion
|
|
185
|
-
export { VercelConfig, ViteAlephaBuildOptions, ViteAlephaBuildVercelOptions, ViteAlephaDevOptions, ViteAlephaOptions, ViteCompressOptions, compressFile, defineConfig, viteAlepha, viteAlephaBuild, viteAlephaBuildVercel, viteAlephaDev, viteCompress };
|
|
186
|
-
//# sourceMappingURL=index.d.ts.map
|
package/vite.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@alepha/vite'
|