package.json 6.2 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.15.31  
Huan (李卓桓) 已提交
3
  "version": "0.15.31",
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/",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
19
    "doc": "npm run dist && echo '# Wechaty v'$(jq -r .version package.json)' Documentation\n* https://blog.chatie.io\n' > docs/index.md && jsdoc2md dist/src/{wechaty,room,contact,friend-request,message}.js dist/src/puppet-puppeteer/schema.js>> docs/index.md",
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 --exclude \"tests/fixtures/**\" && 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 33
    "test:linux": "npm run pretest && parallel ts-node -- ./src/**/*.spec.ts ./tests/**/*.spec.ts && npm run posttest",
    "test:pack": "npm run dist && export TMPDIR=/tmp/wechaty.$$ && npm pack && mkdir $TMPDIR && mv wechaty-*.*.*.tgz $TMPDIR && cp tests/fixtures/smoke-testing.js $TMPDIR && cd $TMPDIR && npm init -y && npm i wechaty-*.*.*.tgz && (for i in {1..3}; do node smoke-testing.js && break || sleep 1; done)",
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
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
43 44
  "git": {
    "scripts": {
45
      "pre-push": "./scripts/pre-push.sh"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
46 47
    }
  },
48 49
  "repository": {
    "type": "git",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
50
    "url": "git+https://github.com/chatie/wechaty.git"
51
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
52
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
53
    "wechaty-io-client": "dist/bin/io-client.js",
54 55
    "wechaty-doctor": "dist/bin/doctor.js",
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
56
  },
57 58 59 60 61 62 63 64 65
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
66
    "sdk",
67
    "wechaty",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
68
    "chatie",
69 70
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
71
  "author": {
72
    "name": "Huan LI",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
73 74 75
    "email": "zixia@zixia.net",
    "url": "www.zixia.net"
  },
76
  "license": "Apache-2.0",
77
  "bugs": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
78
    "url": "https://github.com/chatie/wechaty/issues"
79
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
80
  "homepage": "https://github.com/chatie/wechaty#readme",
81
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
82
    "env": {
83 84 85
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
86
    },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
87 88
    "parser": "babel-eslint",
    "parserOptions": {
89
      "ecmaVersion": 8,
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
90 91 92
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
93
      }
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
94
    }
95 96
  },
  "engines": {
97
    "node": ">= 8.5"
98 99
  },
  "dependencies": {
100
    "@types/ws": "^5.1.0",
101 102
    "bl": "^1.2.0",
    "brolog": "^1.2.0",
103
    "clone-class": "^0.6.3",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
104
    "cuid": "^2.1.1",
105
    "hot-import": "^0.1.0",
106
    "mime": "^2.2.0",
107
    "normalize-package-data": "^2.4.0",
108
    "puppeteer": "^1.2.0",
109
    "raven": "^2.2.0",
110
    "read-pkg-up": "^3.0.0",
111 112
    "request": "^2.83.0",
    "retry-promise": "^1.0.0",
113
    "rx-queue": "^0.4.4",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
114
    "rxjs": "^6",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
115
    "state-switch": "^0.4.5",
116
    "watchdog": "^0.8.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
117
    "wechat4u": "^0.7.6",
118
    "ws": "^5.1.0",
119
    "xml2js": "^0.4.0"
120 121
  },
  "devDependencies": {
122
    "@types/blessed": "^0.1.10",
123
    "@types/blue-tape": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
124
    "@types/cuid": "^1.3.0",
125 126 127 128
    "@types/express": "^4.0.0",
    "@types/fluent-ffmpeg": "^2.1.0",
    "@types/glob": "^5.0.0p",
    "@types/mime": "^2.0.0",
129
    "@types/node": "^10.0.3",
130
    "@types/normalize-package-data": "^2.4.0",
131
    "@types/puppeteer": "^1.0.0",
132
    "@types/raven": "^2.1.0",
133
    "@types/read-pkg-up": "^3.0.0",
134
    "@types/request": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
135
    "@types/semver": "^5.5.0",
136
    "@types/sinon": "^4.3.1",
137 138 139 140 141
    "@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",
142 143
    "blessed": "^0.1.81",
    "blessed-contrib": "^4.8.5",
144
    "blue-tape": "^1.0.0",
145
    "check-node-version": "^3.0.0",
146 147 148 149 150
    "cookie-parser": "^1.4.0",
    "coveralls": "^3.0.0",
    "cross-env": "^5.0.0",
    "eslint": "^4.8.0",
    "express": "^4.15.0",
151
    "finis": "^0.4.1",
152
    "fluent-ffmpeg": "^2.1.0",
153
    "git-scripts": "git+https://github.com/nkzawa/git-scripts.git",
154
    "glob": "^7.1.0",
155
    "jsdoc-to-markdown": "^4.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
156
    "markdownlint-cli": "^0.8.1",
157
    "nyc": "^11.2.0",
158
    "qrcode-terminal": "^0.12.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
159
    "semver": "^5.5.0",
160
    "shx": "^0.2.0",
161
    "sinon": "^5.0.2",
162 163
    "sinon-test": "^2.1.2",
    "sloc": "^0.2.0",
164
    "ts-node": "^6.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
165
    "tslint": "^5.9.1",
Huan (李卓桓)'s avatar
lint  
Huan (李卓桓) 已提交
166
    "tslint-eslint-rules": "^5.1.0",
167
    "tslint-jsdoc-rules": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
168
    "tuling123-client": "^0.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
169
    "typescript": "^2.8.3"
170 171 172 173 174
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
175 176
    "README.md",
    "package.json",
177
    "bin",
178 179
    "dist/bin",
    "dist/index.*",
180 181
    "dist/src",
    "src"
182 183
  ],
  "publishConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
184
    "access": "public",
185
    "tag": "latest"
186
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
187
}