cloud-convert
Version:
Easy-to-use Node.js implementation of the CloudConvert API.
31 lines (26 loc) • 875 B
JavaScript
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['packages/CloudConvert.js'],
options: {
jshintrc: '.jshintrc'
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> by <%= pkg.author %> created on <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: ['packages/CloudConvert.js'],
dest: 'dist/<%= pkg.name %>.min.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', ['jshint']);
grunt.registerTask('build', ['uglify']);
grunt.registerTask('default', ['uglify', 'jshint']);
};