Skip to content

Commit

Permalink
Rename html task to htmllint, fixes validator#1
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Apr 23, 2012
1 parent 7eb5537 commit 1e443ea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Then specify what files to validate in your config:

```javascript
grunt.initConfig({
html: {
htmllint: {
all: ["demos/**/*.html", "tests/**/*.html"]
}
});
Expand All @@ -28,6 +28,7 @@ For fast validation, keep that in a single group, as the validator initializatio
[vnujar]: https://bitbucket.org/sideshowbarker/vnu/

## Release History
* 0.1.1 Rename html task to htmllint, fixes #1
* 0.1.0 First Release

## License
Expand Down
2 changes: 1 addition & 1 deletion grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
html: {
htmllint: {
valid: "test/valid.html",
invalid: "test/*.html"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-html",
"description": "Grunt plugin for html validation, using vnu.jar for the actual validation",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/jzaefferer/grunt-html",
"author": {
"name": "Jörn Zaefferer",
Expand Down
6 changes: 3 additions & 3 deletions tasks/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module.exports = function(grunt) {
// TASKS
// ==========================================================================

grunt.registerMultiTask('html', 'Validate html files', function() {
grunt.registerMultiTask('htmllint', 'Validate html files', function() {
var done = this.async(),
files = grunt.file.expand(this.file.src);
grunt.helper('html', files, function(error, result) {
grunt.helper('htmllint', files, function(error, result) {
if (error) {
grunt.log.error(error);
done(false);
Expand All @@ -38,7 +38,7 @@ module.exports = function(grunt) {
// HELPERS
// ==========================================================================

grunt.registerHelper('html', function(files, done) {
grunt.registerHelper('htmllint', function(files, done) {
var jar = __dirname + '/../vnu.jar';
grunt.utils.spawn({
cmd: 'java',
Expand Down
4 changes: 2 additions & 2 deletions test/html_test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var grunt = require('grunt');

exports['html'] = {
exports['htmllint'] = {
setUp: function(done) {
// setup here
done();
},
'helper': function(test) {
test.expect(1);
// tests here
grunt.helper('html', ['test/valid.html', 'test/invalid.html'], function(error, result) {
grunt.helper('htmllint', ['test/valid.html', 'test/invalid.html'], function(error, result) {
if (error) {
throw error;
}
Expand Down

0 comments on commit 1e443ea

Please sign in to comment.