<commit_before>var gulp = require('gulp'),
	gulpif = require('gulp-if');
	rename = require('gulp-rename'),
	concat = require('gulp-concat'),
	uglify = require('gulp-uglify');
	markdown = require('gulp-markdown');

var base_path = 'src/';

var js = {
	isHeader: function(file) {
		return file.path.indexOf('header.js') == -1;
	},
	files : [						// all js files that should not be concatinated
		base_path + 'header.js',
		base_path + 'loca/*',
		base_path + 'i18n.js',
		base_path + 'init.js',
		base_path + 'jquery-kes.js',
		base_path + 'helpers.js',
		base_path + 'common.js',
		base_path + 'apply-settings.js',
		base_path + 'check-version.js',
		base_path + 'modules/*',
		base_path + 'css.js',
		base_path + 'matcher.js',
	],
	dest : 'dist/',					// where to put minified js
	name : 'kingsage_enhancement_sui.user.js'
};

var md = {
	files: [
		'docs/*/*'
	],
	dest: 'dist/docs/'
}

gulp.task('markdown', function() {
	return gulp.src(md.files)
		.pipe(markdown())
		.pipe(gulp.dest(md.dest));
})

gulp.task('js', function() {
	return gulp.src(js.files)
		.pipe(gulpif(js.isHeader, uglify({ mangle: false })))
		.pipe(concat(js.name))
/*
		.pipe(concat(js.name))
	/*	.pipe(uglify({ 
			global_defs: { 
				DEBUG: false 
			},
		}))*/
		.pipe(gulp.dest(js.dest));
});

gulp.task('copy', function() {
	return gulp.src(js.dest + js.name)
		.pipe(gulp.dest('E:\\Firefox\\apple-sauce\\gm_scripts\\Kingsage_Enhancement_Suite'));
});

gulp.task('make', ['js'], function() {
	gulp.start('copy');
});

gulp.task('default', function() {
	gulp.watch(base_path, ['js', 'copy']);
});<commit_msg>mac save location of gm scripts<commit_after>var gulp = require('gulp'),
	gulpif = require('gulp-if');
	rename = require('gulp-rename'),
	concat = require('gulp-concat'),
	uglify = require('gulp-uglify');
	markdown = require('gulp-markdown');

var base_path = 'src/';

var js = {
	isHeader: function(file) {
		return file.path.indexOf('header.js') == -1;
	},
	files : [						// all js files that should not be concatinated
		base_path + 'header.js',
		base_path + 'loca/*',
		base_path + 'i18n.js',
		base_path + 'init.js',
		base_path + 'jquery-kes.js',
		base_path + 'helpers.js',
		base_path + 'common.js',
		base_path + 'apply-settings.js',
		base_path + 'check-version.js',
		base_path + 'modules/*',
		base_path + 'css.js',
		base_path + 'matcher.js',
	],
	dest : 'dist/',					// where to put minified js
	name : 'kingsage_enhancement_sui.user.js'
};

var md = {
	files: [
		'docs/*/*'
	],
	dest: 'dist/docs/'
}

gulp.task('markdown', function() {
	return gulp.src(md.files)
		.pipe(markdown())
		.pipe(gulp.dest(md.dest));
})

gulp.task('js', function() {
	return gulp.src(js.files)
		.pipe(gulpif(js.isHeader, uglify({ mangle: false })))
		.pipe(concat(js.name))
/*
		.pipe(concat(js.name))
	/*	.pipe(uglify({ 
			global_defs: { 
				DEBUG: false 
			},
		}))*/
		.pipe(gulp.dest(js.dest));
});

gulp.task('copy', function() {
	return gulp.src(js.dest + js.name)
		.pipe(gulp.dest('/Users/marc/Library/Application Support/Firefox/Profiles/yzbnre08.default/gm_scripts/Kingsage_Enhancement_Suite'));
});

gulp.task('make', ['js'], function() {
	gulp.start('copy');
});

gulp.task('default', function() {
	gulp.watch(base_path, ['js', 'copy']);
});
{'fraction_non_alphanumeric': 0.2122801604443073, 'fraction_numerical': 0.002468373958654736, 'mean_word_length': 3.824404761904762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2697595', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1319, 'n_words': 220}