2016-05-03 19:51:07 -04:00
|
|
|
module.exports = function(grunt) {
|
|
|
|
require("time-grunt")(grunt);
|
|
|
|
grunt.initConfig({
|
|
|
|
pkg: grunt.file.readJSON("package.json"),
|
|
|
|
eslint: {
|
|
|
|
options: {
|
|
|
|
configFile: ".eslintrc.json"
|
|
|
|
},
|
|
|
|
target: ["js/*.js", "modules/default/*.js", "serveronly/*.js", "*.js"]
|
|
|
|
},
|
2016-09-08 15:17:20 -04:00
|
|
|
stylelint: {
|
|
|
|
simple: {
|
2016-05-03 19:51:07 -04:00
|
|
|
options: {
|
2016-09-08 15:17:20 -04:00
|
|
|
configFile: ".stylelintrc"
|
2016-05-03 19:51:07 -04:00
|
|
|
},
|
2016-09-08 15:41:12 -04:00
|
|
|
src: ["css/custom.css", "css/main.css", "modules/default/calendar/calendar.css", "modules/default/clock/clock_styles.css", "modules/default/currentweather/currentweather.css", "modules/default/weatherforcast/weatherforcast.css"]
|
2016-05-03 19:51:07 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
grunt.loadNpmTasks("grunt-eslint");
|
2016-09-08 15:17:20 -04:00
|
|
|
grunt.loadNpmTasks("grunt-stylelint");
|
|
|
|
grunt.registerTask("default", ["eslint", "stylelint"]);
|
|
|
|
};
|