tasks/lib/utils.js
function(grunt, task) {
		var config = task.options(grunt.config.getRaw('frontend') || {});
		if (!config.webroot) {
			return grunt.fail.fatal('You should specify "webroot" property in frontend config', 100);
		}

		var cwd = this.absPath(config.cwd || config.webroot);
		var force = false;
		if ('force' in config) {
			force = !!config.force;
		}

		return grunt.util._.extend(config, {
			force: force,
			cwd: this.absPath(config.cwd || config.webroot),
			webroot: this.absPath(config.webroot),
			srcWebroot: this.absPath(config.srcWebroot || config.webroot)
		});
	}
function(grunt, task) {
		var config = task.options(grunt.config.getRaw('frontend') || {});
		if (!config.webroot) {
			return grunt.fail.fatal('You should specify "webroot" property in frontend config', 100);
		}

		var cwd = this.absPath(config.cwd || config.webroot);
		var force = false;
		if ('force' in config) {
			force = !!config.force;
		}

		return grunt.util._.extend(config, {
			force: force,
			cwd: this.absPath(config.cwd || config.webroot),
			webroot: this.absPath(config.webroot),
			srcWebroot: this.absPath(config.srcWebroot || config.webroot)
		});
	}
function ( grunt , task ) { var config = task . options ( grunt . config . getRaw ( 'frontend' ) || { } ) ; if ( ! config . webroot ) { return grunt . fail . fatal ( 'You should specify "webroot" property in frontend config' , 100 ) ; } var cwd = this . absPath ( config . cwd || config . webroot ) ; var force = false ; if ( 'force' in config ) { force = ! ! config . force ; } return grunt . util . _ . extend ( config , { force : force , cwd : this . absPath ( config . cwd || config . webroot ) , webroot : this . absPath ( config . webroot ) , srcWebroot : this . absPath ( config . srcWebroot || config . webroot ) } ) ; }
Returns config for currently running grunt task
@param  {Object} grunt
@param  {Object} task
@return {Object}
Returns config for currently running grunt task