Sha256: 417153867556c6a182f42cd94770dbef42c3db39b267a567d23eba310e283d36

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

module.exports = function (grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        concat: {
            options: {
                separator: ';'
            },
            dist: {
                src: [
                    'src/retreaver/base/helpers.js',
                    'src/retreaver/base/cookies.js',
                    'src/retreaver/base/base64.js',
                    'src/retreaver/base/data.js',
                    'src/retreaver/base/model.js',
                    'src/retreaver/base/request.js',
                    'src/retreaver/base/request_number.js',
                    'src/retreaver/cache.js',
                    'src/retreaver/number.js',
                    'src/retreaver/campaign.js',
                    'src/retreaver/callpixels.js'
                ],
                dest: 'dist/<%= pkg.name %>.js'
            }
        },
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
            },
            dist: {
                files: {
                    'dist/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
                }
            }
        },
        watch: {
            files: ['<%= jshint.files %>'],
            tasks: ['jshint']
        }
    });

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-concat');

    grunt.registerTask('default', ['concat', 'uglify']);
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
retreaverjs-rails-0.0.12 Gruntfile.js