var runSequence = require('run-sequence');

var typescript = require('./typescript');
var requirejs = require('./requirejs');

exports.config = function(gulp, packageName, locations) {
	requirejs.config(gulp, packageName, locations);
	
	gulp.task('compile', ['compile.debug']);
	
	gulp.task('compile.debug', function() {
		return typescript.compileDebug('**/*.ts', locations.source, locations.debug, gulp);
	});
	
	gulp.task('compile.release', function(done) {
		runSequence('compile.release.bin',
					'compile.release.optimize',
					'compile.release.clean',
					done);
	});
};
var runSequence = require('run-sequence');

var typescript = require('./typescript');

exports.config = function(gulp, packageName, locations) {
	gulp.task('compile', ['compile.debug']);
	
	gulp.task('compile.debug', function() {
		return typescript.compileDebug(locations.source, locations.debug, gulp);
	});
	
	gulp.task('compile.release', function(done) {
		return typescript.compileRelease(locations.source, locations.release, true, gulp);
	});
};
Remove requirejs (using internal TypeScript modules) And update to match the new TypeScript services (no path required now).
Remove requirejs (using internal TypeScript modules) And update to match the new TypeScript services (no path required now).
