MagicMirror/Gruntfile.js

24 lines
740 B
JavaScript
Raw Normal View History

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"]
},
stylelint: {
simple: {
2016-05-03 19:51:07 -04:00
options: {
configFile: ".stylelintrc"
2016-05-03 19:51:07 -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");
grunt.loadNpmTasks("grunt-stylelint");
grunt.registerTask("default", ["eslint", "stylelint"]);
};