Sha256: 7e84f5ed74897de182c131b5dedef9911a6fb51adeddaba5ac58072879dd0db2

Contents?: true

Size: 988 Bytes

Versions: 9

Compression:

Stored size: 988 Bytes

Contents

var chaosBuild = require('spm-chaos-build');

module.exports = function (grunt) {
    chaosBuild.loadTasks(grunt);

    var config = chaosBuild.getConfig('javascripts', {
        outputDirectory : 'javascripts/sea-modules',
        gzip : 'all'
    });
    grunt.initConfig(config);

    grunt.registerTask('write-manifest', function () {
        var mapArr = grunt.config.get('md5map');
        var family = config.family;
        grunt.file.write('seajs-map.json', JSON.stringify(mapArr, null, '\t'));
    });

    grunt.registerTask('chaos-build', [
        'clean:dist', // delete dist direcotry first
        'transport:spm',  // src/* -> .build/src/*
        'concat:relative',  // .build/src/* -> .build/dist/*.js
        'concat:all',
        'uglify:js',  // .build/dist/*.js -> .build/dist/*.js
        'md5:js', // .build/dist/*.js -> dist/*-md5.js
        'clean:spm',
        'spm-newline',
        'compress',
        'write-manifest'
    ]);
};

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
seajs-rails-0.0.9 lib/tasks/template/Gruntfile.js
seajs-rails-0.0.8 lib/tasks/template/Gruntfile.js
seajs-rails-0.0.7 lib/tasks/template/Gruntfile.js
seajs-rails-0.0.6 lib/tasks/template/Gruntfile.js
seajs-rails-0.0.5 lib/tasks/template/Gruntfile.js
seajs-rails-0.0.4 lib/tasks/template/Gruntfile.js
seajs-rails-0.0.3 lib/tasks/template/Gruntfile.js
seajs-rails-0.0.2 lib/tasks/template/Gruntfile.js
seajs-rails-0.0.1 lib/tasks/template/Gruntfile.js