drone/web/restful-react.config.js
2022-08-09 12:37:37 -07:00

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")}`
}
}
}