mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
29 lines
791 B
TypeScript
29 lines
791 B
TypeScript
/// <reference path="gruntjs.d.ts" />
|
|
|
|
// Official code sample from
|
|
// http://gruntjs.com/getting-started#an-example-gruntfile
|
|
|
|
// exports should work same as module.exports
|
|
exports = function (grunt) {
|
|
|
|
// Project configuration.
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
uglify: {
|
|
options: {
|
|
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
|
|
},
|
|
build: {
|
|
src: 'src/<%= pkg.name %>.js',
|
|
dest: 'build/<%= pkg.name %>.min.js'
|
|
}
|
|
}
|
|
});
|
|
|
|
// Load the plugin that provides the "uglify" task.
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
|
|
// Default task(s).
|
|
grunt.registerTask('default', ['uglify']);
|
|
|
|
}; |