package.json 5.5 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.25.12  
Huan (李卓桓) 已提交
3
  "version": "0.25.12",
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
    "lint": "npm run check-node-version && npm run lint:ts && npm run lint:sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
25
    "lint:md": "markdownlint README.md",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
26
    "lint:ts": "tslint --project tsconfig.json && tsc --noEmit",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
27
    "lint:sh": "bash -n bin/*.sh",
28
    "puppet-install": "ts-node bin/puppet-install.ts",
29
    "sloc": "sloc bin examples scripts src tests --details --format cli-table --keys total,source,comment && sloc bin examples scripts src tests",
30
    "ts-node": "ts-node",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
31
    "test": "npm run lint && npm run test:unit && npm run test:shell && npm run sloc",
32
    "test:pack": "bash -x scripts/npm-pack-testing.sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
33
    "test:shell": "shellcheck bin/*.sh",
34 35
    "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 (李卓桓) 已提交
36
    "test:debug": "blue-tape -r ts-node/register src/puppet-web/bridge.spec.ts",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
37
    "typedoc": "bash scripts/typedoc.sh",
38 39
    "io-client": "ts-node bin/io-client",
    "demo": "ts-node examples/ding-dong-bot.ts",
J
jess 已提交
40 41
    "start": "npm run demo",
    "postinstall": "opencollective-postinstall"
42 43 44
  },
  "repository": {
    "type": "git",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
45
    "url": "git+https://github.com/chatie/wechaty.git"
46
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
47
  "bin": {
48
    "wechaty-doctor": "dist/bin/doctor.js",
49 50
    "wechaty-io-client": "dist/bin/io-client.js",
    "wechaty-puppet-install": "dist/bin/puppet-install.js",
51
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
52
  },
53 54 55 56 57 58 59 60 61
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
62
    "sdk",
63
    "wechaty",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
64
    "chatie",
65 66
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
67
  "author": {
68
    "name": "Huan LI",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
69
    "email": "zixia@zixia.net",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
70
    "url": "https://www.zixia.net"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
71
  },
72
  "license": "Apache-2.0",
73
  "bugs": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
74
    "url": "https://github.com/chatie/wechaty/issues"
75
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
76
  "homepage": "https://chatie.io/wechaty/",
77
  "engines": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
78
    "node": ">= 10"
79 80
  },
  "dependencies": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
81
    "brolog": "^1.8.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
82
    "clone-class": "^0.6.11",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
83
    "cuid": "^2.1.1",
84
    "file-box": "^0.8.23",
85
    "hot-import": "^0.2.1",
86
    "memory-card": "^0.6.9",
J
jess 已提交
87
    "opencollective-postinstall": "^2.0.2",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
88
    "npm-programmatic": "0.0.12",
89
    "pkg-dir": "^4.0.0",
90
    "portfinder": "^1.0.17",
91
    "promise-retry": "^1.1.1",
92
    "qr-image": "^3.2.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
93
    "raven": "^2.6.2",
94
    "read-pkg-up": "^5.0.0",
95
    "state-switch": "^0.6.2",
96
    "watchdog": "^0.8.1",
97
    "wechaty-puppet": "^0.15.1",
J
jess 已提交
98 99
    "ws": "^6.0.0",
    "opencollective": "^1.0.3"
100 101
  },
  "devDependencies": {
102 103 104
    "@babel/core": "^7.0.1",
    "@babel/node": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
105
    "@types/blessed": "^0.1.10",
106
    "@types/blue-tape": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
107
    "@types/cuid": "^1.3.0",
108
    "@types/fluent-ffmpeg": "^2.1.0",
109
    "@types/fs-extra": "^5.0.3",
110 111
    "@types/glob": "^5.0.0p",
    "@types/mime": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
112
    "@types/node": "^11.13.7",
113
    "@types/promise-retry": "^1.1.3",
114
    "@types/qr-image": "^3.2.1",
115
    "@types/raven": "^2.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
116
    "@types/read-pkg-up": "^3.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
117
    "@types/request": "^2.47.1",
118
    "@types/retry": "^0.12.0",
119
    "@types/semver": "^6.0.0",
120
    "@types/sinon": "^7.0.4",
121
    "@types/ws": "^6.0.0",
122
    "@wwwouter/tslint-contrib": "^1.0.0",
123
    "apiai": "^4.0.0",
124 125
    "blessed": "^0.1.81",
    "blessed-contrib": "^4.8.5",
126
    "blue-tape": "^1.0.0",
127
    "check-node-version": "^3.0.0",
128
    "coveralls": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
129
    "cross-env": "^5.1.6",
130
    "finis": "^0.4.1",
131
    "fluent-ffmpeg": "^2.1.0",
132
    "git-scripts": "git+https://github.com/nkzawa/git-scripts.git",
133
    "gl-matrix": "^2.6.1",
134
    "glob": "^7.1.0",
135
    "is-pr": "^1.0.0",
136
    "jsdoc-to-markdown": "^4.0.0",
137
    "markdownlint-cli": "^0.15.0",
138
    "nyc": "^14.0.0",
139
    "qrcode-terminal": "^0.12.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
140
    "request": "^2.87.0",
141
    "semver": "^6.0.0",
142
    "shx": "^0.3.0",
143
    "sinon": "^7.2.3",
144
    "sloc": "^0.2.0",
145
    "ts-node": "^8.0.2",
146
    "tslint": "^5.11.0",
147
    "tslint-config-standard": "^8.0.0",
148
    "tuling123-client": "^0.0.2",
149
    "typedoc": "^0.14.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
150
    "typescript": "^3.1.0-dev.20180731",
151
    "wechaty-puppet-mock": "^0.14.1"
152 153 154 155 156
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
157 158
    "README.md",
    "package.json",
159
    "bin",
160 161
    "dist/bin",
    "dist/index.*",
162 163
    "dist/src",
    "src"
164
  ],
165 166 167 168 169
  "git": {
    "scripts": {
      "pre-push": "./scripts/pre-push.sh"
    }
  },
170
  "publishConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
171
    "access": "public",
172
    "tag": "latest"
J
jess 已提交
173 174 175 176
  },
  "collective": {
    "type": "opencollective",
    "url": "https://opencollective.com/wechaty"
177
  }
J
jess 已提交
178
}