build/documentation/generate-typedocs.js
function execute() {

    if (dryRun) {
        console.log(`In ${destDir}, this script would...`);
    } else {
        console.log(`Generating API documentation using TypeDoc...`);
    }

    const packages = path.resolve(rootDir, srcDir);

    glob(packages, {realpath:true}, function(error, srcFiles) {
       
        srcFiles.forEach((srcPath) => {    
            
            var valid = true;

            var packageName = srcPath
                .split(path.sep)
                .pop();

            excludedPackages.forEach((excludedPackageName) => {
                if (packageName === excludedPackageName) {
                    console.log(chalk.yellow(`...skip generating TypeDoc API files for ${packageName}`));
                    valid = false;
                }
            });

            if(valid) {
                dryRun ? console.log(`...generate TypeDoc API files for ${packageName}`) : createAPIFiles(packageName, srcPath);
            }

        });

    });
}
function execute() {

    if (dryRun) {
        console.log(`In ${destDir}, this script would...`);
    } else {
        console.log(`Generating API documentation using TypeDoc...`);
    }

    const packages = path.resolve(rootDir, srcDir);

    glob(packages, {realpath:true}, function(error, srcFiles) {
       
        srcFiles.forEach((srcPath) => {    
            
            var valid = true;

            var packageName = srcPath
                .split(path.sep)
                .pop();

            excludedPackages.forEach((excludedPackageName) => {
                if (packageName === excludedPackageName) {
                    console.log(chalk.yellow(`...skip generating TypeDoc API files for ${packageName}`));
                    valid = false;
                }
            });

            if(valid) {
                dryRun ? console.log(`...generate TypeDoc API files for ${packageName}`) : createAPIFiles(packageName, srcPath);
            }

        });

    });
}
function execute ( ) { if ( dryRun ) { console . log ( ` ${ destDir } ` ) ; } else { console . log ( ` ` ) ; } const packages = path . resolve ( rootDir , srcDir ) ; glob ( packages , { realpath : true } , function ( error , srcFiles ) { srcFiles . forEach ( ( srcPath ) => { var valid = true ; var packageName = srcPath . split ( path . sep ) . pop ( ) ; excludedPackages . forEach ( ( excludedPackageName ) => { if ( packageName === excludedPackageName ) { console . log ( chalk . yellow ( ` ${ packageName } ` ) ) ; valid = false ; } } ) ; if ( valid ) { dryRun ? console . log ( ` ${ packageName } ` ) : createAPIFiles ( packageName , srcPath ) ; } } ) ; } ) ; }
Generate TypeDocs for each package
Generate TypeDocs for each package