Sha256: 004744e6d29b398a88595fce312f3f24c5f3ba145394fb4054f86379e787e8ab

Contents?: true

Size: 1.58 KB

Versions: 7

Compression:

Stored size: 1.58 KB

Contents

module.exports = function (grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        concat: {
            options: {
                separator: ';'
            },
            dist: {
                src: [
                    'src/retreaver.js',
                    '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

7 entries across 7 versions & 1 rubygems

Version Path
retreaverjs-rails-0.2.5 Gruntfile.js
retreaverjs-rails-0.2.4 Gruntfile.js
retreaverjs-rails-0.2.3 Gruntfile.js
retreaverjs-rails-0.2.2 Gruntfile.js
retreaverjs-rails-0.2.1 Gruntfile.js
retreaverjs-rails-0.2.0 Gruntfile.js
retreaverjs-rails-0.1.0 Gruntfile.js