package.json 5.9 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.15.63  
Huan (李卓桓) 已提交
3
  "version": "0.15.63",
Huan (李卓桓)'s avatar
clean  
Huan (李卓桓) 已提交
4
  "description": "Wechat for Bot(Personal Account)",
Huan (李卓桓)'s avatar
wip...  
Huan (李卓桓) 已提交
5 6
  "main": "dist/src/index.js",
  "types": "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/",
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",
23
    "check-node-version": "check-node-version --node \">= 8.5\"",
24
    "lint": "npm run check-node-version && npm run lint:ts && npm run lint:es && npm run lint:sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
25
    "lint:es": "eslint \"{bin,examples,scripts,src,tests}/**/*.js\" --ignore-pattern=\"tests/fixtures/**\"",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
26
    "lint:md": "markdownlint README.md",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
27
    "lint:ts": "tslint --project tsconfig.json && tsc --noEmit",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
28
    "lint:sh": "bash -n bin/*.sh",
29
    "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 (李卓桓) 已提交
30
    "ts-node": "ts-node",
31
    "test": "npm run clean && npm run lint && npm run test:unit:retry && npm run test:shell && npm run sloc",
32
    "test:linux": "npm run pretest && parallel ts-node -- ./src/**/*.spec.ts ./tests/**/*.spec.ts && npm run posttest",
33
    "test:pack": "bash -x scripts/npm-pack-testing.sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
34
    "test:shell": "shellcheck bin/*.sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
35
    "test:unit": "blue-tape -r ts-node/register \"src/**/*.spec.ts\" \"src/*.spec.ts\" \"tests/*.spec.ts\" \"tests/**/*.spec.ts\"",
36 37
    "test:unit:retry": "ts-node scripts/retry-unit-tests",
    "test:win32": "npm run test:unit:retry",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
38
    "test:debug": "blue-tape -r ts-node/register src/puppet-web/bridge.spec.ts",
39
    "io-client": "ts-node bin/io-client",
40
    "demo": "ts-node examples/ding-dong-bot.ts",
41
    "start": "npm run demo"
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": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
48
    "wechaty-io-client": "dist/bin/io-client.js",
49 50
    "wechaty-doctor": "dist/bin/doctor.js",
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
51
  },
52 53 54 55 56 57 58 59 60
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
61
    "sdk",
62
    "wechaty",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
63
    "chatie",
64 65
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
66
  "author": {
67
    "name": "Huan LI",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
68 69 70
    "email": "zixia@zixia.net",
    "url": "www.zixia.net"
  },
71
  "license": "Apache-2.0",
72
  "bugs": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
73
    "url": "https://github.com/chatie/wechaty/issues"
74
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
75
  "homepage": "https://github.com/chatie/wechaty#readme",
76
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
77
    "env": {
78 79 80
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
81
    },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
82 83
    "parser": "babel-eslint",
    "parserOptions": {
84
      "ecmaVersion": 8,
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
85 86 87
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
88
      }
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
89
    }
90 91
  },
  "engines": {
92
    "node": ">= 8.5"
93 94
  },
  "dependencies": {
95
    "bl": "^2.0.0",
96
    "brolog": "^1.2.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
97
    "clone-class": "^0.6.11",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
98
    "cuid": "^2.1.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
99
    "express": "^4.16.3",
100
    "file-box": "^0.6.2",
101
    "hot-import": "^0.2.1",
102
    "mime": "^2.2.0",
103
    "normalize-package-data": "^2.4.0",
104
    "puppeteer": "^1.2.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
105
    "raven": "^2.6.2",
106
    "read-pkg-up": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
107
    "request": "^2.87.0",
108
    "retry-promise": "^1.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
109 110
    "rx-queue": "^0.4.7",
    "rxjs": "^6.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
111
    "state-switch": "^0.4.5",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
112
    "vinyl": "^2.1.0",
113
    "watchdog": "^0.8.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
114
    "wechat4u": "^0.7.6",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
115
    "ws": "^5.2.0",
116
    "xml2js": "^0.4.0"
117 118
  },
  "devDependencies": {
119
    "@types/blessed": "^0.1.10",
120
    "@types/blue-tape": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
121
    "@types/cuid": "^1.3.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
122
    "@types/express": "^4.11.1",
123 124 125
    "@types/fluent-ffmpeg": "^2.1.0",
    "@types/glob": "^5.0.0p",
    "@types/mime": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
126
    "@types/node": "^10.1.2",
127
    "@types/normalize-package-data": "^2.4.0",
128
    "@types/puppeteer": "^1.0.0",
129
    "@types/raven": "^2.1.0",
130
    "@types/read-pkg-up": "^3.0.0",
131
    "@types/request": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
132
    "@types/semver": "^5.5.0",
133
    "@types/sinon": "^5.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
134
    "@types/vinyl": "^2.0.2",
135
    "@types/ws": "^5.1.0",
136 137 138 139 140
    "@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",
141 142
    "blessed": "^0.1.81",
    "blessed-contrib": "^4.8.5",
143
    "blue-tape": "^1.0.0",
144
    "check-node-version": "^3.0.0",
145 146
    "cookie-parser": "^1.4.0",
    "coveralls": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
147
    "cross-env": "^5.1.6",
148
    "eslint": "^4.8.0",
149
    "finis": "^0.4.1",
150
    "fluent-ffmpeg": "^2.1.0",
151
    "git-scripts": "git+https://github.com/nkzawa/git-scripts.git",
152
    "gl-matrix": "^2.6.1",
153
    "glob": "^7.1.0",
154
    "jsdoc-to-markdown": "^4.0.0",
155
    "markdownlint-cli": "^0.9.0",
156
    "nyc": "^11.2.0",
157
    "qrcode-terminal": "^0.12.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
158
    "semver": "^5.5.0",
159
    "shx": "^0.2.0",
160
    "sinon": "^5.0.2",
161 162
    "sinon-test": "^2.1.2",
    "sloc": "^0.2.0",
163
    "ts-node": "^6.0.5",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
164
    "tslint": "^5.9.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
165
    "tslint-eslint-rules": "^5.3.0",
166
    "tslint-jsdoc-rules": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
167
    "tuling123-client": "^0.0.1",
168
    "typescript": "^2.9.0-dev.20180509"
169 170 171 172 173
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
174 175
    "README.md",
    "package.json",
176
    "bin",
177 178
    "dist/bin",
    "dist/index.*",
179 180
    "dist/src",
    "src"
181
  ],
182 183 184 185 186
  "git": {
    "scripts": {
      "pre-push": "./scripts/pre-push.sh"
    }
  },
187
  "publishConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
188
    "access": "public",
189
    "tag": "latest"
190
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
191
}