package.json 5.4 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.27.17  
Huan (李卓桓) 已提交
3
  "version": "0.27.17",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
4
  "description": "Wechaty is a Bot SDK for Wechat 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_PROTOCOL": "io|0.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
11
    "DEFAULT_TOKEN": "WECHATY_IO_TOKEN",
12
    "DEFAULT_APIHOST": "api.chatie.io"
13
  },
14
  "scripts": {
15
    "build": "tsc",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
16
    "clean": "shx rm -fr dist/*",
17
    "dist": "npm run clean && npm run build",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
18
    "pack": "npm pack",
19
    "doc": "bash -x scripts/generate-docs.sh",
20
    "coverage": "nyc report --reporter=text-lcov | coveralls",
21
    "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",
22
    "doctor": "npm run check-node-version && ts-node bin/doctor",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
23
    "check-node-version": "check-node-version --node \">= 10\"",
24 25
    "lint": "npm run check-node-version && npm run lint:es && npm run lint:ts && npm run lint:sh",
    "lint:es": "eslint --ignore-pattern fixtures/ src/**/*.ts tests/**/*.ts scripts/**/*.ts examples/**/*.ts bin/**/*.ts",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
26
    "lint:md": "markdownlint README.md",
27
    "lint:ts": "tsc --noEmit",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
28
    "lint:sh": "bash -n bin/*.sh",
29
    "puppet-install": "ts-node bin/puppet-install.ts",
30
    "sloc": "sloc bin examples scripts src tests --details --format cli-table --keys total,source,comment && sloc bin examples scripts src tests",
31
    "ts-node": "ts-node",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
32
    "test": "npm run lint && npm run test:unit && npm run test:shell && npm run sloc",
33
    "test:pack": "bash -x scripts/npm-pack-testing.sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
34
    "test:shell": "shellcheck bin/*.sh",
35 36
    "test:unit": "blue-tape -r ts-node/register \"src/**/*.spec.ts\" \"src/*.spec.ts\" \"tests/*.spec.ts\" \"tests/**/*.spec.ts\"",
    "test:unit:retry": "ts-node scripts/retry-unit-tests",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
37
    "test:debug": "blue-tape -r ts-node/register src/puppet-web/bridge.spec.ts",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
38
    "typedoc": "bash scripts/typedoc.sh",
39 40
    "io-client": "ts-node bin/io-client",
    "demo": "ts-node examples/ding-dong-bot.ts",
J
jess 已提交
41 42
    "start": "npm run demo",
    "postinstall": "opencollective-postinstall"
43 44 45
  },
  "repository": {
    "type": "git",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
46
    "url": "git+https://github.com/chatie/wechaty.git"
47
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
48
  "bin": {
49
    "wechaty-doctor": "dist/bin/doctor.js",
50 51
    "wechaty-io-client": "dist/bin/io-client.js",
    "wechaty-puppet-install": "dist/bin/puppet-install.js",
52
    "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://chatie.io/wechaty/",
78
  "engines": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
79
    "node": ">= 10"
80 81
  },
  "dependencies": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
82
    "brolog": "^1.8.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
83
    "clone-class": "^0.6.11",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
84
    "cuid": "^2.1.1",
85
    "file-box": "^0.8.23",
86
    "hot-import": "^0.2.1",
87
    "memory-card": "^0.6.9",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
88
    "npm-programmatic": "0.0.12",
89 90
    "opencollective": "^1.0.3",
    "opencollective-postinstall": "^2.0.2",
91
    "pkg-dir": "^4.0.0",
92
    "portfinder": "^1.0.17",
93
    "promise-retry": "^1.1.1",
94
    "qr-image": "^3.2.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
95
    "raven": "^2.6.2",
96
    "read-pkg-up": "^6.0.0",
97
    "semver": "^6.0.0",
98
    "state-switch": "^0.6.2",
99
    "watchdog": "^0.8.1",
100
    "wechaty-puppet": "^0.15.9",
101
    "ws": "^7.0.0"
102 103
  },
  "devDependencies": {
104 105 106
    "@babel/core": "^7.0.1",
    "@babel/node": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
107
    "@chatie/eslint-config": "^0.6.8",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
108
    "@chatie/git-scripts": "^0.2.3",
109
    "@chatie/tsconfig": "^0.6.1",
110
    "@types/blessed": "^0.1.10",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
111
    "@types/cuid": "^1.3.0",
112
    "@types/fluent-ffmpeg": "^2.1.0",
113
    "@types/fs-extra": "^7.0.0",
114 115
    "@types/glob": "^5.0.0p",
    "@types/mime": "^2.0.0",
116
    "@types/node": "^12.0.1",
117
    "@types/promise-retry": "^1.1.3",
118
    "@types/qr-image": "^3.2.1",
119
    "@types/raven": "^2.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
120
    "@types/read-pkg-up": "^3.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
121
    "@types/request": "^2.47.1",
122
    "@types/retry": "^0.12.0",
123
    "@types/semver": "^6.0.0",
124
    "@types/sinon": "^7.0.4",
125
    "@types/ws": "^6.0.0",
126
    "apiai": "^4.0.0",
127 128
    "blessed": "^0.1.81",
    "blessed-contrib": "^4.8.5",
129
    "check-node-version": "^4.0.1",
130
    "coveralls": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
131
    "cross-env": "^5.1.6",
132
    "finis": "^0.4.1",
133
    "fluent-ffmpeg": "^2.1.0",
134
    "gl-matrix": "^3.0.0",
135
    "glob": "^7.1.0",
136
    "is-pr": "^1.0.0",
137 138
    "jsdoc-to-markdown": "^5.0.0",
    "markdownlint-cli": "^0.16.0",
139
    "nyc": "^14.0.0",
140
    "qrcode-terminal": "^0.12.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
141
    "request": "^2.87.0",
142
    "shx": "^0.3.0",
143
    "sinon": "^7.2.3",
144
    "sloc": "^0.2.0",
145
    "tstest": "^0.2.4",
146
    "typedoc": "^0.14.0",
147
    "wechaty-puppet-mock": "^0.15.5"
148 149 150 151 152
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
153 154
    "README.md",
    "package.json",
155
    "bin",
156 157
    "dist/bin",
    "dist/index.*",
158 159
    "dist/src",
    "src"
160 161
  ],
  "publishConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
162
    "access": "public",
163
    "tag": "next"
J
jess 已提交
164 165 166 167
  },
  "collective": {
    "type": "opencollective",
    "url": "https://opencollective.com/wechaty"
168 169 170 171 172
  },
  "git": {
    "scripts": {
      "pre-push": "npx git-scripts-pre-push"
    }
173
  }
174
}