MDL-55465 grunt: Add .stylelintignore

Allow it to be generated by grunt ignorefiles
Make grunt use it rather than ignoring things manually
This commit is contained in:
Dan Poltawski 2016-08-05 17:26:42 +01:00
parent 7752762674
commit a26d36738a
2 changed files with 59 additions and 1 deletions

55
.stylelintignore Normal file
View File

@ -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

View 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'));
};
/**