mirror of https://github.com/abpframework/abp.git
2 changed files with 12 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
import { chain, schematic } from '@angular-devkit/schematics'; |
|||
import { GenerateProxySchema } from '../models'; |
|||
|
|||
export function createApisGenerator(schema: GenerateProxySchema, generated: string[]) { |
|||
return chain( |
|||
generated.map(m => { |
|||
const apiSchema = { ...schema, source: schema.target, module: m }; |
|||
return schematic('api', apiSchema); |
|||
}), |
|||
); |
|||
} |
|||
Loading…
Reference in new issue