generators/docker-base.js
function loadConfigs() {
    this.appConfigs = [];
    this.gatewayNb = 0;
    this.monolithicNb = 0;
    this.microserviceNb = 0;
    this.uaaNb = 0;

    // Loading configs
    this.debug(`Apps folders: ${this.appsFolders}`);
    this.appsFolders.forEach(appFolder => {
        const path = this.destinationPath(`${this.directoryPath + appFolder}/.yo-rc.json`);
        const fileData = this.fs.readJSON(path);
        if (fileData) {
            const config = fileData['generator-jhipster'];

            if (config.applicationType === 'monolith') {
                this.monolithicNb++;
            } else if (config.applicationType === 'gateway') {
                this.gatewayNb++;
            } else if (config.applicationType === 'microservice') {
                this.microserviceNb++;
            } else if (config.applicationType === 'uaa') {
                this.uaaNb++;
            }

            this.portsToBind = this.monolithicNb + this.gatewayNb;
            config.appFolder = appFolder;
            this.appConfigs.push(config);
        } else {
            this.error(`Application '${appFolder}' is not found in the path '${this.directoryPath}'`);
        }
    });
}
function loadConfigs() {
    this.appConfigs = [];
    this.gatewayNb = 0;
    this.monolithicNb = 0;
    this.microserviceNb = 0;
    this.uaaNb = 0;

    // Loading configs
    this.debug(`Apps folders: ${this.appsFolders}`);
    this.appsFolders.forEach(appFolder => {
        const path = this.destinationPath(`${this.directoryPath + appFolder}/.yo-rc.json`);
        const fileData = this.fs.readJSON(path);
        if (fileData) {
            const config = fileData['generator-jhipster'];

            if (config.applicationType === 'monolith') {
                this.monolithicNb++;
            } else if (config.applicationType === 'gateway') {
                this.gatewayNb++;
            } else if (config.applicationType === 'microservice') {
                this.microserviceNb++;
            } else if (config.applicationType === 'uaa') {
                this.uaaNb++;
            }

            this.portsToBind = this.monolithicNb + this.gatewayNb;
            config.appFolder = appFolder;
            this.appConfigs.push(config);
        } else {
            this.error(`Application '${appFolder}' is not found in the path '${this.directoryPath}'`);
        }
    });
}
function loadConfigs ( ) { this . appConfigs = [ ] ; this . gatewayNb = 0 ; this . monolithicNb = 0 ; this . microserviceNb = 0 ; this . uaaNb = 0 ; // Loading configs this . debug ( ` ${ this . appsFolders } ` ) ; this . appsFolders . forEach ( appFolder => { const path = this . destinationPath ( ` ${ this . directoryPath + appFolder } ` ) ; const fileData = this . fs . readJSON ( path ) ; if ( fileData ) { const config = fileData [ 'generator-jhipster' ] ; if ( config . applicationType === 'monolith' ) { this . monolithicNb ++ ; } else if ( config . applicationType === 'gateway' ) { this . gatewayNb ++ ; } else if ( config . applicationType === 'microservice' ) { this . microserviceNb ++ ; } else if ( config . applicationType === 'uaa' ) { this . uaaNb ++ ; } this . portsToBind = this . monolithicNb + this . gatewayNb ; config . appFolder = appFolder ; this . appConfigs . push ( config ) ; } else { this . error ( ` ${ appFolder } ${ this . directoryPath } ` ) ; } } ) ; }
Load config from this.appFolders
Load config from this . appFolders