2018-08-28 18:58:49 +00:00
|
|
|
/* eslint-env node */
|
2015-06-17 17:50:03 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2018-08-28 18:58:49 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2016-03-10 22:02:55 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2017-04-17 20:14:55 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
2015-06-17 17:50:03 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2018-08-28 18:58:49 +00:00
|
|
|
eslint: {
|
2019-05-06 23:22:12 +00:00
|
|
|
options: {
|
|
|
|
cache: true
|
|
|
|
},
|
2016-03-10 22:02:55 +00:00
|
|
|
all: [
|
2019-05-06 23:22:12 +00:00
|
|
|
'**/*.js{,on}',
|
|
|
|
'!{lib,vendor,node_modules}/**'
|
2016-03-10 22:02:55 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
banana: {
|
|
|
|
all: 'i18n/'
|
|
|
|
},
|
2017-04-17 20:14:55 +00:00
|
|
|
stylelint: {
|
|
|
|
all: [
|
|
|
|
'**/*.css',
|
2017-08-19 07:49:33 +00:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
2015-06-17 17:50:03 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-05-06 23:22:12 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
|
2015-06-17 17:50:03 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|