mirror of
https://github.com/harness/drone.git
synced 2025-05-04 08:30:56 +08:00
18 lines
481 B
JavaScript
18 lines
481 B
JavaScript
/**
|
|
* Please match the config key to the directory under services.
|
|
* This is required for the transform to work
|
|
*/
|
|
const customGenerator = require('./scripts/swagger-custom-generator.js')
|
|
|
|
module.exports = {
|
|
pm: {
|
|
output: 'src/services/pm/index.tsx',
|
|
file: 'src/services/pm/swagger.json',
|
|
transformer: 'scripts/swagger-transform.js',
|
|
customImport: `import { getConfig } from "../config";`,
|
|
customProps: {
|
|
base: `{getConfig("pm/api/v1")}`
|
|
}
|
|
}
|
|
}
|