drone/web/restful-react.config.js

17 lines
433 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 = {
code: {
output: 'src/services/code/index.tsx',
file: 'src/services/code/swagger.yaml',
customImport: `import { getConfig } from "../config";`,
customProps: {
base: `{getConfig("code")}`
}
}
}