1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/4a55f350a68d/ Changeset: 4a55f350a68d User: carlfeberhard Date: 2014-08-15 15:28:27 Summary: Build: add grunt-contrib-clean to styles builder, remove tmp-site-config.less on build Affected #: 2 files diff -r e4ce04f7e7447d9f4d6a736d8f64ad2575a88813 -r 4a55f350a68d65d7e076505af575ca112894f677 static/style/Gruntfile.js --- a/static/style/Gruntfile.js +++ b/static/style/Gruntfile.js @@ -6,7 +6,16 @@ var theme = grunt.option( 'theme', 'blue' ); var out = 'blue'; - var lessFiles = [ 'base', 'autocomplete_tagging', 'embed_item', 'iphone', 'masthead', 'library', 'trackster', 'circster' ]; + var lessFiles = [ + 'base', + 'autocomplete_tagging', + 'embed_item', + 'iphone', + 'masthead', + 'library', + 'trackster', + 'circster' + ]; var _ = grunt.util._; var fmt = _.sprintf; @@ -46,23 +55,29 @@ paths: [ out ] }, dist: { - files: _.reduce( lessFiles, function( d, s ) { - d[ fmt( '%s/%s.css', out, s ) ] = [ fmt( 'src/less/%s.less', s ) ]; return d + files: _.reduce( lessFiles, function( d, s ) { + d[ fmt( '%s/%s.css', out, s ) ] = [ fmt( 'src/less/%s.less', s ) ]; return d; }, {} ) } }, + + // remove tmp files + clean: { + clean : [ fmt('%s/tmp-site-config.less', out) ] + } }); // Write theme variable for less grunt.registerTask('less-site-config', 'Write site configuration for less', function() { - grunt.file.write( fmt('%s/tmp-site-config.less', out), fmt( "@theme-name: %s;", theme ) ) + grunt.file.write( fmt('%s/tmp-site-config.less', out), fmt( "@theme-name: %s;", theme ) ); }); // These plugins provide necessary tasks. grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-spritesmith'); + grunt.loadNpmTasks('grunt-contrib-clean'); // Default task. - grunt.registerTask('default', ['sprite', 'less-site-config', 'less']); + grunt.registerTask('default', ['sprite', 'less-site-config', 'less', 'clean']); }; diff -r e4ce04f7e7447d9f4d6a736d8f64ad2575a88813 -r 4a55f350a68d65d7e076505af575ca112894f677 static/style/package.json --- a/static/style/package.json +++ b/static/style/package.json @@ -4,6 +4,7 @@ "grunt": "~0.4.1", "grunt-recess": "~0.3.5", "grunt-spritesmith": "~1.7.0", - "grunt-contrib-less": "~0.7.0" + "grunt-contrib-less": "~0.7.0", + "grunt-contrib-clean": "0.6.0" } } Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.