package.json 3.2 KB
Newer Older
1
{
2
  "name": "wechaty",
3
  "version": "0.3.16",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
4
  "description": "Wechat for Bot (Personal Account)",
5
  "main": "index.js",
6
  "wechaty": {
7
    "DEFAULT_HEAD": "chrome",
8
    "DEFAULT_PUPPET": "web",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
9
    "DEFAULT_PROFILE": "profile",
10 11 12
    "DEFAULT_PORT": 8788,
    "DEFAULT_PUPPET_PORT": 18788,
    "DEFAULT_PROTOCOL": "io|0.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
13 14
    "DEFAULT_TOKEN": "WECHATY_IO_TOKEN",
    "DEFAULT_APIHOST": "api.wechaty.io",
15
    "BINARY_CHROMIUM": "/wechaty/bin/xvfb-chromium"
16
  },
17
  "scripts": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
18
    "lint": "npm run eslint && npm run tslint",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
19 20
    "eslint": "eslint \"{src,test,bin}/**/*.js\"",
    "tslint": "tslint \"{src,test,bin}/**/*.ts\"",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
21
    "sloc": "sloc . --details --format cli-table --keys total,source,comment --exclude \"node_modules|doc\" && sloc . --exclude \"node_modules|doc\"",
22
    "pretest": "npm run lint",
23
    "test": "npm run test:phantomjs && npm run test:chrome",
24
    "posttest": "npm run sloc",
25
    "test:phantomjs": "cross-env LC_ALL=C WECHATY_LOG=info WECHATY_HEAD=phantomjs ava --timeout=10m \"{src,test}/**/*.spec.js\"",
26
    "test:chrome": "cross-env LC_ALL=C WECHATY_LOG=silly WECHATY_HEAD=chrome ava --timeout=10m \"{src,test}/**/*.spec.js\"",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
27
    "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --serial --verbose --fail-fast --timeout=3m",
28
    "ava": "cross-env LC_ALL=C WECHATY_LOG=verbose ava \"{src,test}/**/*.spec.js\"",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
29
    "start": "node bin/client",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
30
    "demo": "node example/ding-dong-bot.js"
31 32 33
  },
  "repository": {
    "type": "git",
34
    "url": "git+https://github.com/wechaty/wechaty.git"
35
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
36
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
37
    "wechaty-client": "bin/client.js",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
38
    "wechaty-version": "bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
39
  },
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
    "wechaty",
    "微信控"
  ],
  "author": "Zhuohuan LI <zixia@zixia.net>",
  "license": "ISC",
  "bugs": {
55
    "url": "https://github.com/wechaty/wechaty/issues"
56
  },
57
  "homepage": "https://github.com/wechaty/wechaty#readme",
58
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
59
    "env": {
60 61 62
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
63 64 65 66
    },
    "plugins": [
      "ava"
    ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
67 68 69 70 71 72 73 74 75
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
      },
      "extends": "plugin:ava/recommended"
    }
76 77
  },
  "engines": {
78
    "node": ">= 6.0.0"
79 80
  },
  "dependencies": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
81
    "body-parser": "^1.15.2",
82
    "brolog": "^0.3.7",
83
    "chromedriver": "^2.23.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
84 85
    "co": "^4.6.0",
    "express": "^4.13.4",
86
    "phantomjs-prebuilt": "^2.1.12",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
87 88 89 90 91
    "ps-tree": "^1.0.1",
    "retry-promise": "^1.0.0",
    "selenium-webdriver": "^3.0.0-beta-1",
    "socket.io": "^1.4.8",
    "ws": "^1.1.1"
92 93
  },
  "devDependencies": {
94
    "apiai": "^2.0.7",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
95
    "ava": "^0.16.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
96
    "babel-eslint": "^6.1.2",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
97 98
    "cookie-parser": "^1.4.3",
    "cross-env": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
99 100
    "eslint": "^3.4.0",
    "eslint-plugin-ava": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
101
    "qrcode-terminal": "^0.10.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
102
    "sinon": "^1.17.5",
103
    "sloc": "^0.1.11",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
104 105 106
    "tslint": "^3.15.1",
    "tuling123-client": "0.0.1",
    "typescript": "^2.1.0-dev.20160830"
107 108 109 110 111 112 113 114 115
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "package.json",
    "README.md",
    "CHANGELOG",
    "LICENSE",
    "src/",
    "bin/"
116
  ]
117
}