package.json 4.4 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 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
    "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/*",
23
    "lint": "npm run shlint && 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",
26
    "shlint": "bash -n bin/*.sh && shellcheck bin/*.sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
27
    "pretest": "npm run clean && npm run lint && npm run build",
28
    "sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts",
29
    "test": "npm run test:chrome",
30
    "posttest": "npm run clean && npm run sloc",
31 32
    "test:phantomjs": "cross-env LC_ALL=C WECHATY_LOG=info WECHATY_HEAD=phantomjs ava --timeout=7m \"dist/test/*.spec.js\"",
    "test:phantomjs.bak": "cross-env LC_ALL=C WECHATY_LOG=info WECHATY_HEAD=phantomjs ava --timeout=7m \"dist/{src,test}/**/*.spec.js\"",
33
    "test:chrome": "cross-env LC_ALL=C WECHATY_LOG=verbose WECHATY_HEAD=chrome ava --serial --fail-fast --verbose --ext js --timeout=7m \"dist/{src,test}/**/*.spec.js\"",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
34
    "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=3m",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
35
    "testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m",
36
    "ava": "cross-env LC_ALL=C WECHATY_LOG=verbose ts-node node_modules/.bin/ava \"{src,test}/**/*.spec.js\"",
37
    "start": "ts-node bin/client",
38 39
    "dev": "ts-node dev.ts",
    "demo": "ts-node example/ding-dong-bot.ts"
40 41 42
  },
  "repository": {
    "type": "git",
43
    "url": "git+https://github.com/wechaty/wechaty.git"
44
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
45
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
46 47 48
    "wechaty-client": "bin/client.ts",
    "wechaty-doctor": "bin/doctor.ts",
    "wechaty-version": "bin/version.ts"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
49
  },
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
    "wechaty",
    "微信控"
  ],
  "author": "Zhuohuan LI <zixia@zixia.net>",
  "license": "ISC",
  "bugs": {
65
    "url": "https://github.com/wechaty/wechaty/issues"
66
  },
67
  "homepage": "https://github.com/wechaty/wechaty#readme",
68
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
69
    "env": {
70 71 72
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
73 74 75 76
    },
    "plugins": [
      "ava"
    ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
77 78 79 80 81 82 83 84 85
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
      },
      "extends": "plugin:ava/recommended"
    }
86 87
  },
  "engines": {
88
    "node": ">= 6.0.0"
89 90
  },
  "dependencies": {
91
    "arrify": "^1.0.1",
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",
129 130
    "typescript": "^2.0.3",
    "yarn": "^0.16.1"
131 132 133 134 135
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
136 137 138 139 140
    "README.md",
    "package.json",
    "bin/",
    "dist/",
    "src/"
141
  ]
142
}