-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add] Session controller based on Authing JWT
[add] Base & User models based on TypeORM [optimize] load Environment file from Git repository [optimize] upgrade Upstream packages
- Loading branch information
Showing
11 changed files
with
3,080 additions
and
1,594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "kys-service", | ||
"version": "0.3.9", | ||
"version": "0.5.0", | ||
"license": "AGPL-3.0", | ||
"author": "[email protected]", | ||
"description": "RESTful API service of KaiYuanShe", | ||
|
@@ -14,35 +14,45 @@ | |
}, | ||
"main": "dist/index.js", | ||
"dependencies": { | ||
"@azure/storage-blob": "^12.14.0", | ||
"@azure/storage-blob": "^12.16.0", | ||
"@koa/cors": "^4.0.0", | ||
"class-transformer": "^0.5.1", | ||
"class-validator": "^0.14.0", | ||
"dotenv": "^16.0.3", | ||
"dotenv": "^16.3.1", | ||
"file-type": "^16.5.4", | ||
"jsonwebtoken": "^9.0.2", | ||
"koa": "^2.14.2", | ||
"koa-bodyparser": "^4.4.0", | ||
"koa-bodyparser": "^4.4.1", | ||
"koa-jwt": "^4.0.4", | ||
"koa-logger": "^3.2.1", | ||
"koa-multer": "^1.0.2", | ||
"koa-router": "^12.0.0", | ||
"koagger": "^0.2.4", | ||
"koagger": "^0.3.0", | ||
"mobx": "^5.15.7", | ||
"mobx-lark": "1.0.0-beta.0", | ||
"mobx-lark": "^1.0.0-rc.9", | ||
"pg": "^8.11.3", | ||
"pg-connection-string": "^2.6.2", | ||
"reflect-metadata": "^0.1.13", | ||
"routing-controllers": "^0.10.3", | ||
"routing-controllers": "^0.10.4", | ||
"routing-controllers-openapi": "^4.0.0", | ||
"web-fetch": "^1.3.1" | ||
"sqlite3": "^5.1.6", | ||
"tslib": "^2.6.2", | ||
"typeorm": "^0.3.17", | ||
"web-fetch": "^1.3.2" | ||
}, | ||
"devDependencies": { | ||
"@types/koa": "^2.13.6", | ||
"@types/jsonwebtoken": "^9.0.3", | ||
"@types/koa": "^2.13.9", | ||
"@types/koa-bodyparser": "^4.3.10", | ||
"@types/koa-logger": "^3.1.2", | ||
"@types/koa-router": "^7.4.4", | ||
"@types/node": "^16.18.24", | ||
"@types/koa-logger": "^3.1.3", | ||
"@types/koa-router": "^7.4.5", | ||
"@types/node": "^18.17.16", | ||
"get-git-folder": "^0.1.2", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.2.1", | ||
"prettier": "^2.8.8", | ||
"lint-staged": "^14.0.1", | ||
"prettier": "^3.0.3", | ||
"ts-node-dev": "^2.0.0", | ||
"typescript": "~5.0.4" | ||
"typescript": "~5.2.2" | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
|
@@ -55,10 +65,16 @@ | |
}, | ||
"scripts": { | ||
"prepare": "husky install", | ||
"install": "get-git-folder https://github.com/kaiyuanshe/service-configuration.git main KYS-service || true", | ||
"test": "lint-staged", | ||
"dev": "ts-node-dev src/", | ||
"build": "tsc", | ||
"start": "node dist/", | ||
"typeorm": "typeorm-ts-node-commonjs -d src/model/index.ts", | ||
"migration:generate": "npm run typeorm -- migration:generate", | ||
"migration:run": "npm run typeorm -- migration:run", | ||
"upgrade:dev": "npm run migration:generate -- migration/version && npm run migration:run", | ||
"upgrade:pro": "cross-env NODE_ENV=production npm run migration:generate -- .tmp/version && npm run migration:run", | ||
"dock": "docker build . -t kys-service:latest", | ||
"docker": "docker rm -f kys-service && docker run --name kys-service -p 8080:8080 -d kys-service" | ||
} | ||
|
Oops, something went wrong.