Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Merge pull request #246 from mozilla/html-validation
Browse files Browse the repository at this point in the history
Bug 1080419 - Add an optional grunt HTML validator
  • Loading branch information
camd committed Nov 6, 2014
2 parents c379aaf + 7e8c587 commit cd1bc89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Gruntfile.js
Expand Up @@ -12,6 +12,16 @@ module.exports = function(grunt) {

clean: ['dist/'],

htmlangular: {
options: {
reportpath: null
},
files: {
src: ['webapp/app/*.html'],
nonull: true
},
},

useminPrepare:{
index: {
src:'webapp/app/index.html',
Expand Down Expand Up @@ -177,6 +187,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-usemin');
grunt.loadNpmTasks('grunt-cache-busting');
grunt.loadNpmTasks('grunt-angular-templates');
grunt.loadNpmTasks('grunt-html-angular-validate');

// Default tasks
grunt.registerTask('build', [
Expand All @@ -192,6 +203,4 @@ module.exports = function(grunt) {
'ngtemplates',
'cache-busting'
]);


};
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -15,6 +15,7 @@
"grunt-contrib-cssmin": "^0.9.0",
"grunt-contrib-uglify": "^0.4.0",
"grunt-filerev": "^0.2.1",
"grunt-html-angular-validate": "^0.4.0",
"grunt-usemin": "~2.1.1",
"karma": ">=0.12.0",
"karma-cli": "0.0.4",
Expand Down

0 comments on commit cd1bc89

Please sign in to comment.