From ce3ed496350cef4ed8dd4cf559d57a93a4e10f4d Mon Sep 17 00:00:00 2001 From: maslow Date: Sun, 28 Mar 2021 19:00:34 +0800 Subject: [PATCH] fix(deps): add typescript package to dev env --- README.md | 5 +++++ package-lock.json | 22 +++++++++++++++++++++- package.json | 3 ++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a6cd55f9c9..76521249fb 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,11 @@ less-framework 让你开箱即用 less-api, 内置基于角色的权限控制 npm install ``` +### 启动 MongoDb +```sh +docker run -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=less -e MONGO_INITDB_ROOT_PASSWORD=less --name mongo -d mongo +``` + ### 配置数据库 (MongoDb) `/src/config.ts` diff --git a/package-lock.json b/package-lock.json index ad0175c132..dafca4425e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,8 @@ "@types/multer": "^1.4.5", "@types/uuid": "^8.3.0", "@types/validator": "^13.1.3", - "husky": "^5.2.0" + "husky": "^5.2.0", + "typescript": "^4.2.3" } }, "node_modules/@babel/code-frame": { @@ -3398,6 +3399,19 @@ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" }, + "node_modules/typescript": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz", + "integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/universalify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", @@ -6287,6 +6301,12 @@ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" }, + "typescript": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz", + "integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==", + "dev": true + }, "universalify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", diff --git a/package.json b/package.json index 544d9432d9..49e959fa9f 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "@types/multer": "^1.4.5", "@types/uuid": "^8.3.0", "@types/validator": "^13.1.3", - "husky": "^5.2.0" + "husky": "^5.2.0", + "typescript": "^4.2.3" } }