create-dp-koa 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-dp-koa",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Scaffold a DP-Koa framework project from the official template",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,15 @@
1
- # 寮€鍙戠幆澧冮厤缃甡n# 鏁版嵁搴撻厤缃甡ndb_enable=1
2
- db_memory=1
1
+ # development config
2
+ db_enable=1
3
3
 
4
- # MySQL鏁版嵁搴撻厤缃紙褰?db_memory=0 鏃剁敓鏁堬級
4
+ # database mode (recommended)
5
+ db_mode=sqlite_memory
6
+ # db_mode=sqlite_file
7
+ # db_sqlite_file=./data/dev.sqlite
8
+
9
+ # legacy compatibility (only used when db_mode is not set)
10
+ # db_memory=1
11
+
12
+ # MySQL config (effective when db_mode=mysql OR legacy db_type=mysql)
5
13
  db_host=127.0.0.1
6
14
  db_port=3306
7
15
  db_username=test
@@ -2,8 +2,10 @@ host=127.0.0.1
2
2
  port=3011
3
3
  jwt_secret=eT4*fL8#uW9$mW4.pE5?yZ6`jB2[dE9.
4
4
  db_enable=1
5
- db_memory=0 # 关闭内存数据库
6
- db_type=mysql
5
+ db_mode=mysql
6
+ # legacy compatibility (only used when db_mode is not set)
7
+ # db_memory=0
8
+ # db_type=mysql
7
9
  db_host=localhost
8
10
  db_port=3306
9
11
  db_username=ytfx
@@ -65,7 +65,7 @@
65
65
  "dotenv": "^16.5.0",
66
66
  "dp-ioc2": "^1.0.1",
67
67
  "dp-mqueue": "^1.0.4",
68
- "dp-koa-framework-core": "^0.1.7",
68
+ "dp-koa-framework-core": "^0.1.9",
69
69
  "dp-koa-framework-libs": "^0.1.4",
70
70
  "jsonwebtoken": "^9.0.2",
71
71
  "koa": "^3.0.0",
@@ -3,7 +3,7 @@
3
3
  "target": "ES6",
4
4
  "module": "commonjs",
5
5
  "outDir": "./dist",
6
- "rootDir": "./src",
6
+ "baseUrl": ".",
7
7
  "strict": true,
8
8
  "esModuleInterop": true,
9
9
  "skipLibCheck": true,
@@ -28,10 +28,14 @@
28
28
  "jest"
29
29
  ],
30
30
  "include": [
31
- "src/**/*.ts"
31
+ "src/**/*.ts",
32
+ "test/**/*.ts"
32
33
  ],
33
34
  "exclude": [
34
35
  "node_modules",
35
- "dist"
36
+ "dist",
37
+ "test/framework/**",
38
+ "test/controllers/example/**",
39
+ "test/integration/**"
36
40
  ]
37
41
  }