@esydoc/resolver-config
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

@esydoc/resolver-config

一个解析 Api 源码生成配置的解析器

安装

npm i @esydoc/resolver-config -D

使用

  • esydoc.config.js 文件中的 resolves 字段添加@esydoc/resolver-config
// for example in esydoc.config.js
{
  apiConfigDefaultOutputPath: 'src/edoc-api-config',
  resolves: {
    '@esydoc/resolver-config': {
      includes: [],
      output: {
        template: 'hyext-docs',       // 固定使用这个模版
        dist: './src/config',         // 构建产物地址
      },
      pathPrefix: 'hyExt',            // 接口前缀
      renderConfigs: [
        {
          filePath: 'test.js',
          render: (node) => 'test'
        }
      ]
      plugins: []
    }
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @esydoc/resolver-config

Weekly Downloads

0

Version

2.1.3

License

ISC

Unpacked Size

16.4 kB

Total Files

6

Last publish

Collaborators

  • hy-ext