Bot releases are hidden (Show)
Published by z979054461 over 2 years ago
Full Changelog: https://github.com/alibaba/pont/compare/v1.2.0...v1.3.0
Published by z979054461 over 2 years ago
Full Changelog: https://github.com/alibaba/pont/compare/v1.1.1...v1.2.0
Published by z979054461 over 2 years ago
Full Changelog: https://github.com/alibaba/pont/compare/v1.1.0...v1.1.1
Published by z979054461 over 2 years ago
pontTemplate.ts
如果定制了getMultipleOriginsFileStructures
和getOriginFileStructures
,需要作出调整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.1.0
api-lock.json
api-lock.json.bak
,提交其他文件Full Changelog: https://github.com/alibaba/pont/compare/v1.0.10...v1.1.0
Published by jasonHzq over 4 years ago
1、该版本内置模板,支持了默认 fetch 方法,以及在项目中快速替换 fetch 方法。新项目接入真正实现一键接入。
2、该版本支持了 fetch 和 hooks 的默认模板。其中 hooks 模板支持基于 useSWR 的 useRequest 等方法,对 React Hooks 项目大大提高开发效率。
Published by jasonHzq over 4 years ago
1、该版本支持快速接入 pont 命令: pont start
2、该版本支持 Javascript 项目。
Published by jasonHzq over 5 years ago
该版本 vscode-pont 插件支持 mocks 功能,使用文档参看 自动化-mocks-服务
此前版本在生成代码时,将 outDir 文件夹清空后,依次重新生成每个文件。由于文件改动太大,常常使本地编译程序崩溃。本版本做了代码懒生成的优化: