UNPKG

xbs-enjoyhint

Version:

Web-tool that provides the simplest way to create interactive tutorials and hints.

48 lines (44 loc) 1.28 kB
module.exports = function(grunt){ grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat:{ options: { separator: ';' }, dist:{ src:['src/*.js'], dest: '<%= pkg.name %>.js' } }, uglify: { main: { files: { '<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>'] } } }, jshint: { files: ['Gruntfile.js', 'src/*.js'], options: { "eqnull": true, "globals": { jQuery: true, console: true, module: true } } }, cssmin: { combine: { files: { 'enjoyhint.css': ['src/jquery.enjoyhint.css'] } } } }); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.registerTask("default", ["concat", "uglify", "cssmin"]) };