package.json 6.2 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.15.8  
Huan (李卓桓) 已提交
3
  "version": "0.15.8",
Huan (李卓桓)'s avatar
clean  
Huan (李卓桓) 已提交
4
  "description": "Wechat for Bot(Personal Account)",
5 6
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
7
  "wechaty": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
8
    "DEFAULT_HEAD": 0,
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
9
    "DEFAULT_PORT": 8080,
10
    "DEFAULT_PUPPET": "web",
Huan (李卓桓)'s avatar
bug fix  
Huan (李卓桓) 已提交
11
    "DEFAULT_PROFILE": "demo",
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
    "ts-node": "ts-node",
18
    "dist": "npm run clean && tsc && shx cp src/puppet-web/*.js dist/src/puppet-web/",
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-web/{friend-request,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
    "clean": "shx rm -fr dist/*",
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": "npm run clean && echo tslint v`tslint --version` && tslint --project tsconfig.json \"{bin,examples,scripts,src,tests}/**/*.ts\" --exclude \"tests/fixtures/**\" --exclude \"dist/\" && tsc --noEmit",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
29
    "lint:sh": "bash -n bin/*.sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
30
    "sloc": "sloc bin examples scripts src tests index.ts --details --format cli-table --keys total,source,comment && sloc bin examples scripts src tests index.ts",
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/node": "^9.4.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
101
    "@types/ws": "^4.0.1",
102 103
    "bl": "^1.2.0",
    "brolog": "^1.2.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
104
    "cuid": "^2.1.1",
105
    "hot-import": "^0.1.0",
106
    "mime": "^2.2.0",
107
    "puppeteer": "^1.2.0",
108
    "raven": "^2.2.0",
109
    "read-pkg-up": "^3.0.0",
110 111
    "request": "^2.83.0",
    "retry-promise": "^1.0.0",
112
    "rx-queue": "^0.3.1",
113
    "rxjs": "^5.5.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
114
    "state-switch": "^0.4.5",
115
    "watchdog": "^0.5.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
116
    "wechat4u": "^0.7.6",
117
    "ws": "^5.1.0",
118
    "xml2js": "^0.4.0"
119 120
  },
  "devDependencies": {
121
    "@types/blue-tape": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
122
    "@types/cuid": "^1.3.0",
123 124 125 126
    "@types/express": "^4.0.0",
    "@types/fluent-ffmpeg": "^2.1.0",
    "@types/glob": "^5.0.0p",
    "@types/mime": "^2.0.0",
127
    "@types/puppeteer": "^1.0.0",
128
    "@types/raven": "^2.1.0",
129
    "@types/read-pkg-up": "^3.0.0",
130
    "@types/request": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
131
    "@types/semver": "^5.5.0",
132
    "@types/sinon": "^4.3.0",
133 134 135 136 137 138
    "@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",
    "blue-tape": "^1.0.0",
139
    "check-node-version": "^3.0.0",
140 141 142 143 144
    "cookie-parser": "^1.4.0",
    "coveralls": "^3.0.0",
    "cross-env": "^5.0.0",
    "eslint": "^4.8.0",
    "express": "^4.15.0",
145
    "finis": "^0.4.1",
146
    "fluent-ffmpeg": "^2.1.0",
147
    "git-scripts": "git+https://github.com/nkzawa/git-scripts.git",
148
    "glob": "^7.1.0",
149
    "jsdoc-to-markdown": "^4.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
150
    "markdownlint-cli": "^0.8.1",
151
    "nyc": "^11.2.0",
152
    "qrcode-terminal": "^0.12.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
153
    "semver": "^5.5.0",
154
    "shx": "^0.2.0",
155
    "sinon": "^5.0.0",
156 157
    "sinon-test": "^2.1.2",
    "sloc": "^0.2.0",
158
    "ts-node": "^6.0.0",
159
    "tslint": "^5.9.0",
Huan (李卓桓)'s avatar
lint  
Huan (李卓桓) 已提交
160
    "tslint-eslint-rules": "^5.1.0",
161
    "tslint-jsdoc-rules": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
162
    "tuling123-client": "^0.0.1",
163
    "typescript": "^2.6.1"
164 165 166 167 168
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
169 170
    "README.md",
    "package.json",
171
    "bin",
172 173
    "dist/bin",
    "dist/index.*",
174 175
    "dist/src",
    "src"
176 177
  ],
  "publishConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
178
    "access": "public",
179 180
    "tagBak": "next",
    "tag": "latest"
181
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
182
}