Merge branch 'master' into greenkeeper/update-to-node-10
Showing
![docs/images/bot-qr-code.png](https://gitcode.net/JIA_CAC/wechaty/-/raw/c2c1aa53caafa25cf31761cc04abce218fd05b05/docs/images/bot-qr-code.png)
| W: | H:
| W: | H:
![docs/images/bot-qr-code.png](https://gitcode.net/JIA_CAC/wechaty/-/raw/c2c1aa53caafa25cf31761cc04abce218fd05b05/docs/images/bot-qr-code.png)
![docs/images/bot-qr-code.png](https://gitcode.net/JIA_CAC/wechaty/-/raw/c2c1aa53caafa25cf31761cc04abce218fd05b05/docs/images/bot-qr-code.png)
此差异已折叠。
index.ts
已删除
100644 → 0
{ | ||
"name": "wechaty", | ||
"version": "0.15.11", | ||
"version": "0.15.47", | ||
"description": "Wechat for Bot(Personal Account)", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"wechaty": { | ||
"DEFAULT_HEAD": 0, | ||
"DEFAULT_PORT": 8080, | ||
"DEFAULT_PUPPET": "web", | ||
"DEFAULT_PROFILE": "demo", | ||
"DEFAULT_PUPPET": "puppeteer", | ||
"DEFAULT_PROFILE": "default", | ||
"DEFAULT_PROTOCOL": "io|0.0.1", | ||
"DEFAULT_TOKEN": "WECHATY_IO_TOKEN", | ||
"DEFAULT_APIHOST": "api.chatie.io" | ||
}, | ||
"scripts": { | ||
"clean": "shx rm -fr dist/*", | ||
"dist": "npm run clean && tsc && shx cp src/puppet-web/*.js dist/src/puppet-web/", | ||
"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", | ||
"dist": "npm run clean && tsc && shx cp src/puppet-puppeteer/*.js dist/src/puppet-puppeteer/", | ||
"doc": "bash -x scripts/generate-docs.sh", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"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", | ||
"doctor": "npm run check-node-version && ts-node bin/doctor", | ||
... | ... | @@ -24,13 +24,13 @@ |
"lint": "npm run check-node-version && npm run lint:ts && npm run lint:es && npm run lint:sh", | ||
"lint:es": "eslint \"{bin,examples,scripts,src,tests}/**/*.js\" --ignore-pattern=\"tests/fixtures/**\"", | ||
"lint:md": "markdownlint README.md", | ||
"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", | ||
"lint:ts": "tslint --project tsconfig.json && tsc --noEmit", | ||
"lint:sh": "bash -n bin/*.sh", | ||
"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", | ||
"sloc": "sloc bin examples scripts src tests --details --format cli-table --keys total,source,comment && sloc bin examples scripts src tests", | ||
"ts-node": "ts-node", | ||
"test": "npm run clean && npm run lint && npm run test:unit:retry && npm run test:shell && npm run sloc", | ||
"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)", | ||
"test:pack": "bash -x scripts/npm-pack-testing.sh", | ||
"test:shell": "shellcheck bin/*.sh", | ||
"test:unit": "blue-tape -r ts-node/register \"src/**/*.spec.ts\" \"src/*.spec.ts\" \"tests/*.spec.ts\" \"tests/**/*.spec.ts\"", | ||
"test:unit:retry": "ts-node scripts/retry-unit-tests", | ||
... | ... | @@ -40,11 +40,6 @@ |
"demo": "ts-node examples/ding-dong-bot.ts", | ||
"start": "npm run demo" | ||
}, | ||
"git": { | ||
"scripts": { | ||
"pre-push": "./scripts/pre-push.sh" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/chatie/wechaty.git" | ||
... | ... | @@ -97,39 +92,47 @@ |
"node": ">= 8.5" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^9.4.0", | ||
"@types/ws": "^4.0.1", | ||
"bl": "^1.2.0", | ||
"bl": "^2.0.0", | ||
"brolog": "^1.2.0", | ||
"clone-class": "^0.6.11", | ||
"cuid": "^2.1.1", | ||
"hot-import": "^0.1.0", | ||
"express": "^4.16.3", | ||
"file-box": "^0.2.1", | ||
"hot-import": "^0.2.1", | ||
"mime": "^2.2.0", | ||
"normalize-package-data": "^2.4.0", | ||
"puppeteer": "^1.2.0", | ||
"raven": "^2.2.0", | ||
"read-pkg-up": "^3.0.0", | ||
"request": "^2.83.0", | ||
"retry-promise": "^1.0.0", | ||
"rx-queue": "^0.3.1", | ||
"rxjs": "^5.5.0", | ||
"rx-queue": "^0.4.7", | ||
"rxjs": "^6.1.0", | ||
"state-switch": "^0.4.5", | ||
"watchdog": "^0.6.3", | ||
"vinyl": "^2.1.0", | ||
"watchdog": "^0.8.1", | ||
"wechat4u": "^0.7.6", | ||
"ws": "^5.1.0", | ||
"xml2js": "^0.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/blessed": "^0.1.10", | ||
"@types/blue-tape": "^0.1.0", | ||
"@types/cuid": "^1.3.0", | ||
"@types/express": "^4.0.0", | ||
"@types/express": "^4.11.1", | ||
"@types/fluent-ffmpeg": "^2.1.0", | ||
"@types/glob": "^5.0.0p", | ||
"@types/mime": "^2.0.0", | ||
"@types/node": "^10.0.3", | ||
"@types/normalize-package-data": "^2.4.0", | ||
"@types/puppeteer": "^1.0.0", | ||
"@types/raven": "^2.1.0", | ||
"@types/read-pkg-up": "^3.0.0", | ||
"@types/request": "^2.0.0", | ||
"@types/semver": "^5.5.0", | ||
"@types/sinon": "^4.3.0", | ||
"@types/sinon": "^5.0.0", | ||
"@types/vinyl": "^2.0.2", | ||
"@types/ws": "^5.1.0", | ||
"@types/xml2js": "^0.4.0", | ||
"apiai": "^4.0.0", | ||
"babel-cli": "^6.26.0", | ||
... | ... | @@ -143,26 +146,25 @@ |
"coveralls": "^3.0.0", | ||
"cross-env": "^5.0.0", | ||
"eslint": "^4.8.0", | ||
"express": "^4.15.0", | ||
"finis": "^0.4.1", | ||
"fluent-ffmpeg": "^2.1.0", | ||
"git-scripts": "git+https://github.com/nkzawa/git-scripts.git", | ||
"glob": "^7.1.0", | ||
"jsdoc-to-markdown": "^4.0.0", | ||
"markdownlint-cli": "^0.8.1", | ||
"markdownlint-cli": "^0.9.0", | ||
"nyc": "^11.2.0", | ||
"qrcode-terminal": "^0.12.0", | ||
"semver": "^5.5.0", | ||
"shx": "^0.2.0", | ||
"sinon": "^5.0.0", | ||
"sinon": "^5.0.2", | ||
"sinon-test": "^2.1.2", | ||
"sloc": "^0.2.0", | ||
"ts-node": "^6.0.0", | ||
"tslint": "^5.9.0", | ||
"tslint": "^5.9.1", | ||
"tslint-eslint-rules": "^5.1.0", | ||
"tslint-jsdoc-rules": "^0.1.0", | ||
"tuling123-client": "^0.0.1", | ||
"typescript": "^2.6.1" | ||
"typescript": "^2.9.0-dev.20180509" | ||
}, | ||
"files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955", | ||
"files": [ | ||
... | ... | @@ -176,9 +178,13 @@ |
"dist/src", | ||
"src" | ||
], | ||
"git": { | ||
"scripts": { | ||
"pre-push": "./scripts/pre-push.sh" | ||
} | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"tagBak": "next", | ||
"tag": "latest" | ||
} | ||
} |
scripts/generate-docs.sh
0 → 100755
scripts/npm-pack-testing.sh
0 → 100755
文件已移动
src/clone-class.spec.ts
已删除
100755 → 0
src/clone-class.ts
已删除
100644 → 0
src/contact.spec.ts
0 → 100755
此差异已折叠。
src/deprecated.ts
0 → 100644
src/index.ts
0 → 100644
src/message.spec.ts
已删除
100755 → 0
此差异已折叠。
此差异已折叠。
src/message.type.ts
0 → 100644
src/puppet-config.ts
0 → 100644
src/puppet-mock/README.md
0 → 100644
src/puppet-mock/puppet-mock.ts
0 → 100644
此差异已折叠。
src/puppet.spec.ts
→
src/puppet-puppeteer/index.ts
100755 → 100644
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
src/puppet-web/puppet-web.ts
已删除
100644 → 0
此差异已折叠。
src/puppet/index.ts
0 → 100644
此差异已折叠。
此差异已折叠。
src/typings.d.ts
0 → 100644
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。