-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpackage.json
More file actions
58 lines (54 loc) · 1.63 KB
/
Copy pathpackage.json
File metadata and controls
58 lines (54 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "typescript-koa-node-service",
"version": "1.1.1",
"description": "node.js + koa + typescript 构建服务端应用",
"main": "index.js",
"type": "module",
"scripts": {
"dev": "tsx watch ./src/index.ts",
"dev:test": "cross-env mode=test tsx watch ./src/index.ts",
"dev:prod": "cross-env mode=prod tsx watch ./src/index.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"clean": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
"copy-assets": "copyfiles -u 1 \"src/**/*.md\" dist",
"build": "npm run clean && tsc && npm run copy-assets",
"start": "node ./dist/index.js",
"start:test": "cross-env mode=test node ./dist/index.js",
"start:prod": "cross-env mode=prod node ./dist/index.js",
"build-sql": "tsx ./mysql/creator.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Travis-hjs/node-koa.git"
},
"keywords": [
"koa",
"nodejs"
],
"author": "Travis-hjs",
"license": "ISC",
"bugs": {
"url": "https://github.com/Travis-hjs/node-koa/issues"
},
"homepage": "https://github.com/Travis-hjs/node-koa#readme",
"dependencies": {
"@koa/router": "15.4.0",
"cross-env": "10.1.0",
"koa": "3.2.0",
"koa-body": "7.0.1",
"koa-static": "5.0.0",
"mysql": "2.18.1"
},
"devDependencies": {
"@antfu/eslint-config": "8.2.0",
"@types/koa": "3.0.2",
"@types/koa-static": "4.0.4",
"@types/mysql": "2.15.27",
"@types/node": "25.6.0",
"copyfiles": "2.4.1",
"eslint": "10.2.1",
"tsx": "4.20.6",
"typescript": "5.6.3"
}
}