lib/file-filter.js
function generatedJsFiles(what) {
        var ret = [];
        if ((!what || what === 'templates') && cog.getOption('template')) {
            ret.push({src: null, dst: cog.getOption('template')});
        }
        if (cog.getOption('compile_typescript')) {
            var src = srcTypescriptFiles();
            for (var i = 0; i < src.length; i++) {
                if (src[i].src.substr(-3) === '.ts') {
                    src[i].dst = src[i].src.substr(0, src[i].src.length - 3) + '.js';
                    ret.push(src[i]);
                }
            }
        }
        return ret;
    }
function generatedJsFiles(what) {
        var ret = [];
        if ((!what || what === 'templates') && cog.getOption('template')) {
            ret.push({src: null, dst: cog.getOption('template')});
        }
        if (cog.getOption('compile_typescript')) {
            var src = srcTypescriptFiles();
            for (var i = 0; i < src.length; i++) {
                if (src[i].src.substr(-3) === '.ts') {
                    src[i].dst = src[i].src.substr(0, src[i].src.length - 3) + '.js';
                    ret.push(src[i]);
                }
            }
        }
        return ret;
    }
function generatedJsFiles ( what ) { var ret = [ ] ; if ( ( ! what || what === 'templates' ) && cog . getOption ( 'template' ) ) { ret . push ( { src : null , dst : cog . getOption ( 'template' ) } ) ; } if ( cog . getOption ( 'compile_typescript' ) ) { var src = srcTypescriptFiles ( ) ; for ( var i = 0 ; i < src . length ; i ++ ) { if ( src [ i ] . src . substr ( - 3 ) === '.ts' ) { src [ i ] . dst = src [ i ] . src . substr ( 0 , src [ i ] . src . length - 3 ) + '.js' ; ret . push ( src [ i ] ) ; } } } return ret ; }
List of files that are generated Javascript files.
List of files that are generated Javascript files .