easytemplatejs
Version:
High-performance, small, pure, JavaScript template engine. Support:`CommonJS`, `AMD`, `CMD`, `Node.js`, `Express`, `koa`, `<etj-script>`, `<etj-style>`.
40 lines (38 loc) • 784 B
JavaScript
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, Express]
*
*/
`
},
build: {
src: 'src/*.js',
dest: 'dist/easy.templatejs.min.js'
}
},
});
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('release', ['clean', 'uglify']);
grunt.registerTask('default', ['release']);
};