2020-11-06 08:10:30 +00:00
|
|
|
/**
|
|
|
|
* @author Martin Karkowski
|
|
|
|
* @email m.karkowski@zema.de
|
|
|
|
* @create date 2020-11-06 08:53:06
|
|
|
|
* @modify date 2020-11-06 08:53:06
|
|
|
|
* @desc [description]
|
|
|
|
*/
|
|
|
|
|
|
|
|
import { generate } from 'openapi-typescript-codegen';
|
2020-08-21 21:52:06 +00:00
|
|
|
import { startBackend } from '../../src/startBackend';
|
2020-08-19 06:36:59 +00:00
|
|
|
|
|
|
|
// Start the Backend
|
|
|
|
const result = startBackend({port: 3001});
|
|
|
|
|
2020-08-23 07:25:39 +00:00
|
|
|
setTimeout(() => {
|
|
|
|
generate({
|
|
|
|
input: 'http://localhost:3001' + result.definitionUri,
|
|
|
|
output: './pages/interface'
|
|
|
|
});
|
|
|
|
|
|
|
|
result.close()
|
|
|
|
}, 2000)
|