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