package.json 4.1 KB
Newer Older
1
{
2
  "name": "wechaty",
Huan (李卓桓)'s avatar
v0.4.0  
Huan (李卓桓) 已提交
3
  "version": "0.4.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
4
  "description": "Wechat for Bot (Personal Account)",
5
  "main": "index.js",
6
  "types": "./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
    "build": "tsc && cp package.json dist/ && cp src/puppet-web/*.js dist/src/puppet-web/",
20
    "doctor": "ts-node bin/doctor",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
21
    "clean": "rm -fr dist/*",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
22
    "lint": "npm run eslint && npm run tslint",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
23 24
    "eslint": "eslint \"{bin,example,src,test}/**/*.js\"",
    "tslint": "tslint \"{bin,example,src,test}/**/*.ts\" && tsc --noEmit",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
25
    "sloc": "sloc . --details --format cli-table --keys total,source,comment --exclude \"node_modules|doc\" && sloc . --exclude \"node_modules|doc\"",
26
    "pretest": "npm run lint && npm run clean && npm run build",
27
    "test": "npm run test:phantomjs && npm run test:chrome",
28
    "posttest": "npm run clean && npm run sloc",
29 30
    "test:phantomjs": "cross-env LC_ALL=C WECHATY_LOG=info WECHATY_HEAD=phantomjs ava --timeout=10m \"dist/test/*.spec.js\"",
    "test:phantomjs.bak": "cross-env LC_ALL=C WECHATY_LOG=info WECHATY_HEAD=phantomjs ava --timeout=10m \"dist/{src,test}/**/*.spec.js\"",
31
    "test:chrome": "cross-env LC_ALL=C WECHATY_LOG=silly WECHATY_HEAD=chrome ava --timeout=10m \"dist/{src,test}/**/*.spec.js\"",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
32
    "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=3m",
33
    "testdist": "ava --ext ts --verbose --fail-fast --timeout=3m",
34
    "ava": "cross-env LC_ALL=C WECHATY_LOG=verbose ts-node node_modules/.bin/ava \"{src,test}/**/*.spec.js\"",
35
    "start": "ts-node bin/client",
36 37
    "dev": "ts-node dev.ts",
    "demo": "ts-node example/ding-dong-bot.ts"
38 39 40
  },
  "repository": {
    "type": "git",
41
    "url": "git+https://github.com/wechaty/wechaty.git"
42
  },
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
43
  "bin": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
44 45 46
    "wechaty-client": "bin/client.ts",
    "wechaty-doctor": "bin/doctor.ts",
    "wechaty-version": "bin/version.ts"
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
47
  },
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
  "keywords": [
    "wechat",
    "微信",
    "weixin",
    "personal",
    "bot",
    "robot",
    "chatbot",
    "framework",
    "wechaty",
    "微信控"
  ],
  "author": "Zhuohuan LI <zixia@zixia.net>",
  "license": "ISC",
  "bugs": {
63
    "url": "https://github.com/wechaty/wechaty/issues"
64
  },
65
  "homepage": "https://github.com/wechaty/wechaty#readme",
66
  "eslintConfig": {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
67
    "env": {
68 69 70
      "browser": true,
      "node": true,
      "es6": true
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
71 72 73 74
    },
    "plugins": [
      "ava"
    ],
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
75 76 77 78 79 80 81 82 83
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
        "impliedStrict": true
      },
      "extends": "plugin:ava/recommended"
    }
84 85
  },
  "engines": {
86
    "node": ">= 6.0.0"
87 88
  },
  "dependencies": {
89
    "arrify": "^1.0.1",
90
    "ava": "^0.16.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
91
    "body-parser": "^1.15.2",
92
    "brolog": "^0.3.10",
93
    "chromedriver": "^2.23.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
94
    "express": "^4.13.4",
95
    "is-ci": "^1.0.9",
96
    "phantomjs-prebuilt": "^2.1.12",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
97 98 99 100 101
    "ps-tree": "^1.0.1",
    "retry-promise": "^1.0.0",
    "selenium-webdriver": "^3.0.0-beta-1",
    "socket.io": "^1.4.8",
    "ws": "^1.1.1"
102 103
  },
  "devDependencies": {
104 105
    "@types/body-parser": "0.0.33",
    "@types/express": "^4.0.33",
106
    "@types/mime": "0.0.29",
107 108
    "@types/node": "^6.0.45",
    "@types/selenium-webdriver": "^2.53.33",
109
    "@types/sinon": "^1.16.31",
110 111
    "@types/socket.io": "^1.4.27",
    "@types/ws": "0.0.34",
112
    "apiai": "^2.0.7",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
113
    "ava": "^0.16.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
114
    "babel-eslint": "^6.1.2",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
115 116
    "cookie-parser": "^1.4.3",
    "cross-env": "^2.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
117 118
    "eslint": "^3.4.0",
    "eslint-plugin-ava": "^3.0.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
119
    "qrcode-terminal": "^0.10.0",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
120
    "sinon": "^1.17.5",
121
    "sloc": "^0.1.11",
122
    "ts-node": "^1.4.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
123 124
    "tslint": "^3.15.1",
    "tuling123-client": "0.0.1",
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
125
    "typescript": "^2.0.3"
126 127 128 129 130 131 132 133 134
  },
  "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
  "files": [
    "package.json",
    "README.md",
    "CHANGELOG",
    "LICENSE",
    "src/",
    "bin/"
135
  ]
136
}