gen-templates.js 311 B

123456789101112
  1. const { generateTemplates } = require('swagger-typescript-api')
  2. const path = require('path')
  3. //导出swagger-typescript-api内置模板
  4. generateTemplates({
  5. cleanOutput: false,
  6. output: path.resolve(__dirname, './templates'),
  7. httpClientType: 'axios',
  8. modular: true,
  9. silent: false,
  10. rewrite: false,
  11. })