package.json 6.3 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
3
  "version": "0.15.135",
Huan (李卓桓)'s avatar
clean  
Huan (李卓桓) 已提交
4
  "description": "Wechat for Bot(Personal Account)",
Huan (李卓桓)'s avatar
wip...  
Huan (李卓桓) 已提交
5
  "main": "dist/src/index.js",
6
  "typings": "dist/src/index.d.ts",
7
  "wechaty": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
8
    "DEFAULT_HEAD": 0,
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
9
    "DEFAULT_PORT": 8080,
10
    "DEFAULT_PUPPET": "puppeteer",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
11
    "DEFAULT_PROFILE": "default",
12
    "DEFAULT_PROTOCOL": "io|0.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
13
    "DEFAULT_TOKEN": "WECHATY_IO_TOKEN",
14
    "DEFAULT_APIHOST": "api.chatie.io"
15
  },
16
  "scripts": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
17
    "clean": "shx rm -fr dist/*",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
18
    "dist": "npm run clean && tsc && shx cp src/puppet-puppeteer/*.js dist/src/puppet-puppeteer/",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
19
    "pack": "npm pack",
20
    "doc": "bash -x scripts/generate-docs.sh",
21
    "coverage": "nyc report --reporter=text-lcov | coveralls",
22
    "changelog": "github_changelog_generator -u chatie -p wechaty && sed -i'.bak' /greenkeeper/d CHANGELOG.md && sed -i'.bak' '/An in-range update of/d' CHANGELOG.md && ts-node scripts/sort-contributiveness.ts < CHANGELOG.md > CHANGELOG.new.md 2>/dev/null && cat CHANGELOG.md >> CHANGELOG.new.md && mv CHANGELOG.new.md CHANGELOG.md",
23
    "doctor": "npm run check-node-version && ts-node bin/doctor",
24
    "check-node-version": "check-node-version --node \">= 8.5\"",
25
    "lint": "npm run check-node-version && npm run lint:ts && npm run lint:es && npm run lint:sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
26
    "lint:es": "eslint \"{bin,examples,scripts,src,tests}/**/*.js\" --ignore-pattern=\"tests/fixtures/**\"",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
27
    "lint:md": "markdownlint README.md",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
28
    "lint:ts": "tslint --project tsconfig.json && tsc --noEmit",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
29
    "lint:sh": "bash -n bin/*.sh",
30
    "sloc": "sloc bin examples scripts src tests --details --format cli-table --keys total,source,comment && sloc bin examples scripts src tests",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
31
    "ts-node": "ts-node",
32
    "test": "npm run clean && npm run lint && npm run test:unit:retry && npm run test:shell && npm run sloc",
33
    "test:linux": "npm run pretest && parallel ts-node -- ./src/**/*.spec.ts ./tests/**/*.spec.ts && npm run posttest",
34
    "test:pack": "bash -x scripts/npm-pack-testing.sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
35
    "test:shell": "shellcheck bin/*.sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
36
    "test:unit": "blue-tape -r ts-node/register \"src/**/*.spec.ts\" \"src/*.spec.ts\" \"tests/*.spec.ts\" \"tests/**/*.spec.ts\"",
37 38
    "test:unit:retry": "ts-node scripts/retry-unit-tests",
    "test:win32": "npm run test:unit:retry",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
39
    "test:debug": "blue-tape -r ts-node/register src/puppet-web/bridge.spec.ts",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
40
    "typedoc": "bash scripts/typedoc.sh",
41
    "io-client": "ts-node bin/io-client",
42
    "demo": "ts-node examples/ding-dong-bot.ts",
43
    "start": "npm run demo"
44 45 46
  },
  "repository": {
    "type": "git",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
47
    "url": "git+https://github.com/chatie/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
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
63
    "sdk",
64
    "wechaty",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
65
    "chatie",
66 67
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
68
  "author": {
69
    "name": "Huan LI",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
70
    "email": "zixia@zixia.net",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
71
    "url": "https://www.zixia.net"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
72
  },
73
  "license": "Apache-2.0",
74
  "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
    },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
84 85
    "parser": "babel-eslint",
    "parserOptions": {
86
      "ecmaVersion": 8,
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
87 88 89
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
90
      }
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
91
    }
