UNPKG

cloudworker-proxy

Version:
44 lines 1.28 kB
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), jshint: { all: [ "*.js", "!replaceall.min.js" ] }, watch: { files: [ "*.js", "!replaceall.min.js" ], tasks: ["test"] }, jasmine: { src: "replaceall.min.js", options: { specs: "spec.js" } }, uglify: { my_target: { files: { "replaceall.min.js": [ "replaceall.js" ] } }, options: { banner: "/*!\n " + "<%= pkg.name %> (v<%= pkg.version %>) <%= grunt.template.today('dd-mm-yyyy') %>\n " + "(c) <%= pkg.author %>\n" + "*/\n" } } }); grunt.loadNpmTasks("grunt-contrib-watch"); grunt.loadNpmTasks("grunt-contrib-jshint"); grunt.loadNpmTasks("grunt-contrib-jasmine"); grunt.loadNpmTasks("grunt-contrib-uglify"); grunt.registerTask("test", ["jshint", "uglify", "jasmine"]); };