<commit_before>const flog        = require('fancy-log')


const themeDefBuilder = (basePath) => {

    return {
        getBasePath: () => {
            return basePath;
        },
    
        createThemeDefinitionFor: (themeName) => {
            flog.info('##### create theme def ' + themeName);
            return {
                name: themeName,
                js: {
                    // the main js, other js-files should be included via the main js
                    src: `${basePath.srcThemes}/` + themeName + `.js`,
                    dest: `${basePath.distPublic}/themes`
                },
                css: {
                    // the main scss, other scss-files should be included via the main scss
                    src_main: `${basePath.srcThemes}/` + themeName + `.scss`,
    
                    // these are some global scss-files that might come in play for most other
                    // themes as well, so they can/should be defined here
                    src: [
                        `${basePath.srcClient}/styles/global/_variables.scss`,
                        `${basePath.srcClient}/styles/global/_mixins.scss`,
                        `${basePath.srcClient}/styles/global/_*.scss`,
                        `${basePath.srcThemes}/` + themeName + `/global/_variables.scss`,
                        //`${basePath.srcThemes}/` + themeName + `/global/_mixins.scss`,
                        //`${basePath.srcThemes}/` + themeName + `/global/_*.scss`,
                        `${basePath.srcClient}/styles/vendor/_*.scss`,
                        `${basePath.srcClient}/areas/**/_*.scss`,
                        `${basePath.srcClient}/components/**/_*.scss`,
                        `${basePath.srcClient}/**/_*.scss`,
                        `${basePath.srcThemes}/` + themeName + `/**/_*.scss`
                    ],
                    dest: `${basePath.distPublic}/themes`
                },
                print: {
                    // the main scss used for print view, other scss-files (related to the print view) should be included via the main scss
                    src: `${basePath.srcThemes}/` + themeName + `_print.scss`,
                    dest: `${basePath.distPublic}/themes`
                }
            };<commit_msg>Move theme variables up to allow overwriting<commit_after>const flog        = require('fancy-log')


const themeDefBuilder = (basePath) => {

    return {
        getBasePath: () => {
            return basePath;
        },

        createThemeDefinitionFor: (themeName) => {
            flog.info('##### create theme def ' + themeName);
            return {
                name: themeName,
                js: {
                    // the main js, other js-files should be included via the main js
                    src: `${basePath.srcThemes}/` + themeName + `.js`,
                    dest: `${basePath.distPublic}/themes`
                },
                css: {
                    // the main scss, other scss-files should be included via the main scss
                    src_main: `${basePath.srcThemes}/` + themeName + `.scss`,

                    // these are some global scss-files that might come in play for most other
                    // themes as well, so they can/should be defined here
                    src: [
                        `${basePath.srcClient}/styles/global/_variables.scss`,
                        `${basePath.srcThemes}/` + themeName + `/global/_variables.scss`,
                        `${basePath.srcClient}/styles/global/_mixins.scss`,
                        `${basePath.srcClient}/styles/global/_*.scss`,
                        //`${basePath.srcThemes}/` + themeName + `/global/_mixins.scss`,
                        //`${basePath.srcThemes}/` + themeName + `/global/_*.scss`,
                        `${basePath.srcClient}/styles/vendor/_*.scss`,
                        `${basePath.srcClient}/areas/**/_*.scss`,
                        `${basePath.srcClient}/components/**/_*.scss`,
                        `${basePath.srcClient}/**/_*.scss`,
                        `${basePath.srcThemes}/` + themeName + `/**/_*.scss`
                    ],
                    dest: `${basePath.distPublic}/themes`
                },
                print: {
                    // the main scss used for print view, other scss-files (related to the print view) should be included via the main scss
                    src: `${basePath.srcThemes}/` + themeName + `_print.scss`,
                    dest: `${basePath.distPublic}/themes`
                }
            };
{'fraction_non_alphanumeric': 0.13249073872303335, 'fraction_numerical': 0.0, 'mean_word_length': 1.3170116102978293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7285667', 'n_tokens_mistral': 1208, 'n_tokens_neox': 1161, 'n_words': 262}