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