<commit_before>'use strict';

var gulp        = require('gulp'),
	browserSync = require('browser-sync').create(),
	SSI 		= require('browsersync-ssi'),
	minifyCss   = require('gulp-clean-css'),
	minify   	= require('gulp-minify'),
	plumber     = require('gulp-plumber'),
	rename      = require('gulp-rename'),
	sass        = require('gulp-sass'),
	Tmaker      = require('gulp-tmaker'),
	rm      	= require('gulp-rm'),
	yargs      	= require('yargs'),
	wjson		= require('write-json'),
	verAppend 	= require('gulp-version-number'),
	fs			= require('fs'),
	useref		= require('gulp-useref'),
	gulpif 		= require('gulp-if'),
	projectInfo	= require('./projectInfo.json');
	
var switchProjectName = '_init',
	archiveName = '_init',
	publishStyle = {
		enp :{
			asset : './dist/'
		},
		default:{
			
		}
	};

// Static Server + watching scss/html files
gulp.task('serve', ['Tmaker', 'sass', 'js'], function() {

	browserSync.init({
		server: {
			baseDir:["./dist"],
			middleware:SSI({
				baseDir:'./dist',
				ext:'.shtml',
				version:'2.10.0'
			})
		}
	});

	gulp.watch("app/scss/**/*.scss", ['sass']);
	gulp.watch("app/scss/**/*.(jpg|png)", ['asset']);
	gulp.watch("app/scripts/**/*.js", ['js']);
	gulp.watch("app/**/*.html", ['Tmaker']);
	console.log('当前项目 :' + projectInfo.projectName);
});

gulp.task('Tmaker',function () {
	return gulp.src("app/**/*.html")
		.pipe(plumber())
		.pipe(Tmaker({isPreview:true}))
		.pipe(gulp.dest('dist/'))
		.pipe(browserSync.stream());
});

// Compile sass into CSS & auto-inject into browsers
gulp.task('sass', function() {<commit_msg>更新 附件 文件监控<commit_after>'use strict';

var gulp        = require('gulp'),
	browserSync = require('browser-sync').create(),
	SSI 		= require('browsersync-ssi'),
	minifyCss   = require('gulp-clean-css'),
	minify   	= require('gulp-minify'),
	plumber     = require('gulp-plumber'),
	rename      = require('gulp-rename'),
	sass        = require('gulp-sass'),
	Tmaker      = require('gulp-tmaker'),
	rm      	= require('gulp-rm'),
	yargs      	= require('yargs'),
	wjson		= require('write-json'),
	verAppend 	= require('gulp-version-number'),
	fs			= require('fs'),
	useref		= require('gulp-useref'),
	gulpif 		= require('gulp-if'),
	projectInfo	= require('./projectInfo.json');
	
var switchProjectName = '_init',
	archiveName = '_init',
	publishStyle = {
		enp :{
			asset : './dist/'
		},
		default:{
			
		}
	};

// Static Server + watching scss/html files
gulp.task('serve', ['Tmaker', 'sass', 'js'], function() {

	browserSync.init({
		server: {
			baseDir:["./dist"],
			middleware:SSI({
				baseDir:'./dist',
				ext:'.shtml',
				version:'2.10.0'
			})
		}
	});

	gulp.watch("app/scss/**/*.scss", ['sass']);
	gulp.watch("app/scss/*.+(jpg|png)", ['asset']);
	gulp.watch("app/scripts/**/*.js", ['js']);
	gulp.watch("app/**/*.html", ['Tmaker']);
	console.log('当前项目 :' + projectInfo.projectName);
});

gulp.task('Tmaker',function () {
	return gulp.src("app/**/*.html")
		.pipe(plumber())
		.pipe(Tmaker({isPreview:true}))
		.pipe(gulp.dest('dist/'))
		.pipe(browserSync.stream());
});

// Compile sass into CSS & auto-inject into browsers
gulp.task('sass', function() {
{'fraction_non_alphanumeric': 0.23113658070678128, 'fraction_numerical': 0.0025469595670168737, 'mean_word_length': 3.6205882352941177, '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': '4456803', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1205, 'n_words': 182}