Answer the question
In order to leave comments, you need to log in
Why is the grunt task not running?
Hey!
Content of Gruntfile.js :
module.exports = function(grunt) {
require("load-grunt-tasks")(grunt);
console.log('=====> 1');
grunt.loadNpmTasks('grunt-lintspaces');
console.log('=====> 2');
var config = {
pkg: grunt.file.readJSON("package.json"),
lintspaces: {
codestyle: {
src: [
"**/*.js"
],
options: {
editorconfig: ".editorconfig"
}
}
}
};
grunt.registerTask("linter", ["lintspaces:codestyle"]);
grunt.initConfig(config);
};
>grunt linter
=====> 1
>> Local Npm module "grunt-lintspaces" not found. Is it installed?
=====> 2
Warning: Task "lintspaces:codestyle" not found. Use --force to continue.
Aborted due to warnings.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question