UNPKG

easy.templatejs

Version:

Small, pure, high-performance JavaScript template engine.

40 lines (38 loc) 775 B
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: { release: { src: ["dist/*.js"] } }, uglify: { options: { banner: `/** * EasyTemplate * * Version <%=pkg.version %> * * http://easyproject.cn * https://github.com/ushelp * * Copyright 2012 Ray [ inthinkcolor@gmail.com ] * Released under the MIT license * * [Support AMD, CMD, CommonJS, Node.js] * */ ` }, build: { src: 'src/*.js', dest: 'dist/<%= pkg.name %>.min.js' } }, }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.registerTask('release', ['clean', 'uglify']); grunt.registerTask('default', ['release']); };