mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-15 03:34:25 +00:00
a79bb8dff4
* jsdoc.json was copied from Minerva. The markdown plugin from that config was removed since there no usages of that in Vector. * Added latest jsdoc dependency to package.json * Copied 'jsdoc' task from Minerva into Vector. Revised storybook output so that multiple docs (storybook + jsdoc) could be in /docs * Made collapsibleTabs.js JSDoc compliant (This was really the only thing using jsduck syntax) * Modified Gruntfile stylelinter to ignore docs folder Bug: T239258 Change-Id: Id07d591ffe7bf0ac021109051e89b91ffdcf4c78
38 lines
778 B
JavaScript
38 lines
778 B
JavaScript
/* eslint-env node, es6 */
|
|
module.exports = function ( grunt ) {
|
|
var conf = grunt.file.readJSON( 'skin.json' );
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
|
|
|
grunt.initConfig( {
|
|
eslint: {
|
|
options: {
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.js{,on}',
|
|
'!{vendor,node_modules,docs}/**'
|
|
]
|
|
},
|
|
banana: conf.MessagesDirs,
|
|
stylelint: {
|
|
options: {
|
|
syntax: 'less'
|
|
},
|
|
all: [
|
|
'*.{less,css}',
|
|
'**/*.{less,css}',
|
|
'!node_modules/**',
|
|
'!docs/**',
|
|
'!skinStyles/jquery.ui/**',
|
|
'!vendor/**'
|
|
]
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|