From a26d36738ae22bd81259c8427bae7e90157d4205 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 5 Aug 2016 17:26:42 +0100 Subject: [PATCH] MDL-55465 grunt: Add .stylelintignore Allow it to be generated by grunt ignorefiles Make grunt use it rather than ignoring things manually --- .stylelintignore | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ Gruntfile.js | 5 ++++- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .stylelintignore diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 00000000000..c73d41aee15 --- /dev/null +++ b/.stylelintignore @@ -0,0 +1,55 @@ +# Generated by "grunt ignorefiles" +theme/bootstrapbase/style/ +node_modules/ +vendor/ +auth/cas/CAS/ +auth/fc/fcFPP.php +enrol/lti/ims-blti/ +filter/algebra/AlgParser.pm +filter/tex/mimetex.* +lib/editor/atto/yui/src/rangy/js/*.* +lib/editor/tinymce/plugins/pdw/tinymce/ +lib/editor/tinymce/plugins/spellchecker/rpc.php +lib/editor/tinymce/tiny_mce/ +lib/adodb/ +lib/bennu/ +lib/evalmath/ +lib/lessphp/ +lib/phpexcel/ +lib/pear/Net/ +lib/google/ +lib/htmlpurifier/ +lib/jabber/ +lib/minify/ +lib/flowplayer/ +lib/pear/Auth/RADIUS.php +lib/pear/Crypt/CHAP.php +lib/pear/HTML/Common.php +lib/pear/HTML/QuickForm.php +lib/pear/HTML/QuickForm/ +lib/pear/PEAR.php +lib/phpmailer/ +lib/simplepie/ +lib/tcpdf/ +lib/typo3/ +lib/yuilib/ +lib/yuilib/gallery/ +lib/jquery/ +lib/html2text/ +lib/markdown/ +lib/recaptchalib.php +lib/xhprof/ +lib/xmlize.php +lib/horde/ +lib/requirejs/ +lib/amd/src/loglevel.js +lib/mustache/ +lib/amd/src/mustache.js +lib/graphlib.php +lib/spout/ +lib/amd/src/chartjs-lazy.js +mod/assign/feedback/editpdf/fpdi/ +repository/s3/S3.php +theme/bootstrapbase/less/bootstrap/ +theme/bootstrapbase/javascript/html5shiv.js +theme/bootstrapbase/amd/src/bootstrap.js \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 4d9a81dc9cc..81291e111d9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -188,7 +188,7 @@ module.exports = function(grunt) { } } }, - src: ['theme/**/*.less', '!theme/bootstrapbase/less/bootstrap/*'], + src: ['theme/**/*.less'] } } }); @@ -202,6 +202,9 @@ module.exports = function(grunt) { // Generate .eslintignore. var eslintIgnores = ['# Generated by "grunt ignorefiles"', '*/**/yui/src/*/meta/', '*/**/build/'].concat(thirdPartyPaths); grunt.file.write('.eslintignore', eslintIgnores.join('\n')); + // Generate .stylelintignore. + var stylelintIgnores = ['# Generated by "grunt ignorefiles"', 'theme/bootstrapbase/style/'].concat(thirdPartyPaths); + grunt.file.write('.stylelintignore', stylelintIgnores.join('\n')); }; /**