/*
 * Author: Alexandre Havrileck (Oxyno-zeta) 
 * Date: 04/06/16
 * Licence: See Readme
 */

/* ************************************* */
/* ********       REQUIRE       ******** */
/* ************************************* */
var gulp = require('gulp');
var runSequence = require('run-sequence');
var conf = require('./conf');

/* ************************************* */
/* ********   PUBLIC FUNCTIONS  ******** */
/* ************************************* */

gulp.task('build:dev', function(cb){
	return runSequence('clean', 'build:prepare', 'app', cb);
});

gulp.task('build:prepare', function(){
	var paths = [
		conf.paths.srcFiles.js,
		conf.paths.srcFiles.package,
		conf.paths.srcFiles.node_modules,
		conf.paths.srcFiles.assets
	];
	gulp.src(paths)
		.pipe(gulp.dest(conf.paths.build.main));
});



/*
 * Author: Alexandre Havrileck (Oxyno-zeta) 
 * Date: 04/06/16
 * Licence: See Readme
 */

/* ************************************* */
/* ********       REQUIRE       ******** */
/* ************************************* */
var gulp = require('gulp');
var runSequence = require('run-sequence');
var conf = require('./conf');

/* ************************************* */
/* ********   PUBLIC FUNCTIONS  ******** */
/* ************************************* */

gulp.task('build:dev', function(cb){
	return runSequence('clean', 'build:prepare', 'app', cb);
});

gulp.task('build:prod', function(cb){
	return runSequence('clean', 'build:prepare', 'app', cb);
});

gulp.task('build:prepare', function(){
	var paths = [
		conf.paths.srcFiles.js,
		conf.paths.srcFiles.package,
		conf.paths.srcFiles.node_modules,
		conf.paths.srcFiles.assets
	];
	gulp.src(paths)
		.pipe(gulp.dest(conf.paths.build.main));
});



Fix build error on release