diff --git a/.gitignore b/.gitignore index 3aea00a..6426352 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ node_modules .idea npm-debug.log cov-int +.nyc_output coverage hubot-symphony.iml certs diff --git a/.istanbul.yml b/.istanbul.yml deleted file mode 100644 index f5e0877..0000000 --- a/.istanbul.yml +++ /dev/null @@ -1,12 +0,0 @@ -verbose: false -instrumentation: - root: . - extensions: - - .coffee - excludes: ['**/it/**'] - include-all-sources: true -reporting: - print: summary - reports: - - text-summary - - lcov \ No newline at end of file diff --git a/.npmignore b/.npmignore index cecbdb8..610c4f4 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,5 @@ .codeclimate.yml -.istanbul.yml +.flowconfig .travis.yml coffeelint.json it/* diff --git a/package.json b/package.json index 4bece68..ad930ac 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hubot-symphony", "description": "Hubot adapter for Symphony", - "main": "src/adapter.coffee", + "main": "src/adapter.js", "scripts": { "precommit": "npm test", "prepush": "npm test", @@ -9,7 +9,7 @@ "diagnostic": "babel-node src/diagnostic.js", "flow": "flow", "test": "mocha test/*.js", - "test-cov": "cross-env COFFEECOV_INIT_ALL=false mocha --require coffee-coverage/register-istanbul test/*.js && istanbul report", + "test-cov": "nyc npm test", "it": "mocha it/*.coffee it/*.js", "generate-yarn-lockfile": "npm install -g yarn && npm install --production && yarn install", "semantic-release": "semantic-release pre && npm publish && semantic-release post" @@ -45,7 +45,6 @@ "babel-preset-es2016": "6.22.0", "babel-register": "6.24.0", "chai": "3.5.0", - "coffee-coverage": "2.0.1", "coffee-script": "1.12.4", "coveralls": "2.11.15", "cross-env": "3.1.4", @@ -54,9 +53,9 @@ "ghooks": "2.0.0", "hubot": "2.19.0", "husky": "0.12.0", - "istanbul": "0.4.5", "mocha": "3.2.0", "nock": "9.0.2", + "nyc": "10.1.2", "semantic-release": "6.3.2", "uuid": "3.0.1", "validate-commit-msg": "2.10.1", @@ -72,5 +71,23 @@ "validate-commit-msg": { "helpMessage": "This repo is Commitizen friendly, commit using git cz or see https://github.com/stevemao/conventional-changelog-angular/blob/master/convention.md" } + }, + "nyc": { + "include": [ + "src/*.js" + ], + "exclude": [ + "**/*-compiled.js", + "**/*-compiled.js.map" + ], + "require": [ + "babel-register" + ], + "reporter": [ + "lcov", + "text" + ], + "sourceMap": true, + "instrument": true } }