mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-14 17:55:07 +00:00
d8f4982e79
* using CodeMirror addon matchBrackets * highlights the matching bracket of a pair * highlights brackets when cursor is inside a pair * feature usable in source code editor Bug: T261857 Change-Id: Ib01d9919a47bb29684b54501644b01936b57972a
36 lines
713 B
JavaScript
36 lines
713 B
JavaScript
/* eslint-env node, es6 */
|
|
module.exports = function ( grunt ) {
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
|
|
|
grunt.initConfig( {
|
|
eslint: {
|
|
options: {
|
|
cache: true,
|
|
fix: grunt.option( 'fix' )
|
|
},
|
|
all: [
|
|
'**/*.{js,json}',
|
|
'!resources/lib/**',
|
|
'!{vendor,node_modules}/**'
|
|
]
|
|
},
|
|
stylelint: {
|
|
all: [
|
|
'**/*.{css,less}',
|
|
'!resources/lib/**',
|
|
'!node_modules/**',
|
|
'!vendor/**',
|
|
'resources/lib/codemirror-fixes.less'
|
|
]
|
|
},
|
|
banana: {
|
|
all: 'i18n/'
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|