Egg: npm init egg --type=xxx 是否可以支持 生成 ts 版的plugin?

Created on 25 Nov 2019  ·  3Comments  ·  Source: eggjs/egg

需要写一个egg插件,但是脚手架初始化type只支持一个参数

要不就是生成 npm init egg --type=ts TS的项目模版
要不就是生成 npm init egg --type=plugin 插件模版

有什么方法可以生成 ts版本的插件模版吗?

Most helpful comment

目前官方没提供,既然开发 TS 插件的话,你肯定很熟悉 TS 了,自己加上构建脚本配置即可。
反正最终发布到 npm 的都是编译后的 js

All 3 comments

目前官方没提供,既然开发 TS 插件的话,你肯定很熟悉 TS 了,自己加上构建脚本配置即可。
反正最终发布到 npm 的都是编译后的 js

@atian25 有demo可以参考吗?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lvgg3271 picture lvgg3271  ·  3Comments

bupafengyu picture bupafengyu  ·  3Comments

skyyangpeng picture skyyangpeng  ·  3Comments

Leungkingman picture Leungkingman  ·  3Comments

aka99 picture aka99  ·  3Comments