package.json 5.8 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.13.68  
Huan (李卓桓) 已提交
3
  "version": "0.13.68",
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",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
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 script/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,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
27
    "lint:ts": "npm run clean && echo tslint v`tslint --version` && tslint --project tsconfig.json \"{bin,example,src,test}/**/*.ts\" --exclude \"test/fixture/**\" --exclude \"dist/\" && tsc --noEmit",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
28
    "lint:sh": "bash -n bin/*.sh",
29
    "sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
30
    "test": "npm run clean && npm run lint && npm run test:unit && npm run test:shell && npm run sloc",
31
    "test:linux": "npm run pretest && parallel ts-node -- ./src/**/*.spec.ts ./test/**/*.spec.ts && npm run posttest",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
32
    "test:pack": "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",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
33
    "test:shell": "shellcheck bin/*.sh",
34
    "test:unit": "blue-tape -r ts-node/register -r source-map-support/register \"src/**/*.spec.ts\" \"src/*.spec.ts\" \"test/*.spec.ts\" \"tests/**/*.spec.ts\"",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
35
    "test:win32": "npm run test:unit",
36
    "test:debug": "blue-tape -r ts-node/register -r source-map-support/register src/puppet-web/bridge.spec.ts",
37 38 39
    "io-client": "ts-node bin/io-client",
    "demo": "ts-node example/ding-dong-bot.ts",
    "start": "npm run demo"
40
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
41 42 43 44 45
  "git": {
    "scripts": {
      "pre-push": "./script/pre-push.sh"
    }
  },
46 47
  "repository": {
    "type": "git",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
48
    "url": "git+https://github.com/chatie/wechaty.git"
49
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
50
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
51
    "wechaty-io-client": "dist/bin/io-client.js",
52 53
    "wechaty-doctor": "dist/bin/doctor.js",
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
54
  },
55 56 57 58 59 60 61 62 63
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
64
    "sdk",
65
    "wechaty",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
66
    "chatie",
67 68
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
69
  "author": {
70
    "name": "Huan LI",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
71 72 73
    "email": "zixia@zixia.net",
    "url": "www.zixia.net"
  },
74
  "license": "Apache-2.0",
75
  "bugs": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
76
    "url": "https://github.com/chatie/wechaty/issues"
77
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
78
  "homepage": "https://github.com/chatie/wechaty#readme",
79
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
80
    "env": {
81 82 83
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
84
    },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
85 86 87 88 89 90
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
91
      }
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
92
    }
93 94
  },
  "engines": {
95
    "node": ">= 8.5"
96 97
  },
  "dependencies": {
98
    "@types/node": "^9.4.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
99
    "@types/ws": "^4.0.1",
100 101 102
    "bl": "^1.2.0",
    "brolog": "^1.2.0",
    "hot-import": "^0.1.0",
103
    "mime": "^2.2.0",
104
    "puppeteer": "^0.13.0",
105
    "raven": "^2.2.0",
106
    "read-pkg-up": "^3.0.0",
107 108
    "request": "^2.83.0",
    "retry-promise": "^1.0.0",
109
    "rx-queue": "^0.3.1",
110 111 112
    "rxjs": "^5.5.0",
    "state-switch": "^0.2.0",
    "watchdog": "^0.3.0",
113
    "ws": "^4.0.0",
114
    "xml2js": "^0.4.0"
115 116
  },
  "devDependencies": {
117 118 119 120 121
    "@types/blue-tape": "^0.1.0",
    "@types/express": "^4.0.0",
    "@types/fluent-ffmpeg": "^2.1.0",
    "@types/glob": "^5.0.0p",
    "@types/mime": "^2.0.0",
122
    "@types/puppeteer": "^1.0.0",
123
    "@types/raven": "^2.1.0",
124
    "@types/read-pkg-up": "^3.0.0",
125
    "@types/request": "^2.0.0",
126
    "@types/sinon": "^4.0.0",
127 128 129 130 131 132
    "@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",
133
    "check-node-version": "^3.0.0",
134 135 136 137 138
    "cookie-parser": "^1.4.0",
    "coveralls": "^3.0.0",
    "cross-env": "^5.0.0",
    "eslint": "^4.8.0",
    "express": "^4.15.0",
139
    "finis": "^0.4.1",
140
    "fluent-ffmpeg": "^2.1.0",
141
    "git-scripts": "git+https://github.com/nkzawa/git-scripts.git",
142
    "glob": "^7.1.0",
143
    "jsdoc-to-markdown": "^4.0.0",
144 145 146
    "nyc": "^11.2.0",
    "qrcode-terminal": "^0.11.0",
    "shx": "^0.2.0",
147
    "sinon": "^4.2.0",
148 149
    "sinon-test": "^2.1.2",
    "sloc": "^0.2.0",
150
    "ts-node": "^5.0.0",
151
    "tslint": "^5.9.0",
152
    "tslint-jsdoc-rules": "^0.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
153
    "tuling123-client": "^0.0.1",
154
    "typescript": "^2.6.1"
155 156 157 158 159
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
160 161
    "README.md",
    "package.json",
162
    "bin",
163 164
    "dist/bin",
    "dist/index.*",
165 166
    "dist/src",
    "src"
167 168
  ],
  "publishConfig": {
169 170
    "tagBak": "next",
    "tag": "latest"
171
  }
Huan (李卓桓)'s avatar
0.7.58  
Huan (李卓桓) 已提交
172
}