From 80b8842dd360c60722c1c5d0db9a74554f347178 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Thu, 30 Jun 2016 10:16:33 +0200 Subject: [PATCH 1/2] Add a .npmignore file --- .npmignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..97055a2 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +Gruntfile.coffee From 4d69e2452ca20e0f47cb3aaaef45d0731e119da6 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Thu, 30 Jun 2016 10:33:13 +0200 Subject: [PATCH 2/2] Update documentation and fixing --- README.md | 4 ++-- package.json | 6 +++--- lint-xml.js => reporter.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename lint-xml.js => reporter.js (96%) diff --git a/README.md b/README.md index f913fdf..5fec280 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,6 @@ npm install lesshint-lint-xml-reporter Use [lesshint](https://github.com/lesshint/lesshint) with `-r` or `--reporter` option: ```bash -lesshint --reporter lint-xml file.less -lesshint --reporter /path/to/lesshint-lint-xml-reporter/lint-xml .js file.less +lesshint --reporter lesshint-lint-xml-reporter file.less +lesshint --reporter /path/to/lesshint-lint-xml-reporter/reporter.js file.less ``` diff --git a/package.json b/package.json index f5d0255..1bc3c8c 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "lesshint-lint-xml-reporter", "description": "A lesshint reporter compatible with csslint's xml-lint format. Can be used by Jenkins.", - "version": "0.9.0", - "main": "./less-xml.js", + "version": "0.9.1", + "main": "./reporter.js", "homepage": "https://github.com/llaumgui/lesshint-lint-xml-reporter", "author": { "name": "Guillaume Kulakowski", @@ -36,4 +36,4 @@ "bugs": { "url": "https://github.com/llaumgui/lesshint-lint-xml-reporter/issues" } -} \ No newline at end of file +} diff --git a/lint-xml.js b/reporter.js similarity index 96% rename from lint-xml.js rename to reporter.js index c7a3296..6c57d93 100644 --- a/lint-xml.js +++ b/reporter.js @@ -2,7 +2,7 @@ 'use strict'; module.exports = { - name: 'lint-xml', + name: 'lesshint-lint-xml-reporter', report: function report (results) { var resultsByfiles = {}; var output = '';