vafast 0.1.1
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/LICENSE +22 -0
- package/README.md +219 -0
- package/dist/index.js +55636 -0
- package/dist/main.js +19758 -0
- package/package.json +97 -0
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vafast",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "专为Bun构建的极简结构化Web框架。Go风格,函数优先。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/vafast/vafast.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/vafast/vafast#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/vafast/vafast/issues"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./mod": {
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "bun build src/index.ts --outdir dist --target bun",
|
|
28
|
+
"dev": "bun --watch index.ts",
|
|
29
|
+
"start": "bun run dist/index.js",
|
|
30
|
+
"test": "vitest",
|
|
31
|
+
"test:unit": "vitest tests/unit/",
|
|
32
|
+
"test:integration": "vitest tests/integration/",
|
|
33
|
+
"test:coverage": "vitest --coverage",
|
|
34
|
+
"test:ui": "vitest --ui",
|
|
35
|
+
"test:run": "vitest run",
|
|
36
|
+
"benchmark": "bun run benchmarks/performance.ts",
|
|
37
|
+
"benchmark:quick": "bun run benchmarks/quick-benchmark.ts",
|
|
38
|
+
"benchmark:validators": "bun run benchmarks/validators-benchmark.ts",
|
|
39
|
+
"benchmark:ultra": "bun run benchmarks/ultra-performance-test.ts",
|
|
40
|
+
"benchmark:ultimate": "bun run benchmarks/ultimate-performance-test.ts",
|
|
41
|
+
"benchmark:comprehensive": "bun run benchmarks/comprehensive-benchmark.ts",
|
|
42
|
+
"lint": "eslint src/**/*.ts tests/**/*.ts benchmarks/**/*.ts",
|
|
43
|
+
"lint:fix": "eslint src/**/*.ts tests/**/*.ts benchmarks/**/*.ts --fix",
|
|
44
|
+
"format": "prettier --write src/**/*.ts tests/**/*.ts benchmarks/**/*.ts",
|
|
45
|
+
"format:check": "prettier --check src/**/*.ts tests/**/*.ts benchmarks/**/*.ts",
|
|
46
|
+
"type-check": "tsc --noEmit",
|
|
47
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
48
|
+
"postbuild": "rimraf src/**/*.d.ts",
|
|
49
|
+
"release": "bun run type-check && bun run build && bun run test:run && bumpp && bun publish",
|
|
50
|
+
"docs:dev": "bun run docs:serve",
|
|
51
|
+
"docs:build": "bun run docs:build",
|
|
52
|
+
"docs:serve": "bun run docs:serve"
|
|
53
|
+
},
|
|
54
|
+
"keywords": [
|
|
55
|
+
"bun",
|
|
56
|
+
"framework",
|
|
57
|
+
"minimal",
|
|
58
|
+
"router",
|
|
59
|
+
"go",
|
|
60
|
+
"web",
|
|
61
|
+
"edge",
|
|
62
|
+
"typescript",
|
|
63
|
+
"fast"
|
|
64
|
+
],
|
|
65
|
+
"files": [
|
|
66
|
+
"dist",
|
|
67
|
+
"README.md",
|
|
68
|
+
"LICENSE"
|
|
69
|
+
],
|
|
70
|
+
"author": "Vafast Team",
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@types/cookie": "^1.0.0",
|
|
74
|
+
"@types/jsdom": "^21.1.7",
|
|
75
|
+
"@types/node": "^22.15.30",
|
|
76
|
+
"@types/qs": "^6.14.0",
|
|
77
|
+
"@types/react": "^19.1.10",
|
|
78
|
+
"@types/react-dom": "^19.1.7",
|
|
79
|
+
"@vitest/ui": "^3.2.4",
|
|
80
|
+
"bumpp": "^10.2.3",
|
|
81
|
+
"bun-types": "^1.2.20",
|
|
82
|
+
"jsdom": "^26.1.0",
|
|
83
|
+
"rimraf": "^6.0.1",
|
|
84
|
+
"typescript": "^5.9.2",
|
|
85
|
+
"vitest": "^3.2.4"
|
|
86
|
+
},
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@sinclair/typebox": "^0.34.39",
|
|
89
|
+
"@vue/server-renderer": "^3.5.18",
|
|
90
|
+
"bun": "^1.2.15",
|
|
91
|
+
"cookie": "^1.0.2",
|
|
92
|
+
"qs": "^6.14.0",
|
|
93
|
+
"react": "^19.1.1",
|
|
94
|
+
"react-dom": "^19.1.1",
|
|
95
|
+
"vue": "^3.5.18"
|
|
96
|
+
}
|
|
97
|
+
}
|