2021-11-12 18:06:59 -05:00
|
|
|
'use strict';
|
2020-04-20 01:31:46 -04:00
|
|
|
|
2015-06-25 14:54:19 -04:00
|
|
|
module.exports = function ( grunt ) {
|
2021-11-12 18:06:59 -05:00
|
|
|
const conf = grunt.file.readJSON( 'skin.json' );
|
2020-04-20 01:31:46 -04:00
|
|
|
|
2015-06-25 14:54:19 -04:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2017-01-23 10:14:01 -05:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
2019-02-07 01:25:33 -05:00
|
|
|
|
2015-06-25 14:54:19 -04:00
|
|
|
grunt.initConfig( {
|
2017-01-23 10:14:01 -05:00
|
|
|
eslint: {
|
2019-03-13 18:57:00 -04:00
|
|
|
options: {
|
2020-06-22 06:59:53 -04:00
|
|
|
cache: true,
|
|
|
|
fix: grunt.option( 'fix' )
|
2019-03-13 18:57:00 -04:00
|
|
|
},
|
2023-09-04 13:05:31 -04:00
|
|
|
all: [ '.' ]
|
2017-01-23 10:14:01 -05:00
|
|
|
},
|
|
|
|
banana: conf.MessagesDirs,
|
|
|
|
stylelint: {
|
|
|
|
all: [
|
2020-04-20 01:31:46 -04:00
|
|
|
'**/*.{css,less}',
|
2017-08-03 09:02:59 -04:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
2017-01-23 10:14:01 -05:00
|
|
|
]
|
2015-06-25 14:54:19 -04:00
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2020-04-20 01:31:46 -04:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] );
|
2021-05-18 09:12:46 -04:00
|
|
|
grunt.registerTask( 'default', [ 'test' ] );
|
2015-06-25 14:54:19 -04:00
|
|
|
};
|