42 lines
763 B
JavaScript
42 lines
763 B
JavaScript
'use strict';
|
|
|
|
/* eslint-env node, es6 */
|
|
|
|
module.exports = function ( grunt ) {
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
|
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
|
|
|
|
grunt.initConfig( {
|
|
eslint: {
|
|
options: {
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.{js,json}',
|
|
'!src/jquery.uls.data.js',
|
|
'!examples/**',
|
|
'!node_modules/**',
|
|
'!vendor/**'
|
|
]
|
|
},
|
|
stylelint: {
|
|
options: {
|
|
syntax: 'css'
|
|
},
|
|
src: [
|
|
'**/*.css',
|
|
'!node_modules/**'
|
|
]
|
|
},
|
|
qunit: {
|
|
all: 'test/index.html'
|
|
}
|
|
} );
|
|
|
|
grunt.registerTask( 'lint', [ 'eslint', 'stylelint' ] );
|
|
grunt.registerTask( 'test', [ 'lint', 'qunit' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|