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