2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 05:17:41 +00:00

prepublish:test script

This commit is contained in:
Yago 2016-07-07 23:44:45 +02:00
parent 94540c39bf
commit 12200eea4c

View File

@ -14,8 +14,9 @@
"bot" "bot"
], ],
"scripts": { "scripts": {
"prepublish": "./node_modules/.bin/babel -d ./lib src", "prepublish": "babel -d ./lib src",
"test": "./node_modules/.bin/mocha test/index.js --timeout 10000", "test": "mocha test/index.js --timeout 10000",
"prepublish:test": "npm run prepublish && npm run test",
"test-cov": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", "test-cov": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"gen-doc": "./node_modules/.bin/jsdoc2md --src src/telegram.js -t README.hbs > README.md", "gen-doc": "./node_modules/.bin/jsdoc2md --src src/telegram.js -t README.hbs > README.md",
"eslint": "./node_modules/.bin/eslint ./src" "eslint": "./node_modules/.bin/eslint ./src"