lib/export/jhipster_entity_exporter.js
function writeEntities(subFolder) {
  for (let i = 0, entityNames = Object.keys(configuration.entities); i < entityNames.length; i++) {
    const filePath = path.join(subFolder, toFilePath(entityNames[i]));
    const entity = updateChangelogDate(filePath, configuration.entities[entityNames[i]]);
    fs.writeFileSync(filePath, JSON.stringify(entity, null, 4));
  }
}
function writeEntities(subFolder) {
  for (let i = 0, entityNames = Object.keys(configuration.entities); i < entityNames.length; i++) {
    const filePath = path.join(subFolder, toFilePath(entityNames[i]));
    const entity = updateChangelogDate(filePath, configuration.entities[entityNames[i]]);
    fs.writeFileSync(filePath, JSON.stringify(entity, null, 4));
  }
}
function writeEntities ( subFolder ) { for ( let i = 0 , entityNames = Object . keys ( configuration . entities ) ; i < entityNames . length ; i ++ ) { const filePath = path . join ( subFolder , toFilePath ( entityNames [ i ] ) ) ; const entity = updateChangelogDate ( filePath , configuration . entities [ entityNames [ i ] ] ) ; fs . writeFileSync ( filePath , JSON . stringify ( entity , null , 4 ) ) ; } }
Writes entities in a sub folder.
@param subFolder the folder (to create) in which the JHipster entity folder will be.
Writes entities in a sub folder .