<commit_before>﻿module.exports = function (grunt) {
    // Parse Options from CLI
    var outputDirectory = grunt.option("outputDirectory") || "build",
        paths = {
            output: outputDirectory,
            base: outputDirectory + "/spa",
            ui: outputDirectory + "/spa/ui"
        };

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        paths: paths,

        typescript: {
            options: {
                target: "es3",
                module: "amd",
                sourcemap: false,
                declaration: false,
                comments: false,
                disallowbool: true,
                disallowimportmodule: true
            },
            base: {
                src: "spa/main.ts",
                dest: "<%= paths.output %>/",
                //options: {
                //    module: "commonjs",
                //    declaration: true
                //}
            },
            modules: {
                src: "spa/**/*.ts",
                dest: "<%= paths.output %>/"
            },
            data: {
                src: "spa/data/**/*.ts",
                dest: "<%= paths.output %>/"
            },
            math: {
                src: [
                    "spa/math/**/*.ts",
                    "spa/math.ts"
                ],<commit_msg>Append a common typescript part to build only top level files<commit_after>﻿module.exports = function (grunt) {
    // Parse Options from CLI
    var outputDirectory = grunt.option("outputDirectory") || "build",
        paths = {
            output: outputDirectory,
            base: outputDirectory + "/spa",
            ui: outputDirectory + "/spa/ui"
        };

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        paths: paths,

        typescript: {
            options: {
                target: "es3",
                module: "amd",
                sourcemap: false,
                declaration: false,
                comments: false,
                disallowbool: true,
                disallowimportmodule: true
            },
            base: {
                src: "spa/main.ts",
                dest: "<%= paths.output %>/",
                //options: {
                //    module: "commonjs",
                //    declaration: true
                //}
            },
            common: {
                src: "spa/*.ts",
                dest: "<%= paths.output %>/"
            },
            modules: {
                src: "spa/**/*.ts",
                dest: "<%= paths.output %>/"
            },
            data: {
                src: "spa/data/**/*.ts",
                dest: "<%= paths.output %>/"
            },
            math: {
                src: [
                    "spa/math/**/*.ts",
                    "spa/math.ts"
                ],
{'fraction_non_alphanumeric': 0.13519091847265222, 'fraction_numerical': 0.0006879944960440316, 'mean_word_length': 0.9809264305177112, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3455815', 'n_tokens_mistral': 788, 'n_tokens_neox': 727, 'n_words': 149}