cosmetics
This commit is contained in:
@@ -5,9 +5,9 @@ module.exports = class extends cds.build.Task {
|
|||||||
async build ({src='*'}) {
|
async build ({src='*'}) {
|
||||||
this.log (`Generating edmx output for '${src}'...`)
|
this.log (`Generating edmx output for '${src}'...`)
|
||||||
const csn = await this.model(src)
|
const csn = await this.model(src)
|
||||||
return Promise.all (csn.services.map (srv => {
|
return Promise.all (csn.services.map (({name:service}) => {
|
||||||
const edmx = cds.compile(csn).to.edmx({service:srv.name})
|
const edmx = cds.compile(csn).to.edmx({service})
|
||||||
return this.write(edmx).to(`{srv}/src/main/resources/${srv.name}.edmx`)
|
return this.write(edmx).to(`{srv}/src/main/resources/${service}.edmx`)
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user