2015-03-29 12:43:02 +00:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
grunt.config.merge({
|
|
|
|
checkDependencies: {
|
|
|
|
options: {
|
|
|
|
install: true
|
|
|
|
},
|
|
|
|
bower: {
|
|
|
|
options: {
|
|
|
|
packageManager: "bower"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
npm: {}
|
|
|
|
},
|
|
|
|
eslint: {
|
|
|
|
options: {
|
2015-03-29 14:14:10 +00:00
|
|
|
rules: {
|
|
|
|
"strict": [2, "never"],
|
|
|
|
"no-multi-spaces": 0,
|
|
|
|
"no-new": 0,
|
2015-04-07 15:41:17 +00:00
|
|
|
"no-shadow": 0,
|
2015-04-04 17:08:28 +00:00
|
|
|
"no-use-before-define": [1, "nofunc"],
|
|
|
|
"no-underscore-dangle": 0
|
2015-03-29 12:43:02 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
sources: {
|
2015-03-30 01:20:43 +00:00
|
|
|
src: ["app.js", "!Gruntfile.js", "lib/**/*.js"]
|
2015-03-29 12:43:02 +00:00
|
|
|
},
|
|
|
|
grunt: {
|
|
|
|
src: ["Gruntfile.js", "tasks/*.js"]
|
|
|
|
}
|
|
|
|
}
|
2016-05-22 11:23:43 +00:00
|
|
|
});
|
2015-03-29 12:43:02 +00:00
|
|
|
|
2016-05-22 11:23:43 +00:00
|
|
|
grunt.loadNpmTasks("grunt-check-dependencies");
|
|
|
|
grunt.loadNpmTasks("grunt-eslint");
|
|
|
|
};
|