123456789101112131415161718192021222324252627282930313233 |
- module.exports = function(grunt) {
- grunt.initConfig({
- uglify: {
- options: {
- banner: grunt.file.read("header.txt")
- },
- build: {
- files: {
- "bootbox.min.js": ["bootbox.js"]
- }
- }
- },
- jshint: {
- options: {
- jshintrc: ".jshintrc"
- },
- all: ["bootbox.js"]
- },
- karma: {
- unit: {
- configFile: "karma.conf.js"
- }
- }
- });
- grunt.loadNpmTasks("grunt-contrib-uglify");
- grunt.loadNpmTasks("grunt-contrib-jshint");
- grunt.loadNpmTasks("grunt-karma");
- grunt.registerTask("default", ["jshint", "karma"]);
- };
|