提交 8a99836b 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

move config default values to package.json

上级 0e8197d5
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
"version": "0.3.9", "version": "0.3.9",
"description": "Wechat for Bot (Personal Account)", "description": "Wechat for Bot (Personal Account)",
"main": "index.js", "main": "index.js",
"wechaty": {
"DEFAULT_HEAD": "chrome"
, "DEFAULT_PUPPET": "web"
, "DEFAULT_PORT": 8788
, "DEFAULT_WEB_PORT": 58788
},
"scripts": { "scripts": {
"lint": "eslint src test", "lint": "eslint src test",
"pretest": "npm run lint", "pretest": "npm run lint",
......
const Config = { const Config = require('../package.json').wechaty
DEFAULT_HEAD: 'chrome'
, DEFAULT_PUPPET: 'web'
, DEFAULT_PORT: 8788 // W(87) X(88), ascii char code ;-]
, DEFAULT_WEB_PORT: 58788
}
module.exports = Config module.exports = Config
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册