package.json 4.9 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
0.6.65  
Huan (李卓桓) 已提交
3
  "version": "0.6.65",
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_HEAD": "chrome",
9
    "DEFAULT_PUPPET": "web",
Huan (李卓桓)'s avatar
bug fix  
Huan (李卓桓) 已提交
10
    "DEFAULT_PROFILE": "demo",
11 12
    "DEFAULT_PORT": 8788,
    "DEFAULT_PROTOCOL": "io|0.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
13 14
    "DEFAULT_TOKEN": "WECHATY_IO_TOKEN",
    "DEFAULT_APIHOST": "api.wechaty.io",
15
    "CMD_CHROMIUM": "/wechaty/bin/xvfb-chromium"
16
  },
17
  "scripts": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
18
    "ts-node": "ts-node",
19 20
    "dist": "tsc && shx cp package.json dist/ && shx cp src/puppet-web/*.js dist/src/puppet-web/",
    "redist": "npm run clean && npm run dist",
21
    "coverage": "nyc report --reporter=text-lcov | coveralls",
22
    "doctor": "ts-node bin/doctor",
23
    "clean": "shx rm -fr dist/*",
24
    "lint": "npm run eslint && npm run tslint",
25
    "nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
26
    "eslint": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
Huan (李卓桓)'s avatar
fix "  
Huan (李卓桓) 已提交
27
    "tslint": "tslint \"{bin,example,src,test}/**/*.ts\" --exclude=\"test/fixture/**\" --exclude=\"dist/\" && tsc --noEmit",
28
    "shlint": "bash -n bin/*.sh",
29
    "pretest": "npm run clean && npm run lint && npm run dist",
30
    "sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts",
31
    "test": "npm run test:chrome",
32
    "posttest": "npm run clean && npm run sloc",
33 34 35
    "test:phantomjs": "cross-env LC_ALL=C WECHATY_HEAD=phantomjs ava --verbose --fail-fast --serial --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
    "test:chrome": "cross-env LC_ALL=C WECHATY_HEAD=chrome ava --serial --fail-fast --verbose --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
    "test:chrome:fast": "cross-env LC_ALL=C WECHATY_HEAD=chrome ava --fail-fast --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
Huan (李卓桓)'s avatar
clean  
Huan (李卓桓) 已提交
36
    "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=2m",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
37
    "testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m",
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
38
    "ava": "ava --extension ts",
39
    "io-client": "ts-node bin/io-client",
40
    "dev": "ts-node dev.ts",
41 42
    "demo": "ts-node example/ding-dong-bot.ts",
    "start": "npm run demo"
43 44 45
  },
  "repository": {
    "type": "git",
46
    "url": "git+https://github.com/wechaty/wechaty.git"
47
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
48
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
49
    "wechaty-io-client": "dist/bin/io-client.js",
50 51
    "wechaty-doctor": "dist/bin/doctor.js",
    "wechaty-version": "dist/bin/version.js"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
52
  },
53 54 55 56 57 58 59 60 61 62 63 64
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
    "wechaty",
    "微信控"
  ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
65 66 67 68 69
  "author": {
    "name": "Zhuohuan LI",
    "email": "zixia@zixia.net",
    "url": "www.zixia.net"
  },
70 71
  "license": "ISC",
  "bugs": {
72
    "url": "https://github.com/wechaty/wechaty/issues"
73
  },
74
  "homepage": "https://github.com/wechaty/wechaty#readme",
75
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
76
    "env": {
77 78 79
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
80 81 82 83
    },
    "plugins": [
      "ava"
    ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
84 85 86 87 88 89 90 91 92
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
      },
      "extends": "plugin:ava/recommended"
    }
93
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
94 95 96 97 98
  "ava": {
    "require": [
      "ts-node/register"
    ]
  },
99
  "engines": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
100
    "node": ">= 6.9.0"
101 102
  },
  "dependencies": {
103 104
    "@types/selenium-webdriver": "^2.53.34",
    "@types/socket.io": "^1.4.27",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
105
    "body-parser": "^1.15.2",
106
    "brolog": "^0.3.10",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
107
    "express": "^4.13.4",
108
    "is-ci": "^1.0.9",
109
    "is-docker": "^1.1.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
110
    "moment": "^2.17.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
111 112
    "ps-tree": "^1.0.1",
    "retry-promise": "^1.0.0",
113
    "selenium-webdriver": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
114 115
    "socket.io": "^1.4.8",
    "ws": "^1.1.1"
116 117
  },
  "devDependencies": {
118
    "@types/body-parser": "^0.0.33",
119
    "@types/express": "^4.0.33",
120 121
    "@types/fluent-ffmpeg": "^0.0.2",
    "@types/mime": "^0.0.29",
122
    "@types/node": "^6.0.45",
123
    "@types/request": "^0.0.36",
124
    "@types/sinon": "^1.16.31",
125 126 127 128
    "@types/ws": "^0.0.37",
    "apiai": "^3.0.3",
    "ava": "^0.17.0",
    "babel-eslint": "^7.1.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
129
    "cookie-parser": "^1.4.3",
130
    "coveralls": "^2.11.14",
131
    "cross-env": "^3.1.3",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
132
    "eslint": "^3.4.0",
133
    "eslint-plugin-ava": "^4.0.0",
134
    "finis": "^0.0.2",
135
    "fluent-ffmpeg": "^2.1.0",
136 137
    "nyc": "^10.0.0",
    "qrcode-terminal": "^0.11.0",
138
    "request": "^2.79.0",
139
    "shx": "^0.2.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
140
    "sinon": "^1.17.5",
141
    "sloc": "^0.1.11",
142
    "ts-node": "^1.4.1",
143
    "tslint": "^4.0.2",
144
    "tuling123-client": "^0.0.1",
145
    "typescript": "^2.1.4",
146
    "yarn": "^0.17.10"
147 148 149 150 151
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "CHANGELOG",
    "LICENSE",
152 153
    "README.md",
    "package.json",
154 155 156
    "*.js",
    "*.js.map",
    "*.d.ts",
157 158 159
    "bin/",
    "dist/",
    "src/"
160 161 162 163
  ],
  "publishConfig": {
    "tag": "next"
  }
164
}