MDL-55465 grunt: Add .stylelintignore
authorDan Poltawski <dan@moodle.com>
Fri, 5 Aug 2016 16:26:42 +0000 (17:26 +0100)
committerDan Poltawski <dan@moodle.com>
Fri, 5 Aug 2016 16:48:24 +0000 (17:48 +0100)
Allow it to be generated by grunt ignorefiles
Make grunt use it rather than ignoring things manually

.stylelintignore [new file with mode: 0644]
Gruntfile.js

diff --git a/.stylelintignore b/.stylelintignore
new file mode 100644 (file)
index 0000000..c73d41a
--- /dev/null
@@ -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
index 4d9a81d..81291e1 100644 (file)
@@ -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'));
     };
 
     /**