<commit_before>var fs = require('fs');
var _ = require('lodash');

try {
	var projectConfig = require('../projectConfig.json');
} catch (err) {
	console.log(err + ' -- using default values');
	var projectConfig = false;
}

var src  = 'app';
var dev  = '.tmp';
var dist = 'dist';


module.exports = {
    global: {
        src:  src,
        dev:  dev,
        dist: dist,
		resources: ['/resources']
    },

    zetzer: {
        partials: src + '/_partials',
        templates: src + '/_partials/layout',
        dot_template_settings: {
        strip: false,
            varname: 'ftf'
        },
        env: require('./tasks/zetzerHelper')
    },

    autoprefixer: {
        //browsers: ['last 3 versions', 'last 8 Chrome versions', 'last 8 Firefox versions' , 'Firefox ESR', 'ie 9', 'last 2 iOS versions', 'Android 4']
        browsers: ['last 1 version']
    },

    modernizr: {
        options : [
            "setClasses",
            "addTest"
        ],
	excludeTests: ['hidden']
    },

    uglify: {
        preserveComments: 'license'
    },

    cleanCss: {},

    cssmin: {},

    iconfont: {
        fontName: 'Icons',
		prependUnicode: true,
        timestamp: Math.round(Date.now()/1000),
        normalize: true
    },

    iconfontCss: {
        fontName: 'Icons',
        path: src + '/resources/css/fonts/iconfont/_icons.scss',
        targetPath: '../../../../.iconfont/_icons.scss',
        fontPath: '../fonts/icons/',
        cssClass: 'icon'
    },

    connect: {
        port: 9000
    },

    handlebars: {
        templateWrap: 'Handlebars.template(<%= contents %>)',
        partialWrap: 'Handlebars.registerPartial(<%= processPartialName(file.relative) %>, Handlebars.template(<%= contents %>));',
        namespace: 'global.configuration.data.tpl',
        noRedeclare: true
    },

    sass: {
        includePaths: [
            'app/resources/bower_components/foundation-sites/scss/'
        ]
    }

};

if(projectConfig) {
	_.merge(module.exports, projectConfig);
}<commit_msg>added typescript config<commit_after>var fs = require('fs');
var _ = require('lodash');

try {
	var projectConfig = require('../projectConfig.json');
} catch (err) {
	console.log(err + ' -- using default values');
	var projectConfig = false;
}

var src  = 'app';
var dev  = '.tmp';
var dist = 'dist';


module.exports = {
    global: {
        src:  src,
        dev:  dev,
        dist: dist,
		resources: ['/resources']
    },

    zetzer: {
        partials: src + '/_partials',
        templates: src + '/_partials/layout',
        dot_template_settings: {
        strip: false,
            varname: 'ftf'
        },
        env: require('./tasks/zetzerHelper')
    },

    autoprefixer: {
        //browsers: ['last 3 versions', 'last 8 Chrome versions', 'last 8 Firefox versions' , 'Firefox ESR', 'ie 9', 'last 2 iOS versions', 'Android 4']
        browsers: ['last 1 version']
    },

    modernizr: {
        options : [
            "setClasses",
            "addTest"
        ],
	excludeTests: ['hidden']
    },

    uglify: {
        preserveComments: 'license'
    },

    cleanCss: {},

    cssmin: {},

    iconfont: {
        fontName: 'Icons',
		prependUnicode: true,
        timestamp: Math.round(Date.now()/1000),
        normalize: true
    },

    iconfontCss: {
        fontName: 'Icons',
        path: src + '/resources/css/fonts/iconfont/_icons.scss',
        targetPath: '../../../../.iconfont/_icons.scss',
        fontPath: '../fonts/icons/',
        cssClass: 'icon'
    },

    connect: {
        port: 9000
    },

    handlebars: {
        templateWrap: 'Handlebars.template(<%= contents %>)',
        partialWrap: 'Handlebars.registerPartial(<%= processPartialName(file.relative) %>, Handlebars.template(<%= contents %>));',
        namespace: 'global.configuration.data.tpl',
        noRedeclare: true
    },

    sass: {
        includePaths: [
            'app/resources/bower_components/foundation-sites/scss/'
        ]
    },

    typescript: {
		noImplicitAny: true,
		suppressImplicitAnyIndexErrors: true,
		module: 'umd',
		target: 'ES5'
	}

};

if(projectConfig) {
	_.merge(module.exports, projectConfig);
}
{'fraction_non_alphanumeric': 0.15966386554621848, 'fraction_numerical': 0.00744297719087635, 'mean_word_length': 2.151285930408472, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1146826', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1308, 'n_words': 275}