l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

gruntfile.js (970B)


      1 module.exports = function(grunt) {
      2     grunt.initConfig({
      3         pkg: grunt.file.readJSON("package.json"),
      4 
      5         uglify: {
      6             options: {
      7                 banner: "/*! <%= pkg.name %> | <%= pkg.author %> | <%= pkg.license %> */\n",
      8                 sourceMap: true
      9             },
     10             build: {
     11                 files: [
     12                     {
     13                         src: "src/sprintf.js",
     14                         dest: "dist/sprintf.min.js"
     15                     },
     16                     {
     17                         src: "src/angular-sprintf.js",
     18                         dest: "dist/angular-sprintf.min.js"
     19                     }
     20                 ]
     21             }
     22         },
     23 
     24         watch: {
     25             js: {
     26                 files: "src/*.js",
     27                 tasks: ["uglify"]
     28             }
     29         }
     30     })
     31 
     32     grunt.loadNpmTasks("grunt-contrib-uglify")
     33     grunt.loadNpmTasks("grunt-contrib-watch")
     34 
     35     grunt.registerTask("default", ["uglify", "watch"])
     36 }