pont

🌉数据服务层解决方案

MIT License

Downloads
1.6K
Stars
3K
Committers
45

Bot releases are hidden (Show)

pont - v1.3.0

Published by z979054461 over 2 years ago

What's Changed

Full Changelog: https://github.com/alibaba/pont/compare/v1.2.0...v1.3.0

pont - v1.2.0

Published by z979054461 over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/alibaba/pont/compare/v1.1.1...v1.2.0

pont - v1.1.1

Published by z979054461 over 2 years ago

What's Changed

Full Changelog: https://github.com/alibaba/pont/compare/v1.1.0...v1.1.1

pont - v1.1.0(02/14, 2022)

Published by z979054461 over 2 years ago

Attention

  • 该版本拆分了本地锁文件api-lock.json,从1.0.X升级到此版本时需要遵循如下步骤
    1. pontTemplate.ts如果定制了getMultipleOriginsFileStructuresgetOriginFileStructures,需要作出调整
    diff --git a/pontTemplate.ts b/pontTemplate.ts
    index 727f5ac..cd60631 100644
    --- a/pontTemplate.ts
    +++ b/pontTemplate.ts
    @@ -71,7 +71,6 @@ export default class MyGenerator extends CodeGenerator {
           ...files,
           [getFileName('index', this.surrounding)]: this.getDataSourcesTs.bind(this),
           'api.d.ts': this.getDataSourcesDeclarationTs.bind(this),
    -      'api-lock.json': this.getLockContent.bind(this)
         };
       }
     
    @@ -112,13 +111,10 @@ export default class MyGenerator extends CodeGenerator {
           [getFileName('baseClass', this.surrounding)]: generator.getBaseClassesIndex.bind(generator),
           mods: mods,
           [indexFileName]: generator.getIndex.bind(generator),
    -      'api.d.ts': generator.getDeclaration.bind(generator)
    +      'api.d.ts': generator.getDeclaration.bind(generator),
    +      'api-lock.json': this.getLockContent(generator),
         };
     
    -    if (!usingMultipleOrigins) {
    -      result['api-lock.json'] = this.getLockContent.bind(this);
    -    }
    -
         return result;
       }
    
    1. 更新vscode插件版本为1.1.0
      更新后重新加载(更新插件版本会自动更新package.json)
      image
    2. 恢复新版本api-lock.json
      1. 删除outDir目录以下变动文件
        image
      2. 点击generage重新生成本地代码,拆分完成。
        image
      3. 剔除多余的api-lock.json.bak,提交其他文件

What's Changed

New Contributors

Full Changelog: https://github.com/alibaba/pont/compare/v1.0.10...v1.1.0

pont - v0.3.12(03/16, 2020)

Published by jasonHzq over 4 years ago

1、该版本内置模板,支持了默认 fetch 方法,以及在项目中快速替换 fetch 方法。新项目接入真正实现一键接入。

2、该版本支持了 fetch 和 hooks 的默认模板。其中 hooks 模板支持基于 useSWR 的 useRequest 等方法,对 React Hooks 项目大大提高开发效率。

pont - v0.3.11(02/27, 2020)

Published by jasonHzq over 4 years ago

1、该版本支持快速接入 pont 命令: pont start

2、该版本支持 Javascript 项目。

pont - v0.3.9(02/19, 2020)

Published by jasonHzq over 5 years ago

自动化 mocks 服务

该版本 vscode-pont 插件支持 mocks 功能,使用文档参看 自动化-mocks-服务

代码懒生成

此前版本在生成代码时,将 outDir 文件夹清空后,依次重新生成每个文件。由于文件改动太大,常常使本地编译程序崩溃。本版本做了代码懒生成的优化:

  • 1、在更新 mod 、bo 后,pont 将立即对可预测的文件进行增量更新或删除。
  • 2、在点击 generate 按钮(或执行 pont generate)命令,pont 将读取本地生成的所有代码,对比即将生成的代码,计算需要更新或删除的文件,进行增量文件更新或删除。