kilatjs 0.1.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,17 @@
1
+ import { KilatConfig } from "../core/types";
2
+ export declare class KilatServer {
3
+ private router;
4
+ private config;
5
+ constructor(config: KilatConfig);
6
+ start(): Promise<Bun.Server<undefined>>;
7
+ buildStatic(): Promise<void>;
8
+ /**
9
+ * Generate a production server file that uses Bun's FileSystemRouter
10
+ */
11
+ private generateProductionServer;
12
+ private formatSize;
13
+ private runTailwind;
14
+ private copyStaticAssets;
15
+ private copyDir;
16
+ private ensureDir;
17
+ }
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "kilatjs",
3
+ "version": "0.1.0",
4
+ "description": "A Bun-native, HTML-first framework that renders real pages, treats UI frameworks as renderers, and makes SEO the default.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "module": "dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist/**/*",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "scripts": {
21
+ "build": "bun run build:lib && bun run build:types",
22
+ "build:lib": "bun build ./src/index.ts --outdir ./dist --external react --external react-dom --external fs --external path --external bun",
23
+ "build:types": "tsc --declaration --emitDeclarationOnly --outDir ./dist",
24
+ "build:example": "cd example && bun run ../src/cli.ts build",
25
+ "start": "cd example && bun run ../src/cli.ts dev --production",
26
+ "dev": "cd example && bun --watch run ../src/cli.ts dev",
27
+ "test": "bun test",
28
+ "typecheck": "tsc --noEmit",
29
+ "prepublishOnly": "bun run build"
30
+ },
31
+ "keywords": [
32
+ "bun",
33
+ "html",
34
+ "ssr",
35
+ "static",
36
+ "framework",
37
+ "seo",
38
+ "server-first",
39
+ "react",
40
+ "kilatjs",
41
+ "html-first",
42
+ "bun-native"
43
+ ],
44
+ "author": "KilatJS Team",
45
+ "license": "MIT",
46
+ "dependencies": {
47
+ "react": "^18.2.0",
48
+ "react-dom": "^18.2.0"
49
+ },
50
+ "devDependencies": {
51
+ "@types/react": "^18.2.0",
52
+ "@types/react-dom": "^18.2.0",
53
+ "autoprefixer": "^10.4.22",
54
+ "bun-types": "latest",
55
+ "postcss": "^8.5.6",
56
+ "tailwindcss": "^4.1.18",
57
+ "typescript": "^5.0.0"
58
+ },
59
+ "engines": {
60
+ "bun": ">=1.0.0"
61
+ },
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "git+https://github.com/Haslab-dev/KilatJS.git"
65
+ },
66
+ "bugs": {
67
+ "url": "https://github.com/Haslab-dev/KilatJS/issues"
68
+ },
69
+ "homepage": "https://github.com/Haslab-dev/KilatJS#readme"
70
+ }