https://github.com/galaxyproject/galaxy
Raw File
Tip revision: 61e6fd11424a9036573db2bf3ef9a8bee9d6b19a authored by Nicola Soranzo on 12 December 2019, 17:43:26 UTC
Merge branch 'release_16.10' into release_17.01
Tip revision: 61e6fd1
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 );
    }

    grunt.loadNpmTasks('grunt-check-modules');
    // see the sub directory grunt-tasks/ for individual task definitions
    grunt.loadTasks( 'grunt-tasks' );
    // note: 'handlebars' *not* 'templates' since handlebars doesn't call uglify
    grunt.registerTask( 'default', [ 'check-modules', 'uglify', 'webpack' ] );
};
back to top