UNPKG

node-docker

Version:

Node wrapper around the docker REST API - NOTE: alpha status

52 lines (47 loc) 1.15 kB
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), nodeunit: { all: ['test/test_*.js'] }, watch: { files: '<config:lint.files>', tasks: 'default' }, jshint: { files: ['./*.js', 'src/*.js', 'test/*.js'], options: { curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, sub: true, undef: true, boss: true, eqnull: true, node: true }, globals: { exports: true } }, uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: ['node-docker.js'], dest: 'build/<%= pkg.name %>.js' } } }); // Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-nodeunit'); // Default task(s). grunt.registerTask('default', ['jshint', 'uglify']); };