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