konstantinbueschel
1/16/2013 - 3:13 PM

Alloy with a newest underscore.js

Alloy with a newest underscore.js

var PATH_UNDERSCORE = '/path/to/git/underscore';
	
task("pre:compile", function(event, logger) {
	var fs = require("fs"),
		usFrom = PATH_UNDERSCORE + '/underscore-min.js',
		usTo = event.dir.resourcesAlloy + '/underscore.js';

	logger.info('coping newest underscore.js from ' + PATH_UNDERSCORE);

	fs.writeFileSync(usTo, fs.readFileSync(usFrom, 'utf8'));
});

task("post:compile", function(event, logger){
});