-
Notifications
You must be signed in to change notification settings - Fork 39
Open
mryvlin/grunt-w3c-validation
#1Description
Getting following error -
C:\sample2>grunt
Local Npm module "grunt-install-dependencies" not found. Is it installed?
Loading "html_validation.js" tasks...ERROR
TypeError: Cannot assign to read only property 'name' of function () {// Merge task-specific and/or target-specific options with these defaults.
va...... }
Warning: Task "css-validation" not found. Use --force to continue.
This what i have in Gruntfile.js
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'html-validation': {
options: {
reset: grunt.option('reset') || false,
stoponerror: false,
/*remotePath: "http://decodize.com/",
remoteFiles: ["html/moving-from-wordpress-to-octopress/",
"css/site-preloading-methods/"], //or
remoteFiles: "validation-files.json", // JSON file contains array of page paths.
relaxerror: ["Bad value X-UA-Compatible for attribute http-equiv on element meta."] //ignores these errors */
},
files: {
src: [
'src/index.html',
]
}
},
'css-validation': {
options: {
reset: grunt.option('reset') || false,
stoponerror:false,
relaxerror: [],
profile: 'css3', // possible profiles are: none, css1, css2, css21, css3, svg, svgbasic, svgtiny, mobile, atsc-tv, tv
medium: 'all', // possible media are: all, aural, braille, embossed, handheld, print, projection, screen, tty, tv, presentation
warnings: '0' // possible warnings are: 2 (all), 1 (normal), 0 (most important), no (no warnings)
},
files: {
src: ['src/css/*.css']
}
}
});
grunt.loadNpmTasks('grunt-w3c-validation');
grunt.registerTask("default", ["html-validation"]);
grunt.registerTask("default", ["css-validation"]);
};
Metadata
Metadata
Assignees
Labels
No labels