Permalink
Browse files

Rename html task to htmllint, fixes #1

  • Loading branch information...
1 parent 7eb5537 commit 1e443ea5ff567dfe6462336afb94aa7ca5a51624 @jzaefferer committed Apr 23, 2012
Showing with 9 additions and 8 deletions.
  1. +2 −1 README.md
  2. +1 −1 grunt.js
  3. +1 −1 package.json
  4. +3 −3 tasks/html.js
  5. +2 −2 test/html_test.js
View
@@ -15,7 +15,7 @@ Then specify what files to validate in your config:
```javascript
grunt.initConfig({
- html: {
+ htmllint: {
all: ["demos/**/*.html", "tests/**/*.html"]
}
});
@@ -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
View
@@ -2,7 +2,7 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
- html: {
+ htmllint: {
valid: "test/valid.html",
invalid: "test/*.html"
},
View
@@ -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",
View
@@ -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);
@@ -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',
View
@@ -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;
}

0 comments on commit 1e443ea

Please sign in to comment.