{ "name": "wechaty", "version": "0.8.234", "description": "Wechat for Bot(Personal Account)", "main": "dist/index.js", "types": "dist/index.d.ts", "wechaty": { "DEFAULT_HEAD": "chrome", "DEFAULT_PUPPET": "web", "DEFAULT_PROFILE": "demo", "DEFAULT_PORT": 8788, "DEFAULT_PROTOCOL": "io|0.0.1", "DEFAULT_TOKEN": "WECHATY_IO_TOKEN", "DEFAULT_APIHOST": "api.chatie.io", "CMD_CHROMIUM": "/wechaty/bin/xvfb-chromium" }, "scripts": { "ava": "ava --verbose --extension ts", "ts-node": "ts-node", "dist": "npm run clean && tsc && jq \"del (.files)\" < package.json > dist/package.json && shx cp src/puppet-web/*.js dist/src/puppet-web/", "doc": "npm run dist && echo '# Wechaty v'$(jq -r .version package.json)' Documentation\n' > docs/index.md && jsdoc2md dist/src/{wechaty,room,contact,friend-request,message}.js dist/src/puppet-web/friend-request.js>> docs/index.md", "coverage": "nyc report --reporter=text-lcov | coveralls", "changelog": "github_changelog_generator -u chatie -p wechaty && sed -i'.bak' /greenkeeper/d CHANGELOG.md", "doctor": "npm run check-node-version && ts-node bin/doctor", "clean": "shx rm -fr dist/*", "check-node-version": "check-node-version --node \">= 6.9\"", "lint": "npm run clean && npm run check-node-version && npm run lint:es && npm run lint:ts", "lint:es": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"", "lint:ts": "tslint --version && tslint --project tsconfig.json --type-check \"{bin,example,src,test}/**/*.ts\" --exclude \"test/fixture/**\" --exclude \"dist/\" && npm run clean && tsc --noEmit", "lint:sh": "bash -n bin/*.sh", "nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --timeout=5m \"dist/{src,test}/**/*.spec.js\"", "pretest": "npm run clean && npm run lint && npm run dist", "sloc": "sloc bin example src test index.ts --details --format cli-table --keys total,source,comment && sloc bin example src test index.ts", "test": "npm run test:chrome", "posttest": "npm run clean && npm run sloc", "test:chrome": "cross-env LC_ALL=C WECHATY_HEAD=chrome ava --serial --fail-fast --verbose --timeout=5m \"dist/{src,test}/**/*.spec.js\"", "test:bug": "cross-env LC_ALL=C WECHATY_HEAD=chrome WECHATY_LOG=silly ava --serial --fail-fast --verbose --timeout=5m \"dist/src/message.spec.js\"", "test:chrome:fast": "cross-env LC_ALL=C WECHATY_HEAD=chrome ava --concurrency 5 --fail-fast --timeout=5m \"dist/{src,test}/**/*.spec.js\"", "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=2m", "testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m", "test:pack": "npm run dist && rm -fr package wechaty-*.*.*.tgz && npm pack --verbose && tar zxvf wechaty-*.*.*.tgz", "test:npm": "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", "io-client": "ts-node bin/io-client", "dev": "ts-node dev.ts", "demo": "ts-node example/ding-dong-bot.ts", "start": "npm run demo" }, "repository": { "type": "git", "url": "git+https://github.com/chatie/wechaty.git" }, "bin": { "wechaty-io-client": "dist/bin/io-client.js", "wechaty-doctor": "dist/bin/doctor.js", "wechaty-version": "dist/bin/version.js" }, "keywords": [ "wechat", "微信", "weixin", "personal", "bot", "robot", "chatbot", "framework", "wechaty", "chatie", "微信控" ], "author": { "name": "Huan LI", "email": "zixia@zixia.net", "url": "www.zixia.net" }, "license": "Apache-2.0", "bugs": { "url": "https://github.com/chatie/wechaty/issues" }, "homepage": "https://github.com/chatie/wechaty#readme", "eslintConfig": { "env": { "browser": true, "node": true, "es6": true }, "plugins": [ "ava" ], "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 7, "sourceType": "module", "ecmaFeatures": { "impliedStrict": true }, "extends": "plugin:ava/recommended" } }, "ava": { "require": [ "ts-node/register" ] }, "engines": { "node": ">= 6.9.0" }, "dependencies": { "@types/express": "4.0.37", "@types/ws": "3.0.2", "@types/node": "8.0.31", "bl": "1.2.1", "body-parser": "1.18.2", "chromedriver": "2.32.3", "brolog": "1.2.6", "express": "4.15.2", "ps-tree": "1.1.0", "raven": "2.1.2", "request": "2.83.0", "retry-promise": "1.0.0", "selenium-webdriver": "3.5.0", "state-switch": "0.1.13", "ws": "3.2.0", "xml2js": "0.4.19" }, "devDependencies": { "@types/body-parser": "1.16.5", "@types/fluent-ffmpeg": "2.1.4", "@types/glob": "5.0.32", "@types/mime": "2.0.0", "@types/raven": "2.1.2", "@types/request": "2.0.3", "@types/selenium-webdriver": "3.0.7", "@types/sinon": "2.3.5", "@types/xml2js": "0.4.0", "apiai": "4.0.3", "ava": "0.22.0", "babel-cli": "6.26.0", "babel-eslint": "8.0.1", "babel-preset-es2015": "6.24.1", "check-node-version": "2.1.0", "cookie-parser": "1.4.3", "coveralls": "2.13.3", "cross-env": "5.0.5", "eslint": "4.8.0", "eslint-plugin-ava": "4.2.2", "finis": "0.0.2", "fluent-ffmpeg": "2.1.2", "glob": "7.1.2", "jsdoc-to-markdown": "3.0.0", "nyc": "11.2.1", "qrcode-terminal": "0.11.0", "shx": "0.2.2", "sinon": "4.0.0", "sinon-test": "2.1.1", "sloc": "0.2.0", "ts-node": "3.3.0", "tslint": "5.7.0", "tslint-jsdoc-rules": "0.1.2", "tuling123-client": "0.0.1", "typescript": "2.5.3", "yarn": "1.1.0" }, "files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955", "files": [ "CHANGELOG", "LICENSE", "README.md", "package.json", "bin", "dist/bin", "dist/index.*", "dist/src", "src" ], "publishConfig": { "tagBak": "next", "tag": "latest" } }