typescript server api

This commit is contained in:
2023-11-10 23:29:17 +01:00
parent 8a34b043e0
commit 5289b85802
6 changed files with 1049 additions and 53 deletions

View File

@@ -7,7 +7,9 @@
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"server": "node --no-warnings --loader ts-node/esm server/index.ts",
"server:dev": "nodemon --watch \"server/**\" --ext \"ts\" --exec \"npm run server\""
},
"dependencies": {
"@vueuse/core": "^10.5.0",
@@ -23,6 +25,7 @@
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.5.1",
"@types/express": "^4.17.21",
"@types/node": "^20.9.0",
"@vitejs/plugin-vue": "^4.4.1",
"@vue/eslint-config-prettier": "^7.0.0",
@@ -30,10 +33,13 @@
"@vue/tsconfig": "^0.4.0",
"eslint": "^8.53.0",
"eslint-plugin-vue": "^9.18.1",
"nodemon": "^3.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vue-tsc": "^1.8.22"
}
},
"type": "module"
}