eggjs / tegg

Strong Type framework with eggjs.
MIT License
236 stars 35 forks source link

tegg和官网使用ts是什么关系? #172

Open bi-kai opened 9 months ago

bi-kai commented 9 months ago

请详细告知你的新点子:

我希望给出使用simple创建js项目再切换ts,和使用tegg的相同点和不同点。

为什么官网没有给出相关的说明?只看readme没看出个所以然来,希望有个与官网文档类似的指导。

我的困惑是,现在推荐使用tegg还是这个方式? https://www.eggjs.org/zh-CN/tutorials/typescript#%E6%8E%A7%E5%88%B6%E5%99%A8controller

fengmk2 commented 9 months ago

tegg 的文档在 https://github.com/eggjs/tegg/tree/master/plugin/controller ,可以先看看这个。 eggjs 官方文档还没更新。

lusq010 commented 8 months ago

tegg 的文档在 https://github.com/eggjs/tegg/tree/master/plugin/controller ,可以先看看这个。 eggjs 官方文档还没更新。

@fengmk2 文档滞后于版本,代码先行吗?现在通过脚手架生成的项目已经是基于tegg的egg3了呢,感觉没有文档很难开发

killagu commented 8 months ago

我抽空更新一下 egg 的文档。

atom077 commented 4 months ago

我抽空更新一下 egg 的文档。

@killagu 请问现在 egg.js 的官方文档不继续更新了吗

Xfront-end commented 4 months ago

用官方脚手架选了typescript模板, 但是生成的结构和官网介绍的完全不一样,是我没看对文档吗???

mqliutie commented 3 months ago

@killagu 在 tegg 中没有介绍 middleaware, 写法和老版本的一样吗

fengmk2 commented 3 months ago

https://github.com/eggjs/egg/issues/3644#issuecomment-1507893276 可以看这里。 等 4.0 发布之后,文档会基于 tegg 更新一个版本。

xyuwan commented 1 month ago

大概什么时候更新4.0版本?

npm-ued commented 3 weeks ago

tegg 的 service里面怎么使用egg-mysql?

killagu commented 2 weeks ago

tegg 的 service里面怎么使用egg-mysql?

@npm-ued 建议使用这个插件 https://github.com/eggjs/tegg/tree/master/plugin/dal

zaxlct commented 2 weeks ago

什么时候更新