2018-08-28 18:58:49 +00:00
|
|
|
/* eslint-env node */
|
2015-06-17 17:50:03 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2023-09-18 18:48:01 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
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
|
|
|
]
|
|
|
|
},
|
2023-09-18 18:48:01 +00:00
|
|
|
banana: conf.MessagesDirs,
|
2017-04-17 20:14:55 +00:00
|
|
|
stylelint: {
|
|
|
|
all: [
|
2021-09-28 15:30:00 +00:00
|
|
|
'**/*.{css,less}',
|
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' );
|
|
|
|
};
|