tslint-teamcity-reporter
Advanced tools
Comparing version 3.0.1 to 3.1.0
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireWildcard = require("@babel/runtime-corejs2/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); | ||
@@ -10,8 +10,10 @@ exports.__esModule = true; | ||
var _values = _interopRequireDefault(require("@babel/runtime/core-js/object/values")); | ||
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values")); | ||
var _stringify = _interopRequireDefault(require("@babel/runtime/core-js/json/stringify")); | ||
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify")); | ||
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose")); | ||
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inheritsLoose")); | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty")); | ||
var path = _interopRequireWildcard(require("path")); | ||
@@ -120,12 +122,7 @@ | ||
exports.Formatter = Formatter; | ||
Object.defineProperty(Formatter, "metadata", { | ||
configurable: true, | ||
enumerable: true, | ||
writable: true, | ||
value: { | ||
formatterName: 'json', | ||
description: 'Formats errors as TeamCity report.', | ||
sample: "\n##teamcity[testSuiteStarted name='TSLint Violations']\n##teamcity[testStarted name='TSLint Violations: test1.ts']\n##teamcity[testFailed name='TSLint Violations: test1.ts' message='line 0, col 0, first failure (first-name)|nline 8, col 1, last failure (last-name)']\n##teamcity[testStdOut name='TSLint Violations: test1.ts' out='warning: line 0, col 0, full failure (full-name)']\n##teamcity[testFinished name='TSLint Violations: test1.ts']\n##teamcity[testStarted name='TSLint Violations: test2.ts']\n##teamcity[testStdOut name='TSLint Violations: test2.ts' out='warning: line 8, col 1, full failure (full-name)']\n##teamcity[testFinished name='TSLint Violations: test2.ts']\n##teamcity[testSuiteFinished name='TSLint Violations']\n##teamcity[buildStatisticValue key='TSLint Error Count' value='2']\n##teamcity[buildStatisticValue key='TSLint Warning Count' value='2']".slice(1), | ||
consumer: 'machine' | ||
} | ||
(0, _defineProperty2.default)(Formatter, "metadata", { | ||
formatterName: 'json', | ||
description: 'Formats errors as TeamCity report.', | ||
sample: "\n##teamcity[testSuiteStarted name='TSLint Violations']\n##teamcity[testStarted name='TSLint Violations: test1.ts']\n##teamcity[testFailed name='TSLint Violations: test1.ts' message='line 0, col 0, first failure (first-name)|nline 8, col 1, last failure (last-name)']\n##teamcity[testStdOut name='TSLint Violations: test1.ts' out='warning: line 0, col 0, full failure (full-name)']\n##teamcity[testFinished name='TSLint Violations: test1.ts']\n##teamcity[testStarted name='TSLint Violations: test2.ts']\n##teamcity[testStdOut name='TSLint Violations: test2.ts' out='warning: line 8, col 1, full failure (full-name)']\n##teamcity[testFinished name='TSLint Violations: test2.ts']\n##teamcity[testSuiteFinished name='TSLint Violations']\n##teamcity[buildStatisticValue key='TSLint Error Count' value='2']\n##teamcity[buildStatisticValue key='TSLint Warning Count' value='2']".slice(1), | ||
consumer: 'machine' | ||
}); |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); | ||
@@ -12,5 +12,5 @@ exports.__esModule = true; | ||
var _extends3 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); | ||
var _extends3 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/extends")); | ||
var _keys = _interopRequireDefault(require("@babel/runtime/core-js/object/keys")); | ||
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys")); | ||
@@ -17,0 +17,0 @@ var _messages; |
{ | ||
"name": "tslint-teamcity-reporter", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "A TSLint formatter/reporter for use in TeamCity which groups by files using TeamCity Test Suite", | ||
@@ -62,9 +62,13 @@ "main": "./index.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.35", | ||
"@babel/core": "^7.0.0-beta.35", | ||
"@babel/plugin-transform-runtime": "^7.0.0-beta.35", | ||
"@babel/preset-env": "^7.0.0-beta.35", | ||
"@babel/preset-stage-3": "^7.0.0-beta.35", | ||
"@babel/preset-typescript": "^7.0.0-beta.35", | ||
"@babel/register": "^7.0.0-beta.35", | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.6", | ||
"@babel/plugin-proposal-class-properties": "^7.1.0", | ||
"@babel/plugin-proposal-json-strings": "^7.0.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.0.0", | ||
"@babel/plugin-syntax-import-meta": "^7.0.0", | ||
"@babel/plugin-transform-runtime": "^7.1.0", | ||
"@babel/preset-env": "^7.1.6", | ||
"@babel/preset-stage-3": "^7.0.0", | ||
"@babel/preset-typescript": "^7.1.0", | ||
"@babel/register": "^7.0.0", | ||
"@types/chai": "^4.0.10", | ||
@@ -105,4 +109,4 @@ "@types/mocha": "^2.2.44", | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0-beta.35" | ||
"@babel/runtime-corejs2": "^7.1.5" | ||
} | ||
} |
@@ -41,18 +41,45 @@ # tslint-teamcity-reporter | ||
```javascript | ||
grunt.initConfig({ | ||
tslint: { | ||
options: { | ||
formatter: 'tslint-teamcity-reporter' | ||
}, | ||
files: { | ||
src: ['**/*.ts'] | ||
} | ||
} | ||
}); | ||
```js | ||
module.exports = grunt => { | ||
grunt.loadNpmTasks('grunt-tslint'); | ||
grunt.loadNpmTasks('tslint-teamcity-reporter'); | ||
grunt.registerTask('default', ['tslint']); | ||
grunt.initConfig({ | ||
tslint: { | ||
options: { | ||
configuration: './tslint.json', | ||
formatter: 'tslint-teamcity-reporter', | ||
}, | ||
files: { | ||
src: ['**/*.ts'], | ||
}, | ||
}, | ||
}); | ||
grunt.registerTask('default', ['tslint']); | ||
}; | ||
``` | ||
#### gulp-tslint | ||
```js | ||
const gulp = require('gulp'); | ||
const tslint = require('gulp-tslint'); | ||
gulp.task('tslint', () => | ||
gulp | ||
.src('**/*.ts') | ||
.pipe( | ||
tslint({ | ||
configuration: './tslint.json', | ||
formatter: 'tslint-teamcity-reporter', | ||
formattersDirectory: 'anything-but-falsy', // passing a falsy value will resolve in `null` and throw an error in tslint | ||
}), | ||
) | ||
.pipe(tslint.report()), | ||
); | ||
gulp.task('default', ['tslint']); | ||
``` | ||
### Configuration | ||
@@ -59,0 +86,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
225530
163
0
44
283
+ Added@babel/runtime-corejs2@7.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
- Removed@babel/runtime@^7.0.0-beta.35
- Removed@babel/runtime@7.26.0(transitive)