chanjs 1.0.28 → 1.0.29
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/core/chan.js +0 -1
- package/core/lib/config/config.js +5 -2
- package/package.json +1 -1
- package/publish.bat +4 -0
package/core/chan.js
CHANGED
@@ -4,6 +4,8 @@ const path = require('path');
|
|
4
4
|
* @description 根目录
|
5
5
|
*/
|
6
6
|
const ROOT_PATH = process.cwd();
|
7
|
+
// 读取package.json文件
|
8
|
+
const {version='1.0.0',author='明空'} = require(path.join(ROOT_PATH, 'package.json'));
|
7
9
|
|
8
10
|
/**
|
9
11
|
* @description 程序目录
|
@@ -12,10 +14,11 @@ const APP_PATH = path.join(ROOT_PATH, 'app');
|
|
12
14
|
|
13
15
|
let config = {
|
14
16
|
JSON_LIMIT:"100kb",
|
15
|
-
SqlDebug:true,
|
16
17
|
logger : {
|
17
18
|
level: 'dev',
|
18
19
|
},
|
20
|
+
version,
|
21
|
+
author,
|
19
22
|
env:'dev',
|
20
23
|
template:'default',
|
21
24
|
views:[], //模板路径
|
@@ -30,7 +33,7 @@ let config = {
|
|
30
33
|
port: "3306",
|
31
34
|
user: "root",
|
32
35
|
password: "123456",
|
33
|
-
database: "
|
36
|
+
database: "chancms",
|
34
37
|
charset: "utf8mb4",
|
35
38
|
}
|
36
39
|
}
|
package/package.json
CHANGED
package/publish.bat
ADDED