{"size": 918, "ext": "js", "max_stars_repo_path": "Gulpfile.js", "max_stars_repo_name": "mwheregroup/typescript-boilerplate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Gulpfile.js", "max_issues_repo_name": "mwheregroup/typescript-boilerplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Gulpfile.js", "max_forks_repo_name": "mwheregroup/typescript-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.8571428571, "max_line_length": 68, "alphanum_fraction": 0.6252723312}
const gulp = require("gulp");
const browserify = require("browserify");
const typescript = require("gulp-typescript");
const rename = require("gulp-rename");
const typescriptProject = typescript.createProject('tsconfig.json');
const source = require('vinyl-source-stream');
const buffer = require('vinyl-buffer');


gulp.task('default', []);


gulp.task('browserify', function () {

    const browsy = browserify({
        entries: 'dist/js/index.js',
        debug: true
    });

    browsy.bundle()
        .pipe(source('dist/js/index.js'))
        .pipe(buffer())
        .pipe(rename("bundle.js"))
        .pipe(gulp.dest('dist/js'));

});
gulp.task('browserifyWatch', function () {
});

gulp.task('typescript', function () {

    var compiledData = gulp.src('*.ts')
        .pipe(typescriptProject());



    compiledData.js
        .pipe(gulp.dest('dist/js'));
});

gulp.task('typescriptWatch', function () {
});