package.json 6.1 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.8.129  
Huan (李卓桓) 已提交
3
  "version": "0.8.129",
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
    "DEFAULT_TOKEN": "WECHATY_IO_TOKEN",
14
    "DEFAULT_APIHOST": "api.chatie.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 && jq \"del (.files)\" < package.json > dist/package.json && shx cp src/puppet-web/*.js dist/src/puppet-web/",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
21
    "doc": "npm run dist && jsdoc2md dist/src/{wechaty,room,contact,friend-request,message}.js > docs/index.md",
22
    "coverage": "nyc report --reporter=text-lcov | coveralls",
23
    "changelog": "github_changelog_generator -u chatie -p wechaty && sed -i'' /greenkeeper/d CHANGELOG.md",
24
    "doctor": "npm run check-node-version && ts-node bin/doctor",
25
    "clean": "shx rm -fr dist/*",
26
    "check-node-version": "check-node-version --node \">= 6.9\"",
27
    "lint": "npm run clean && npm run check-node-version && npm run eslint && npm run tslint",
28
    "nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --timeout=5m \"dist/{src,test}/**/*.spec.js\"",
29
    "eslint": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
30
    "tslint": "tslint --version && tslint --project tsconfig.json --type-check \"{bin,example,src,test}/**/*.ts\" --exclude=\"test/fixture/**\" --exclude=\"dist/\" && npm run clean && tsc --noEmit",
31
    "shlint": "bash -n bin/*.sh",
32
    "pretest": "npm run clean && npm run lint && npm run dist",
33
    "sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts",
34
    "test": "npm run test:chrome",
35
    "posttest": "npm run clean && npm run sloc",
36 37 38
    "test:phantomjs": "cross-env LC_ALL=C WECHATY_HEAD=phantomjs ava --verbose --fail-fast --serial --timeout=5m \"dist/{src,test}/**/*.spec.js\"",
    "test:chrome": "cross-env LC_ALL=C WECHATY_HEAD=chrome ava --serial --fail-fast --verbose --timeout=5m \"dist/{src,test}/**/*.spec.js\"",
    "test:bug": "cross-env LC_ALL=C WECHATY_HEAD=chrome WECHATY_LOG=silly ava --serial --fail-fast --verbose --timeout=5m \"dist/src/message.spec.js\"",
39
    "test:chrome:fast": "cross-env LC_ALL=C WECHATY_HEAD=chrome ava --concurrency 5 --fail-fast --timeout=5m \"dist/{src,test}/**/*.spec.js\"",
Huan (李卓桓)'s avatar
clean  
Huan (李卓桓) 已提交
40
    "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=2m",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
41
    "testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m",
42
    "test:pack": "npm run dist && rm -fr package wechaty-*.*.*.tgz && npm pack --verbose  && tar zxvf wechaty-*.*.*.tgz",
43
    "test:npm": "export TMPDIR=/tmp/wechaty.$$ && npm pack && mkdir $TMPDIR && mv wechaty-*.*.*.tgz $TMPDIR && cp test/fixture/smoke-testing.js $TMPDIR && cd $TMPDIR && npm init -y && npm i wechaty-*.*.*.tgz && node smoke-testing.js",
44
    "io-client": "ts-node bin/io-client",
45
    "dev": "ts-node dev.ts",
46 47
    "demo": "ts-node example/ding-dong-bot.ts",
    "start": "npm run demo"
48 49 50
  },
  "repository": {
    "type": "git",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
51
    "url": "git+https://github.com/chatie/wechaty.git"
52
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
53
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
54
    "wechaty-io-client": "dist/bin/io-client.js",
55 56
    "wechaty-doctor": "dist/bin/doctor.js",
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
57
  },
58 59 60 61 62 63 64 65 66 67
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
    "wechaty",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
68
    "chatie",
69 70
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
71
  "author": {
72
    "name": "Huan LI",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
73 74 75
    "email": "zixia@zixia.net",
    "url": "www.zixia.net"
  },
76
  "license": "Apache-2.0",
77
  "bugs": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
78
    "url": "https://github.com/chatie/wechaty/issues"
79
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
80
  "homepage": "https://github.com/chatie/wechaty#readme",
81
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
82
    "env": {
83 84 85
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
86 87 88 89
    },
    "plugins": [
      "ava"
    ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
90 91 92 93 94 95 96 97 98
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
      },
      "extends": "plugin:ava/recommended"
    }
99
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
100 101 102 103 104
  "ava": {
    "require": [
      "ts-node/register"
    ]
  },
105
  "engines": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
106
    "node": ">= 6.9.0"
107 108
  },
  "dependencies": {
109
    "@types/express": "^4.0.36",
110
    "@types/node": "8.0.8",
111
    "@types/socket.io": "1.4.29",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
112
    "bl": "1.2.1",
113
    "body-parser": "1.17.2",
114
    "brolog": "1.1.18",
115
    "chromedriver": "2.29.2",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
116
    "express": "4.15.2",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
117
    "ps-tree": "1.1.0",
118
    "raven": "2.1.0",
119
    "request": "2.81.0",
120
    "retry-promise": "1.0.0",
121
    "selenium-webdriver": "3.4.0",
122
    "socket.io": "1.7.4",
123
    "state-switch": "0.1.13",
124
    "ws": "3.0.0"
125 126
  },
  "devDependencies": {
127
    "@types/body-parser": "1.16.4",
128
    "@types/fluent-ffmpeg": "2.1.1",
129
    "@types/glob": "^5.0.30",
130
    "@types/mime": "1.3.1",
131
    "@types/raven": "1.2.2",
132
    "@types/request": "0.0.45",
133
    "@types/selenium-webdriver": "3.0.4",
134
    "@types/sinon": "2.3.2",
135
    "@types/ws": "3.0.1",
136
    "apiai": "4.0.2",
137
    "ava": "0.20.0",
138
    "babel-cli": "6.24.1",
139
    "babel-eslint": "7.2.3",
140
    "babel-preset-es2015": "6.24.1",
141
    "check-node-version": "2.1.0",
142
    "cookie-parser": "1.4.3",
143
    "coveralls": "2.13.1",
144
    "cross-env": "5.0.1",
145
    "eslint": "4.1.1",
146
    "eslint-plugin-ava": "4.2.1",
147
    "finis": "0.0.2",
148
    "fluent-ffmpeg": "2.1.2",
149
    "glob": "^7.1.2",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
150
    "jsdoc-to-markdown": "3.0.0",
151
    "nyc": "11.0.3",
152
    "qrcode-terminal": "0.11.0",
153
    "shx": "0.2.2",
154
    "sinon": "2.3.6",
155
    "sloc": "0.2.0",
156
    "ts-node": "3.2.0",
157
    "tslint": "5.3.2",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
158
    "tslint-jsdoc-rules": "0.1.2",
159
    "tuling123-client": "0.0.1",
160
    "typescript": "2.4.1",
161
    "yarn": "0.27.5"
162 163 164 165 166
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
167 168
    "README.md",
    "package.json",
169
    "bin",
170 171
    "dist/bin",
    "dist/index.*",
172 173
    "dist/src",
    "src"
174 175
  ],
  "publishConfig": {
176 177
    "tagBak": "next",
    "tag": "latest"
178
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
179
}