diff --git a/.npmignore b/.npmignore index 97055a2..c02cb0f 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1,6 @@ -Gruntfile.coffee +.codeclimate.yml +.coffeelintrc +.editorconfig +.eslintrc.json +.travis.yml +Gruntfile.coffee \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 6f01884..ef514eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: node_js node_js: - "node" + - "8" + - "7" - "6" - "5" - "4" - - "0.12" - - "0.11" - - "0.10" diff --git a/README.md b/README.md index 5fec280..5ec01c3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # lesshint-lint-xml-reporter [![npm version](https://badge.fury.io/js/lesshint-lint-xml-reporter.svg)](https://www.npmjs.com/package/lesshint-lint-xml-reporter) [![Build Status](https://travis-ci.org/llaumgui/lesshint-lint-xml-reporter.svg?branch=master)](https://travis-ci.org/llaumgui/lesshint-lint-xml-reporter) [![Code Climate](https://codeclimate.com/github/llaumgui/lesshint-lint-xml-reporter/badges/gpa.svg)](https://codeclimate.com/github/llaumgui/lesshint-lint-xml-reporter) [![devDependency Status](https://david-dm.org/llaumgui/lesshint-lint-xml-reporter/dev-status.svg)](https://david-dm.org/llaumgui/lesshint-lint-xml-reporter#info=devDependencies) -A [lesshint](https://github.com/lesshint/lesshint)'s [reporter](https://github.com/lesshint/lesshint/blob/master/lib/lesshint.js#reporters) using the same lint-xml format that [CSSLint](https://github.com/CSSLint/csslint). +A [lesshint](https://github.com/lesshint/lesshint)'s [reporter](https://github.com/lesshint/lesshint/blob/master/lib/lesshint.js#reporters) using the same lint-xml format that [CSSLint](https://github.com/CSSLint/csslint). Can be used by [Jenkins](https://jenkins.io/). ## Installation Run the following command from the command line (add -g to install globally): diff --git a/package.json b/package.json index 1bc3c8c..392f26d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lesshint-lint-xml-reporter", - "description": "A lesshint reporter compatible with csslint's xml-lint format. Can be used by Jenkins.", - "version": "0.9.1", + "description": "A lesshint's reporter using the same lint-xml format that CSSLint. Can be used by Jenkins.", + "version": "1.0.0", "main": "./reporter.js", "homepage": "https://github.com/llaumgui/lesshint-lint-xml-reporter", "author": { @@ -19,6 +19,9 @@ "lesshint", "reporter" ], + "engines" : { + "node" : ">=4.0.0" + }, "dependencies": { }, "devDependencies": { @@ -30,7 +33,8 @@ "grunt-mdlint": "latest" }, "scripts": { - "test": "grunt travis --verbose" + "test": "grunt travis --verbose", + "lint": "grunt lint --verbose" }, "license": "MIT", "bugs": { diff --git a/reporter.js b/reporter.js index 6c57d93..e220f9f 100644 --- a/reporter.js +++ b/reporter.js @@ -29,7 +29,7 @@ module.exports = { if (resultsByfiles[result.file] === undefined) { resultsByfiles[result.file] = ''; } - resultsByfiles[result.fullPath] += output + ' />\n'; + resultsByfiles[result.file] += output + ' />\n'; }); Object.keys(resultsByfiles).forEach(function (file) {