Files
jquery.uls/Gruntfile.js
Santhosh Thottingal 990c5402f4 Use sed and a template for generating jquery.uls.data.js
Drop browserify.
2021-03-18 18:56:17 +02:00

43 lines
807 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',
'!scripts/jquery.uls.data.template.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' );
};