Files
CRM/libraries/jquery/lazyYT/Gruntfile.js
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

46 lines
1.1 KiB
JavaScript

module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*!\n' +
'* <%= pkg.name %>\n' +
'* v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>; Licensed <%= pkg.license %> %>\n' +
'*/'
},
dist: {
files: {
'<%= pkg.name %>.min.js': '<%= pkg.name %>.js'
}
}
},
jshint: {
files: ['Gruntfile.js', '<%= pkg.name %>.js'],
options: {
globals: {
jQuery: true,
console: true,
document: true
}
}
},
cssmin: {
minify: {
expand: true,
cwd: './',
src: ['*.css', '!*.min.css'],
dest: './',
ext: '.min.css'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['jshint', 'uglify', 'cssmin']);
};