package.json 5.3 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.10.3  
Huan (李卓桓) 已提交
3
  "version": "0.10.3",
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": {
8
    "DEFAULT_PUPPET": "web",
Huan (李卓桓)'s avatar
bug fix  
Huan (李卓桓) 已提交
9
    "DEFAULT_PROFILE": "demo",
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": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
15
    "ts-node": "ts-node",
16
    "dist": "npm run clean && tsc && jq \"del (.files)\" < package.json > dist/package.json && shx cp src/puppet-web/*.js dist/src/puppet-web/",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
17
    "doc": "npm run dist && echo '# Wechaty v'$(jq -r .version package.json)' Documentation\n' > docs/index.md && jsdoc2md dist/src/{wechaty,room,contact,friend-request,message}.js dist/src/puppet-web/friend-request.js>> docs/index.md",
18
    "coverage": "nyc report --reporter=text-lcov | coveralls",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
19
    "changelog": "github_changelog_generator -u chatie -p wechaty && sed -i'.bak' /greenkeeper/d CHANGELOG.md && ts-node script/sort-contributiveness.ts < CHANGELOG.md > CHANGELOG.new.md 2>/dev/null && cat CHANGELOG.md >> CHANGELOG.new.md && mv CHANGELOG.new.md CHANGELOG.md",
20
    "doctor": "npm run check-node-version && ts-node bin/doctor",
21
    "clean": "shx rm -fr dist/*",
22 23
    "check-node-version": "check-node-version --node \">= 7\"",
    "lint": "npm run check-node-version && npm run lint:ts && npm run lint:es && npm run lint:sh",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
24
    "lint:es": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
25
    "lint:ts": "npm run clean && echo tslint v`tslint --version` && tslint --project tsconfig.json --type-check \"{bin,example,src,test}/**/*.ts\" --exclude \"test/fixture/**\" --exclude \"dist/\" && tsc --noEmit",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
26
    "lint:sh": "bash -n bin/*.sh",
27
    "sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts",
28 29 30 31 32
    "pretest": "npm run clean && npm run lint",
    "test": "blue-tape -r ts-node/register -r source-map-support/register \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"",
    "posttest": "npm run sloc",
    "test:linux": "npm run pretest && parallel ts-node -- ./src/**/*.spec.ts ./test/**/*.spec.ts && npm run posttest",
    "test:npm": "npm run dist && export TMPDIR=/tmp/wechaty.$$ && npm pack && mkdir $TMPDIR && mv wechaty-*.*.*.tgz $TMPDIR && cp test/fixture/smoke-testing.js $TMPDIR && cd $TMPDIR && npm init -y && npm i wechaty-*.*.*.tgz && node smoke-testing.js",
33 34 35
    "io-client": "ts-node bin/io-client",
    "demo": "ts-node example/ding-dong-bot.ts",
    "start": "npm run demo"
36 37 38
  },
  "repository": {
    "type": "git",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
39
    "url": "git+https://github.com/chatie/wechaty.git"
40
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
41
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
42
    "wechaty-io-client": "dist/bin/io-client.js",
43 44
    "wechaty-doctor": "dist/bin/doctor.js",
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
45
  },
46 47 48 49 50 51 52 53 54 55
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
    "wechaty",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
56
    "chatie",
57 58
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
59
  "author": {
60
    "name": "Huan LI",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
61 62 63
    "email": "zixia@zixia.net",
    "url": "www.zixia.net"
  },
64
  "license": "Apache-2.0",
65
  "bugs": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
66
    "url": "https://github.com/chatie/wechaty/issues"
67
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
68
  "homepage": "https://github.com/chatie/wechaty#readme",
69
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
70
    "env": {
71 72 73
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
74
    },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
75 76 77 78 79 80
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
81
      }
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
82
    }
83 84
  },
  "engines": {
85
    "node": ">= 7"
86 87
  },
  "dependencies": {
88
    "@types/node": "8.0.33",
89
    "@types/ws": "3.2.0",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
90
    "bl": "1.2.1",
91
    "body-parser": "1.18.2",
92
    "brolog": "1.2.8",
93
    "hot-import": "0.1.21",
94
    "puppeteer": "0.11.0",
95
    "raven": "2.2.1",
96
    "request": "2.83.0",
97
    "retry-promise": "1.0.0",
98
    "rxjs": "^5.4.3",
99
    "state-switch": "0.1.13",
100
    "ws": "3.2.0",
101
    "xml2js": "0.4.19"
102 103
  },
  "devDependencies": {
104
    "@types/blue-tape": "^0.1.31",
105
    "@types/body-parser": "1.16.5",
106
    "@types/express": "4.0.37",
107
    "@types/fluent-ffmpeg": "2.1.4",
108
    "@types/glob": "5.0.33",
109
    "@types/mime": "2.0.0",
110
    "@types/puppeteer": "0.10.1",
111
    "@types/raven": "2.1.2",
112
    "@types/request": "2.0.4",
113
    "@types/sinon": "2.3.5",
114
    "@types/xml2js": "0.4.0",
115
    "apiai": "4.0.3",
116
    "babel-cli": "6.26.0",
117
    "babel-eslint": "8.0.1",
118 119 120
    "babel-preset-env": "^1.6.0",
    "blue-tape": "^1.0.0",
    "body-parser": "1.18.2",
121
    "check-node-version": "2.1.0",
122
    "cookie-parser": "1.4.3",
123
    "coveralls": "3.0.0",
124
    "cross-env": "5.0.5",
125
    "eslint": "4.8.0",
126
    "express": "4.15.2",
127
    "finis": "0.0.2",
128
    "fluent-ffmpeg": "2.1.2",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
129
    "glob": "7.1.2",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
130
    "jsdoc-to-markdown": "3.0.0",
131
    "nyc": "11.2.1",
132
    "qrcode-terminal": "0.11.0",
133
    "shx": "0.2.2",
134
    "sinon": "4.0.1",
135
    "sinon-test": "2.1.1",
136
    "sloc": "0.2.0",
137
    "ts-node": "3.3.0",
138
    "tslint": "5.7.0",
Huan (李卓桓)'s avatar
merge  
Huan (李卓桓) 已提交
139
    "tslint-jsdoc-rules": "0.1.2",
140
    "tuling123-client": "0.0.1",
141
    "typescript": "2.5.3",
142
    "yarn": "1.1.0"
143 144 145 146 147
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
148 149
    "README.md",
    "package.json",
150
    "bin",
151 152
    "dist/bin",
    "dist/index.*",
153 154
    "dist/src",
    "src"
155 156
  ],
  "publishConfig": {
157 158
    "tagBak": "next",
    "tag": "latest"
159
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
160
}