-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
74 lines (74 loc) · 2.46 KB
/
package.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"name": "serverless-mysql-http",
"version": "1.0.0",
"main": "index.ts",
"author": "yutak23",
"license": "MIT",
"type": "module",
"scripts": {
"build:watch": "tsc --watch",
"build": "yarn lint && yarn style && rm -rf ./dist && tsc",
"express:watch": "nodemon --watch dist/ dist/app.js",
"express": "node dist/app.js",
"test": "vitest run",
"docker:build": "docker build -t yutak23/serverless-mysql-http:latest . > ./build.log 2>&1",
"mysqldump:schema": "docker exec -t mysql mysqldump -u root --databases sample_db --no-data | sed -e 's/ AUTO_INCREMENT=[0-9]*//' > ./tests/sql/1_schema.sql",
"mysqldump:data": "docker exec -t mysql mysqldump -u root -t --databases sample_db --no-create-db > ./tests/sql/2_data.sql",
"lint": "eslint . --ext .cjs,.mjs,.js,.ts,.cts,.mts",
"lint:fix": "eslint . --ext .cjs,.mjs,.js,.ts,.cts,.mts --fix",
"style": "prettier --ignore-unknown -c . '!./data'",
"style:fix": "prettier --ignore-unknown --write . '!./data'",
"prepare": "npx simple-git-hooks"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged --verbose",
"commit-msg": "npx commitlint -e"
},
"lint-staged": {
"*": "prettier --ignore-unknown --write",
"**/*.{cjs,mjs,js,ts,cts,mts}": [
"eslint"
],
"yarn.lock": "license-checker --production --failOn \"GPL;AGPL;LGPL;NGPL\" --summary"
},
"dependencies": {
"@tidbcloud/serverless": "^0.1.1",
"app-root-path": "^3.1.0",
"console-express-routes": "^1.0.2",
"crypto": "^1.0.1",
"express": "^4.19.2",
"lodash": "^4.17.21",
"luxon": "^3.4.4",
"mysql2": "^3.10.2",
"snakecase-keys": "^8.0.1"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/types": "^19.0.3",
"@planetscale/database": "^1.18.0",
"@tsconfig/node16": "^16.1.3",
"@tsconfig/strictest": "^2.0.5",
"@types/express": "^4.17.21",
"@types/lodash": "^4.17.6",
"@types/luxon": "^3.4.2",
"@types/node": "^20.14.10",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"license-checker": "^25.0.1",
"lint-staged": "^15.2.7",
"nodemon": "^3.1.4",
"npm-check-updates": "^17.0.6",
"prettier": "^3.3.2",
"simple-git-hooks": "^2.11.1",
"supertest": "^7.0.0",
"typescript": "~5.5.3",
"undici": "^6.18.2",
"vitest": "^2.0.4"
}
}