frontend-hamroun 1.2.24 → 1.2.26
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 +3 -0
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
- package/templates/fullstack-app/api/hello.js +11 -0
- package/templates/fullstack-app/index.html +13 -0
- package/templates/fullstack-app/package-lock.json +3130 -0
- package/templates/fullstack-app/package.json +8 -19
- package/templates/fullstack-app/server.js +210 -0
- package/templates/fullstack-app/server.ts +70 -31
- package/templates/fullstack-app/src/client.js +20 -0
- package/templates/fullstack-app/src/main.tsx +9 -0
- package/templates/fullstack-app/src/pages/index.tsx +40 -36
- package/templates/fullstack-app/vite.config.js +40 -0
- package/templates/ssr-template/package-lock.json +95 -1161
- package/templates/ssr-template/package.json +6 -4
- package/templates/ssr-template/readme.md +112 -37
- package/templates/ssr-template/server.js +364 -549
- package/templates/ssr-template/server.ts +166 -14
- package/templates/ssr-template/tsconfig.json +2 -3
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
@@ -8,5 +8,10 @@ export type { Context } from './context';
|
|
8
8
|
export type { VNode } from './types';
|
9
9
|
export type { Server, ServerConfig, User, DbConfig, MiddlewareFunction } from './server-types';
|
10
10
|
export declare const server: {
|
11
|
-
getServer(): Promise<
|
11
|
+
getServer(): Promise<typeof import("./server/index.js")>;
|
12
12
|
};
|
13
|
+
export { Database } from './server/database.js';
|
14
|
+
export { AuthService } from './server/auth.js';
|
15
|
+
export { ApiRouter } from './server/api-router.js';
|
16
|
+
export { requestLogger, errorHandler, notFoundHandler, rateLimit } from './server/middleware.js';
|
17
|
+
export { Server as serverModule } from './server/index.js';
|
package/package.json
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>Frontend Hamroun App</title>
|
7
|
+
<script src="https://cdn.tailwindcss.com"></script>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<div id="root"></div>
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
12
|
+
</body>
|
13
|
+
</html>
|