92 93
  },
  "engines": {
94
    "node": ">= 8.5"
95 96
  },
  "dependencies": {
97
    "bl": "^2.0.0",
98
    "brolog": "^1.6.3",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
99
    "clone-class": "^0.6.11",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
100
    "cuid": "^2.1.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
101
    "express": "^4.16.3",
102
    "file-box": "^0.8.19",
103
    "flash-store": "^0.4.2",
104
    "fs-extra": "^6.0.1",
105
    "hot-import": "^0.2.1",
ruiruibupt's avatar
ruiruibupt 已提交
106
    "jimp": "^0.2.28",
107
    "json-rpc-peer": "^0.15.3",
108
    "jsqr": "^1.0.4",
109
    "lru-cache": "^4.1.3",
110
    "memory-card": "0.2.0",
111
    "mime": "^2.2.0",
112
    "normalize-package-data": "^2.4.0",
113
    "promise-retry": "^1.1.1",
114
    "puppeteer": "^1.2.0",
115
    "qr-image": "^3.2.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
116
    "raven": "^2.6.2",
117
    "read-pkg-up": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
118
    "request": "^2.87.0",
119
    "rx-queue": "^0.4.19",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
120
    "rxjs": "^6.1.0",
121
    "state-switch": "^0.4.6",
122
    "watchdog": "^0.8.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
123
    "wechat4u": "^0.7.6",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
124
    "ws": "^5.2.0",
125
    "xml2js": "^0.4.0"
126 127
  },
  "devDependencies": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
128
    "@types/bl": "^0.8.32",
129
    "@types/blessed": "^0.1.10",
130
    "@types/blue-tape": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
131
    "@types/cuid": "^1.3.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
132
    "@types/express": "^4.11.1",
133
    "@types/fluent-ffmpeg": "^2.1.0",
134
    "@types/fs-extra": "^5.0.3",
135
    "@types/glob": "^5.0.0p",
136
    "@types/lru-cache": "^4.1.0",
137
    "@types/mime": "^2.0.0",
138
    "@types/node": "^10.3.0",
139
    "@types/normalize-package-data": "^2.4.0",
140
    "@types/promise-retry": "^1.1.1",
141
    "@types/puppeteer": "^1.0.0",
142
    "@types/qr-image": "^3.2.1",
143
    "@types/raven": "^2.1.0",
144
    "@types/read-pkg-up": "^3.0.0",
145
    "@types/request": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
146
    "@types/semver": "^5.5.0",
147
    "@types/sinon": "^5.0.0",
148
    "@types/ws": "^5.1.0",
149 150 151 152 153
    "@types/xml2js": "^0.4.0",
    "apiai": "^4.0.0",
    "babel-cli": "^6.26.0",
    "babel-eslint": "^8.0.0",
    "babel-preset-env": "^1.6.0",
154 155
    "blessed": "^0.1.81",
    "blessed-contrib": "^4.8.5",
156
    "blue-tape": "^1.0.0",
157
    "check-node-version": "^3.0.0",
158 159
    "cookie-parser": "^1.4.0",
    "coveralls": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
160
    "cross-env": "^5.1.6",
161
    "eslint": "^4.8.0",
162
    "finis": "^0.4.1",
163
    "fluent-ffmpeg": "^2.1.0",
164
    "git-scripts": "git+https://github.com/nkzawa/git-scripts.git",
165
    "gl-matrix": "^2.6.1",
166
    "glob": "^7.1.0",
167
    "jsdoc-to-markdown": "^4.0.0",
168
    "markdownlint-cli": "^0.10.0",
169
    "nyc": "^12.0.1",
170
    "qrcode-terminal": "^0.12.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
171
    "semver": "^5.5.0",
172
    "shx": "^0.3.0",
173
    "sinon": "^5.0.2",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
174
    "sinon-test": "^2.2.0",
175
    "sloc": "^0.2.0",
176
    "ts-node": "^6.0.5",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
177
    "tslint": "^5.9.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
178
    "tslint-config-standard": "^7.0.0",
179
    "tuling123-client": "^0.0.2",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
180
    "typedoc": "^0.11.1",
181
    "typescript": "^2.9.0-dev.20180509"
182 183 184 185 186
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
187 188
    "README.md",
    "package.json",
189
    "bin",
190 191
    "dist/bin",
    "dist/index.*",
192 193
    "dist/src",
    "src"
194
  ],
195 196 197 198 199
  "git": {
    "scripts": {
      "pre-push": "./scripts/pre-push.sh"
    }
  },
200
  "publishConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
201
    "access": "public",
202
    "tag": "latest"
203
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
204
}