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