jade-cache
Version:
Jade cache is a recursive compiler (and middleware), compile all your jade to make it available in cache for fast rendering.
33 lines (29 loc) • 814 B
JavaScript
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['src/**/*.js', 'test/**/*.js']
},
// UGLIFY TASK
uglify: {
task1: {
options: {
preserveComments: 'some',
report: 'min',
banner: '/*! \n* @license <%= pkg.name %> - v<%= pkg.version %>\n' +
'* (c) 2013 Julien VALERY https://github.com/darul75/jade-cache\n' +
'* License: MIT \n*/\n'
},
files: {'lib/jcc.js': ['src/jcc.js']
}
}
}
});
// LOAD PLUGINS
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
// TASK REGISTER
grunt.registerTask('default', ['jshint', 'uglify:task1']);
};