mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Clean Up the Contributing Documentation and Process: Part III
* Remove PostCSS from Grunt. * Add StyleLint to Grunt.
This commit is contained in:
parent
1a54bafdd5
commit
a90f2cb156
19
Gruntfile.js
19
Gruntfile.js
@ -8,21 +8,16 @@ module.exports = function(grunt) {
|
||||
},
|
||||
target: ["js/*.js", "modules/default/*.js", "serveronly/*.js", "*.js"]
|
||||
},
|
||||
postcss: {
|
||||
lint: {
|
||||
stylelint: {
|
||||
simple: {
|
||||
options: {
|
||||
processors: [
|
||||
require("stylelint")({"extends": "stylelint-config-standard", "font-family-name-quotes": "double-where-recommended"}),
|
||||
require("postcss-reporter")({ clearMessages: true })
|
||||
]
|
||||
configFile: ".stylelintrc"
|
||||
},
|
||||
dist: {
|
||||
src: "**/**/**/**/**/**/**/**.css"
|
||||
}
|
||||
src: "**/**/**/**/**/**/**/**/*.css"
|
||||
}
|
||||
}
|
||||
});
|
||||
grunt.loadNpmTasks("grunt-eslint");
|
||||
grunt.loadNpmTasks("grunt-postcss");
|
||||
grunt.registerTask("default", ["eslint", "postcss:lint"]);
|
||||
};
|
||||
grunt.loadNpmTasks("grunt-stylelint");
|
||||
grunt.registerTask("default", ["eslint", "stylelint"]);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user