From a90f2cb1560956ab3354a370ad881a61f5bc91dc Mon Sep 17 00:00:00 2001 From: Nicholas Hubbard Date: Thu, 8 Sep 2016 15:17:20 -0400 Subject: [PATCH] Clean Up the Contributing Documentation and Process: Part III * Remove PostCSS from Grunt. * Add StyleLint to Grunt. --- Gruntfile.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ac499fe3..ff1552a8 100644 --- a/Gruntfile.js +++ b/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"]); -}; \ No newline at end of file + grunt.loadNpmTasks("grunt-stylelint"); + grunt.registerTask("default", ["eslint", "stylelint"]); +};