<commit_before>
var gulp = require('gulp');
var runSequence = require('run-sequence');

require('gulp-command')(gulp);

var gulpConfig = require('../../../gulpConfig.js');
var uglifyCompression = gulpConfig.uglifyCompression;

gulp.task('dev', function (callback) {
	return runSequence(
		['copy:appStatic', 'copy:imajsServer', 'copy:environment', 'shim', 'polyfill'],
		['Es6ToEs5:app', 'Es6ToEs5:server', 'Es6ToEs5:vendor'],
		['less', 'doc', 'locale', 'Es6ToEs5:vendor:client', 'Es6ToEs5:vendor:server'],
		['server'],
		['devTest', 'watch'],
		callback
	);
});

gulp
	.option('build', '-e, --env', 'Build environment')
	.task('build', function (callback) {

		if (this.flags.env === 'prod') {
			uglifyCompression.global_defs.$Debug = false;
		}

		var tasks = [
			['copy:appStatic', 'copy:imajsServer', 'copy:environment', 'shim', 'polyfill'], // copy public folder, concat shim
			['Es6ToEs5:app', 'Es6ToEs5:server', 'Es6ToEs5:vendor'], // compile app and vendor script
			['less', 'doc', 'locale', 'Es6ToEs5:vendor:client', 'Es6ToEs5:vendor:server'] // adjust vendors, compile less, create doc
		];
		if (['prod', 'test'].indexOf(this.flags.env) > -1) {
			tasks.push(
				['bundle:js:app', 'bundle:js:server', 'bundle:css'],<commit_msg>#! build task every bundle resources<commit_after>
var gulp = require('gulp');
var runSequence = require('run-sequence');

require('gulp-command')(gulp);

var gulpConfig = require('../../../gulpConfig.js');
var uglifyCompression = gulpConfig.uglifyCompression;

gulp.task('dev', function (callback) {
	return runSequence(
		['copy:appStatic', 'copy:imajsServer', 'copy:environment', 'shim', 'polyfill'],
		['Es6ToEs5:app', 'Es6ToEs5:server', 'Es6ToEs5:vendor'],
		['less', 'doc', 'locale', 'Es6ToEs5:vendor:client', 'Es6ToEs5:vendor:server'],
		['server'],
		['devTest', 'watch'],
		callback
	);
});

gulp
	.option('build', '-e, --env', 'Build environment')
	.task('build', function (callback) {

		if (this.flags.env === 'prod') {
			uglifyCompression.global_defs.$Debug = false;
		}

		var tasks = [
			['copy:appStatic', 'copy:imajsServer', 'copy:environment', 'shim', 'polyfill'], // copy public folder, concat shim
			['Es6ToEs5:app', 'Es6ToEs5:server', 'Es6ToEs5:vendor'], // compile app and vendor script
			['less', 'doc', 'locale', 'Es6ToEs5:vendor:client', 'Es6ToEs5:vendor:server'], // adjust vendors, compile less, create doc
			['bundle:js:app', 'bundle:js:server', 'bundle:css']
		];

		if (['prod', 'test'].indexOf(this.flags.env) > -1) {
			tasks.push(
{'fraction_non_alphanumeric': 0.2124950258654994, 'fraction_numerical': 0.016713091922005572, 'mean_word_length': 5.413265306122449, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5959517', 'n_tokens_mistral': 961, 'n_tokens_neox': 908, 'n_words': 182}