<commit_before>const gulp = require(`gulp`);
const gclean = require(`gulp-clean`);
const gts = require(`gulp-typescript`);
const gtd = require(`gulp-typedoc`);
const gpug = require(`gulp-pug`);

const pkg = require(`./package.json`);

/**
*/
gulp.task(`build#scripts`, () => {
    const tsp = gts.createProject(`tsconfig.json`);
    return tsp.src()
    .pipe(tsp())
    .js.pipe(gulp.dest(`target/dist`));
});

/**
*/
gulp.task(`build#html`, () => {
    return gulp.src([`src/main/pug/*.pug`])
    .pipe(gpug({}))
    .pipe(gulp.dest(`target/dist`));
});

/**
*/
gulp.task(`build#electron`, () => {
    console.log(`building electron...`);
});

/**
*/
gulp.task(`build`, [`scripts`, `html`, `electron`].map(t => `build#${t}`), () => {
    console.log(`building...?`);
});

/**
*/
gulp.task(`clean`, () => {
    return gulp.src([`target`], {read: false})
    .pipe(gclean());
});

/**
*/
gulp.task(`doc`, () => {
    return gulp.src([`src/main/ts/*.ts`])
    .pipe(gtd({
        module: `commonjs`,
        target: `es5`,
        includeDeclarations: true,<commit_msg>#1 - Removed the electron task from the base build, this will most likely be moved to a separate task namespace but for now it is just left unused<commit_after>const gulp = require(`gulp`);
const gclean = require(`gulp-clean`);
const gts = require(`gulp-typescript`);
const gtd = require(`gulp-typedoc`);
const gpug = require(`gulp-pug`);

const pkg = require(`./package.json`);

/**
*/
gulp.task(`build#scripts`, () => {
    const tsp = gts.createProject(`tsconfig.json`);
    return tsp.src()
    .pipe(tsp())
    .js.pipe(gulp.dest(`target/dist`));
});

/**
*/
gulp.task(`build#html`, () => {
    return gulp.src([`src/main/pug/*.pug`])
    .pipe(gpug({}))
    .pipe(gulp.dest(`target/dist`));
});

/**
*/
gulp.task(`build#electron`, () => {
    console.log(`building electron...`);
});

/**
*/
gulp.task(`build`, [`scripts`, `html`].map(t => `build#${t}`), () => {
    console.log(`building...?`);
});

/**
*/
gulp.task(`clean`, () => {
    return gulp.src([`target`], {read: false})
    .pipe(gclean());
});

/**
*/
gulp.task(`doc`, () => {
    return gulp.src([`src/main/ts/*.ts`])
    .pipe(gtd({
        module: `commonjs`,
        target: `es5`,
        includeDeclarations: true,
{'fraction_non_alphanumeric': 0.2605228178998671, 'fraction_numerical': 0.001329198050509526, 'mean_word_length': 3.43614931237721, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '45043', 'n_tokens_mistral': 848, 'n_tokens_neox': 856, 'n_words': 137}