https://github.com/galaxyproject/galaxy
Raw File
Tip revision: 790e60af60093dcb8e26f093c3a87903605da206 authored by Nate Coraor on 15 December 2016, 17:46:17 UTC
Merge branch 'release_15.05' into release_15.07
Tip revision: 790e60a
GruntFile.js
module.exports = function(grunt) {
    "use strict";

    var GALAXY_PATHS = {
            dist        : '../static/scripts',
            maps        : '../static/maps',
            // this symlink allows us to serve uncompressed scripts in DEV_PATH for use with sourcemaps
            srcSymlink  : '../static/src',
        },
        TOOLSHED_PATHS = {
            dist        : '../static/toolshed/scripts',
            maps        : '../static/toolshed/maps',
            srcSymlink  : '../static/toolshed/src',
        };

    grunt.config.set( 'app', 'galaxy' );
    grunt.config.set( 'paths', GALAXY_PATHS );
    if( grunt.option( 'app' ) === 'toolshed' ){
	    grunt.config.set( 'app', grunt.option( 'app' ) );
	    grunt.config.set( 'paths', TOOLSHED_PATHS );
    }

    // see the sub directory grunt-tasks/ for individual task definitions
    grunt.loadTasks( 'grunt-tasks' );
    grunt.registerTask( 'default', [ 'uglify' ] );
};
back to top