From 4c40250321311d675a886984f2f83cd897dc6788 Mon Sep 17 00:00:00 2001 From: dennis-c <1841343+dennis-c@users.noreply.github.com> Date: Fri, 15 Sep 2017 08:59:09 +0200 Subject: [PATCH 1/5] Always use same key to build resultsByfiles index --- reporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From 3a580f01ebdcb2ba5deafe76b48f837374317566 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Sat, 16 Sep 2017 13:54:33 +0200 Subject: [PATCH 2/5] Bump 1.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1bc3c8c..7b8c5f2 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", + "version": "1.0.0", "main": "./reporter.js", "homepage": "https://github.com/llaumgui/lesshint-lint-xml-reporter", "author": { From c1164a04a6ccf8ad1aed43006f2cd44fdb0e6775 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Sat, 16 Sep 2017 13:57:54 +0200 Subject: [PATCH 3/5] Need NodeJS 4+ and fix travis versions --- .travis.yml | 5 ++--- package.json | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) 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/package.json b/package.json index 7b8c5f2..11f9461 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,9 @@ "lesshint", "reporter" ], + "engines" : { + "node" : ">=4.0.0" + }, "dependencies": { }, "devDependencies": { From b630dbf3b2933493964afc47103c8b2d0ab2a2d5 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Sat, 16 Sep 2017 18:35:41 +0200 Subject: [PATCH 4/5] Update doc --- README.md | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 11f9461..392f26d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lesshint-lint-xml-reporter", - "description": "A lesshint reporter compatible with csslint's xml-lint format. Can be used by Jenkins.", + "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", @@ -33,7 +33,8 @@ "grunt-mdlint": "latest" }, "scripts": { - "test": "grunt travis --verbose" + "test": "grunt travis --verbose", + "lint": "grunt lint --verbose" }, "license": "MIT", "bugs": { From 613f10be28f6a635fb142ddef4603a99f522bd18 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Sat, 16 Sep 2017 18:59:36 +0200 Subject: [PATCH 5/5] Cleanup npm package --- .npmignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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