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