forked from wikimedia/mediawiki-extensions-PageForms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
45 lines (43 loc) · 1.03 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* eslint-env node */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.initConfig( {
eslint: {
options: {
cache: true
},
all: [
'**/*.js',
'!node_modules/**',
'!vendor/**',
'!libs/jquery.browser.js',
'!libs/jquery.fancytree.js',
'!libs/jquery.rateyo.js',
'!libs/FullCalendar-2.9.1/fullcalendar.js',
'!libs/FullCalendar-3.9.0/fullcalendar.js',
'!libs/FullCalendar-3.9.0/locale-all.js',
'!libs/FancyBox/jquery.fancybox.1.3.4.js',
'!libs/FancyBox/jquery.fancybox.3.2.10.js',
'!libs/jquery.fancytree.ui-deps.js',
'!libs/jquery.fancytree.js',
'!libs/jsgrid.js',
'!libs/select2.js',
'!libs/Sortable.js'
]
},
banana: {
all: 'i18n/'
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**',
'!vendor/**'
]
}
} );
grunt.registerTask( 'test', [ 'eslint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};