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 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
    "@types/ws": "^5.1.0",
96 97
    "bl": "^1.2.0",
    "brolog": "^1.2.0",
98
    "clone-class": "^0.6.3",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
99
    "cuid": "^2.1.1",
100
    "hot-import": "^0.1.0",
101
    "mime": "^2.2.0",
102
    "normalize-package-data": "^2.4.0",
103
    "puppeteer": "^1.2.0",
104
    "raven": "^2.2.0",
105
    "read-pkg-up": "^3.0.0",
106 107
    "request": "^2.83.0",
    "retry-promise": "^1.0.0",
108
    "rx-queue": "^0.4.4",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
109
    "rxjs": "^6",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
110
    "state-switch": "^0.4.5",
111
    "watchdog": "^0.8.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
112
    "wechat4u": "^0.7.6",
113
    "ws": "^5.1.0",
114
    "xml2js": "^0.4.0"
115 116
  },
  "devDependencies": {
117
    "@types/blessed": "^0.1.10",
118
    "@types/blue-tape": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
119
    "@types/cuid": "^1.3.0",
120 121 122 123
    "@types/express": "^4.0.0",
    "@types/fluent-ffmpeg": "^2.1.0",
    "@types/glob": "^5.0.0p",
    "@types/mime": "^2.0.0",
124
    "@types/node": "^10.0.3",
125
    "@types/normalize-package-data": "^2.4.0",
126
    "@types/puppeteer": "^1.0.0",
127
    "@types/raven": "^2.1.0",
128
    "@types/read-pkg-up": "^3.0.0",
129
    "@types/request": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
130
    "@types/semver": "^5.5.0",
131
    "@types/sinon": "^4.3.1",
132 133 134 135 136
    "@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",
137 138
    "blessed": "^0.1.81",
    "blessed-contrib": "^4.8.5",
139
    "blue-tape": "^1.0.0",
140
    "check-node-version": "^3.0.0",
141 142 143 144 145
    "cookie-parser": "^1.4.0",
    "coveralls": "^3.0.0",
    "cross-env": "^5.0.0",
    "eslint": "^4.8.0",
    "express": "^4.15.0",
146
    "finis": "^0.4.1",
147
    "fluent-ffmpeg": "^2.1.0",
148
    "git-scripts": "git+https://github.com/nkzawa/git-scripts.git",
149
    "glob": "^7.1.0",
150
    "jsdoc-to-markdown": "^4.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
151
    "markdownlint-cli": "^0.8.1",
152
    "nyc": "^11.2.0",
153
    "qrcode-terminal": "^0.12.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
154
    "semver": "^5.5.0",
155
    "shx": "^0.2.0",
156
    "sinon": "^5.0.2",
157 158
    "sinon-test": "^2.1.2",
    "sloc": "^0.2.0",
159
    "ts-node": "^6.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
160
    "tslint": "^5.9.1",
Huan (李卓桓)'s avatar
lint  
Huan (李卓桓) 已提交
161
    "tslint-eslint-rules": "^5.1.0",
162
    "tslint-jsdoc-rules": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
163
    "tuling123-client": "^0.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
164
    "typescript": "^2.8.3"
165 166 167 168 169
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
170 171
    "README.md",
    "package.json",
172
    "bin",
173 174
    "dist/bin",
    "dist/index.*",
175 176
    "dist/src",
    "src"
177
  ],
178 179 180 181 182
  "git": {
    "scripts": {
      "pre-push": "./scripts/pre-push.sh"
    }
  },
183
  "publishConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
184
    "access": "public",
185
    "tag": "latest"
186
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
187
}