package.json 5.4 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.7.95  
Huan (李卓桓) 已提交
3
  "version": "0.7.95",
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 && shx cp package.json dist/ && 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 27
    "check-node-version": "check-node-version --node \">= 6.9\"",
    "lint": "npm run check-node-version && npm run eslint && npm run tslint",
28
    "nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
29
    "eslint": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
30
    "tslint": "tslint \"{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=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 (李卓桓) 已提交
39
    "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=2m",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
40
    "testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m",
41
    "io-client": "ts-node bin/io-client",
42
    "dev": "ts-node dev.ts",
43 44
    "demo": "ts-node example/ding-dong-bot.ts",
    "start": "npm run demo"
45 46 47
  },
  "repository": {
    "type": "git",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
48
    "url": "git+https://github.com/chatie/wechaty.git"
49
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
50
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
51
    "wechaty-io-client": "dist/bin/io-client.js",
52 53
    "wechaty-doctor": "dist/bin/doctor.js",
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
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
    "chatie",
66 67
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
68 69 70 71 72
  "author": {
    "name": "Zhuohuan LI",
    "email": "zixia@zixia.net",
    "url": "www.zixia.net"
  },
73 74
  "license": "ISC",
  "bugs": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
75
    "url": "https://github.com/chatie/wechaty/issues"
76
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
77
  "homepage": "https://github.com/chatie/wechaty#readme",
78
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
79
    "env": {
80 81 82
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
83 84 85 86
    },
    "plugins": [
      "ava"
    ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
87 88 89 90 91 92 93 94 95
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
      },
      "extends": "plugin:ava/recommended"
    }
96
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
97 98 99 100 101
  "ava": {
    "require": [
      "ts-node/register"
    ]
  },
102
  "engines": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
103
    "node": ">= 6.9.0"
104 105
  },
  "dependencies": {
106
    "@types/selenium-webdriver": "3.0.3",
107
    "@types/socket.io": "1.4.29",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
108
    "bl": "1.2.1",
109
    "body-parser": "1.17.1",
110
    "brolog": "1.0.15",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
111
    "chromedriver": "2.29.0",
112
    "express": "5.0.0-alpha.5",
113
    "is-ci": "1.0.10",
114
    "is-docker": "1.1.0",
115
    "moment": "2.18.1",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
116
    "ps-tree": "1.1.0",
117
    "retry-promise": "1.0.0",
118
    "selenium-webdriver": "3.4.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
119
    "socket.io": "1.7.3",
120
    "state-switch": "0.1.8",
121
    "ws": "2.3.1"
122 123
  },
  "devDependencies": {
124
    "@types/body-parser": "1.16.3",
125
    "@types/express": "4.0.35",
126 127
    "@types/fluent-ffmpeg": "0.0.2",
    "@types/mime": "0.0.29",
128
    "@types/node": "7.0.15",
129
    "@types/request": "0.0.42",
130
    "@types/sinon": "2.1.3",
131
    "@types/ws": "0.0.40",
132
    "apiai": "4.0.2",
133
    "ava": "0.18.2",
134
    "babel-eslint": "7.2.3",
135
    "check-node-version": "2.1.0",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
136
    "codelyzer": "3.0.1",
137
    "cookie-parser": "1.4.3",
138
    "coveralls": "2.13.1",
139
    "cross-env": "4.0.0",
140
    "eslint": "3.18.0",
141
    "eslint-plugin-ava": "4.2.0",
142
    "finis": "0.0.2",
143
    "fluent-ffmpeg": "2.1.2",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
144
    "jsdoc-to-markdown": "3.0.0",
145
    "nyc": "10.3.0",
146
    "qrcode-terminal": "0.11.0",
147
    "request": "2.81.0",
148
    "shx": "0.2.2",
149
    "sinon": "2.2.0",
150
    "sloc": "0.2.0",
151
    "ts-node": "3.0.2",
152
    "tslint": "5.1.0",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
153
    "tslint-jsdoc-rules": "0.1.2",
154
    "tuling123-client": "0.0.1",
155
    "typescript": "2.3.2",
156
    "yarn": "0.23.3"
157 158 159 160 161
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
162 163
    "README.md",
    "package.json",
164 165 166
    "*.js",
    "*.js.map",
    "*.d.ts",
167 168 169
    "bin/",
    "dist/",
    "src/"
170 171
  ],
  "publishConfig": {
172 173
    "tagBak": "next",
    "tag": "latest"
174
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
175
}