mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
28 lines
739 B
JavaScript
28 lines
739 B
JavaScript
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"]
|
|
},
|
|
postcss: {
|
|
lint: {
|
|
options: {
|
|
processors: [
|
|
require("stylelint")({"extends": "stylelint-config-standard", "font-family-name-quotes": "double-where-recommended"}),
|
|
require("postcss-reporter")({ clearMessages: true })
|
|
]
|
|
},
|
|
dist: {
|
|
src: "**/**/**/**/**/**/**/**.css"
|
|
}
|
|
}
|
|
}
|
|
});
|
|
grunt.loadNpmTasks("grunt-eslint");
|
|
grunt.loadNpmTasks("grunt-postcss");
|
|
grunt.registerTask("default", ["eslint", "postcss:lint"]);
|
|
}; |