package.json 5.0 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.7.8  
Huan (李卓桓) 已提交
3
  "version": "0.7.8",
Huan (李卓桓)'s avatar
clean  
Huan (李卓桓) 已提交
4
  "description": "Wechat for Bot(Personal Account)",
5 6
  "main": "dist/index.js",
  "types": "dist/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
    "ava": "ava --verbose --extension ts",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
19
    "ts-node": "ts-node",
20
    "dist": "npm run clean && tsc && shx cp package.json dist/ && shx cp src/puppet-web/*.js dist/src/puppet-web/",
21
    "coverage": "nyc report --reporter=text-lcov | coveralls",
22
    "doctor": "npm run check-node-version && ts-node bin/doctor",
23
    "clean": "shx rm -fr dist/*",
24 25
    "check-node-version": "check-node-version --node \">= 6.9\"",
    "lint": "npm run check-node-version && npm run eslint && npm run tslint",
26
    "nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
27
    "eslint": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
28
    "tslint": "tslint \"{bin,example,src,test}/**/*.ts\" --exclude=\"test/fixture/**\" --exclude=\"dist/\" && npm run clean && tsc --noEmit",
29
    "shlint": "bash -n bin/*.sh",
30
    "pretest": "npm run clean && npm run lint && npm run dist",
31
    "sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts",
32
    "test": "npm run test:chrome",
33
    "posttest": "npm run clean && npm run sloc",
34 35 36
    "test:phantomjs": "cross-env LC_ALL=C WECHATY_HEAD=phantomjs ava --verbose --fail-fast --serial --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
    "test:chrome": "cross-env LC_ALL=C WECHATY_HEAD=chrome ava --serial --fail-fast --verbose --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
    "test:chrome:fast": "cross-env LC_ALL=C WECHATY_HEAD=chrome ava --fail-fast --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
Huan (李卓桓)'s avatar
clean  
Huan (李卓桓) 已提交
37
    "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=2m",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
38
    "testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m",
39
    "io-client": "ts-node bin/io-client",
40
    "dev": "ts-node dev.ts",
41 42
    "demo": "ts-node example/ding-dong-bot.ts",
    "start": "npm run demo"
43 44 45
  },
  "repository": {
    "type": "git",
46
    "url": "git+https://github.com/wechaty/wechaty.git"
47
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
48
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
49
    "wechaty-io-client": "dist/bin/io-client.js",
50 51
    "wechaty-doctor": "dist/bin/doctor.js",
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
52
  },
53 54 55 56 57 58 59 60 61 62 63 64
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
    "wechaty",
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
65 66 67 68 69
  "author": {
    "name": "Zhuohuan LI",
    "email": "zixia@zixia.net",
    "url": "www.zixia.net"
  },
70 71
  "license": "ISC",
  "bugs": {
72
    "url": "https://github.com/wechaty/wechaty/issues"
73
  },
74
  "homepage": "https://github.com/wechaty/wechaty#readme",
75
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
76
    "env": {
77 78 79
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
80 81 82 83
    },
    "plugins": [
      "ava"
    ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
84 85 86 87 88 89 90 91 92
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
      },
      "extends": "plugin:ava/recommended"
    }
93
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
94 95 96 97 98
  "ava": {
    "require": [
      "ts-node/register"
    ]
  },
99
  "engines": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
100
    "node": ">= 6.9.0"
101 102
  },
  "dependencies": {
103
    "@types/selenium-webdriver": "2.53.39",
104 105 106
    "@types/socket.io": "1.4.27",
    "body-parser": "1.15.2",
    "brolog": "0.3.10",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
107
    "chromedriver": "^2.27.1",
108
    "express": "4.14.0",
109
    "is-ci": "1.0.10",
110 111
    "is-docker": "1.1.0",
    "moment": "2.17.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
112
    "ps-tree": "^1.1.0",
113 114
    "retry-promise": "1.0.0",
    "selenium-webdriver": "3.0.0",
115
    "socket.io": "1.5.0",
116
    "ws": "1.1.1"
117 118
  },
  "devDependencies": {
119 120 121 122
    "@types/body-parser": "0.0.33",
    "@types/express": "4.0.33",
    "@types/fluent-ffmpeg": "0.0.2",
    "@types/mime": "0.0.29",
123
    "@types/node": "7.0.0",
124
    "@types/sinon": "1.16.34",
125
    "@types/request": "0.0.39",
126 127 128 129
    "@types/ws": "0.0.37",
    "apiai": "3.0.3",
    "ava": "0.17.0",
    "babel-eslint": "7.1.1",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
130
    "check-node-version": "1.1.2",
131 132
    "cookie-parser": "1.4.3",
    "coveralls": "2.11.14",
133
    "cross-env": "3.1.4",
134
    "eslint": "3.13.1",
135
    "eslint-plugin-ava": "4.0.1",
136 137 138 139 140
    "finis": "0.0.2",
    "fluent-ffmpeg": "2.1.0",
    "nyc": "10.0.0",
    "qrcode-terminal": "0.11.0",
    "request": "2.79.0",
141
    "shx": "0.2.2",
142
    "sinon": "1.17.7",
143
    "sloc": "0.1.11",
144
    "ts-node": "2.0.0",
145
    "tslint": "4.3.0",
146 147
    "tuling123-client": "0.0.1",
    "typescript": "2.1.4",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
148
    "yarn": "0.18.1"
149 150 151 152 153
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
154 155
    "README.md",
    "package.json",
156 157 158
    "*.js",
    "*.js.map",
    "*.d.ts",
159 160 161
    "bin/",
    "dist/",
    "src/"
162 163 164 165
  ],
  "publishConfig": {
    "tag": "next"
  }
166
}