@guren/server 0.1.1-alpha.0

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.
@@ -0,0 +1,31 @@
1
+ interface GurenVitePluginOptions {
2
+ /** Alias for the application directory (defaults to `@`). */
3
+ appAlias?: string;
4
+ /** Relative path to the application directory (defaults to `app`). */
5
+ appDir?: string;
6
+ /** Alias for the frontend resources directory (defaults to `@resources`). */
7
+ resourcesAlias?: string;
8
+ /** Relative path to the frontend resources directory (defaults to `resources/js`). */
9
+ resourcesDir?: string;
10
+ /** Path to the primary frontend entry file (defaults to `resources/js/app.tsx`). */
11
+ entry?: string;
12
+ /** Output directory for compiled assets (defaults to `public/assets`). */
13
+ outDir?: string;
14
+ /** Default dev server port (defaults to 5173). */
15
+ devPort?: number;
16
+ /** Default preview server port (defaults to 4173). */
17
+ previewPort?: number;
18
+ /** Rollup naming pattern for entry chunks (defaults to `[name]-[hash].js`). */
19
+ entryFileNames?: string;
20
+ /** Rollup naming pattern for dynamic chunks (defaults to `[name]-[hash].js`). */
21
+ chunkFileNames?: string;
22
+ /** Rollup naming pattern for extracted assets (defaults to `[name]-[hash][extname]`). */
23
+ assetFileNames?: string;
24
+ }
25
+ declare function gurenVitePlugin(options?: GurenVitePluginOptions): {
26
+ name: string;
27
+ enforce: "pre";
28
+ config(config: Record<string, any>, _env: Record<string, any>): void;
29
+ };
30
+
31
+ export { type GurenVitePluginOptions, gurenVitePlugin as default, gurenVitePlugin };
@@ -0,0 +1,7 @@
1
+ import {
2
+ gurenVitePlugin
3
+ } from "../chunk-GDCUIM6V.js";
4
+ export {
5
+ gurenVitePlugin as default,
6
+ gurenVitePlugin
7
+ };
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@guren/server",
3
+ "version": "0.1.1-alpha.0",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/gurenjs/guren",
9
+ "directory": "packages/server"
10
+ },
11
+ "homepage": "https://github.com/gurenjs/guren#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/gurenjs/guren/issues"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "main": "dist/index.js",
22
+ "types": "dist/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "default": "./dist/index.js"
27
+ },
28
+ "./vite": {
29
+ "types": "./dist/vite/index.d.ts",
30
+ "default": "./dist/vite/index.js"
31
+ }
32
+ },
33
+ "scripts": {
34
+ "build": "tsup",
35
+ "dev": "bun --watch src/index.ts",
36
+ "typecheck": "tsc --noEmit",
37
+ "test": "bun test"
38
+ },
39
+ "dependencies": {
40
+ "@guren/inertia-client": "workspace:*",
41
+ "hono": "^4.4.0"
42
+ },
43
+ "devDependencies": {
44
+ "@types/node": "^20.14.10",
45
+ "vite": "^7.0.0",
46
+ "tsup": "^8.5.0",
47
+ "typescript": "^5.4.0"
48
+ }
49
+ }