mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
38 lines
764 B
JavaScript
38 lines
764 B
JavaScript
/*jshint node: true */
|
|
|
|
'use strict';
|
|
|
|
module.exports = function (grunt) {
|
|
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
qunit: {
|
|
all: ['test/index.html']
|
|
},
|
|
jshint: {
|
|
files: [
|
|
'Gruntfile.js',
|
|
'jquery.cookie.js'
|
|
],
|
|
options: {
|
|
jshintrc: '.jshintrc'
|
|
}
|
|
},
|
|
uglify: {
|
|
options: {
|
|
banner: '/*! <%= pkg.name %> v<%= pkg.version %> | <%= pkg.license %> */\n'
|
|
},
|
|
build: {
|
|
src: 'jquery.cookie.js',
|
|
dest: 'build/jquery.cookie-<%= pkg.version %>.min.js'
|
|
}
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
grunt.loadNpmTasks('grunt-contrib-qunit');
|
|
|
|
grunt.registerTask('default', ['jshint', 'qunit']);
|
|
grunt.registerTask('ci', ['default']);
|
|
};
|