Last change
on this file since 484 was
484,
checked in by hendrikvanantwerpen, 11 years ago
|
Commit node_modules, to make checkouts and builds more deterministic.
|
File size:
939 bytes
|
Rev | Line | |
---|
[484] | 1 | /*
|
---|
| 2 | * grunt-htmlhint
|
---|
| 3 | * https://github.com/yaniswang/grunt-htmlhint
|
---|
| 4 | *
|
---|
| 5 | * Copyright (c) 2013 Yanis Wang
|
---|
| 6 | * Licensed under the MIT license.
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | 'use strict';
|
---|
| 10 |
|
---|
| 11 | module.exports = function(grunt) {
|
---|
| 12 |
|
---|
| 13 | // Project configuration.
|
---|
| 14 | grunt.initConfig({
|
---|
| 15 | jshint: {
|
---|
| 16 | all: [
|
---|
| 17 | 'Gruntfile.js',
|
---|
| 18 | 'tasks/*.js'
|
---|
| 19 | ],
|
---|
| 20 | options: {
|
---|
| 21 | jshintrc: '.jshintrc',
|
---|
| 22 | },
|
---|
| 23 | },
|
---|
| 24 |
|
---|
| 25 | // Configuration to be run (and then tested).
|
---|
| 26 | htmlhint: {
|
---|
| 27 | all: {
|
---|
| 28 | options: {
|
---|
| 29 | 'tag-pair': true,
|
---|
| 30 | 'htmlhintrc': 'test/.htmlhintrc'
|
---|
| 31 | },
|
---|
| 32 | src: 'test/fixtures/*.html'
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | });
|
---|
| 37 |
|
---|
| 38 | // Actually load this plugin's task(s).
|
---|
| 39 | grunt.loadTasks('tasks');
|
---|
| 40 |
|
---|
| 41 | // These plugins provide necessary tasks.
|
---|
| 42 | grunt.loadNpmTasks('grunt-contrib-jshint');
|
---|
| 43 |
|
---|
| 44 | // By default, lint and run all tests.
|
---|
| 45 | grunt.registerTask('default', ['jshint', 'htmlhint']);
|
---|
| 46 |
|
---|
| 47 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.