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