Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add showcase egg&umi with typescript #108

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

qingdengyue
Copy link

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@qingdengyue
Copy link
Author

qingdengyue commented Jun 6, 2019

cc @atian25
还存在可以优化的地方:
1.目录结构

src目录借用了umi那边的结构,如果转移到app/web下面,
webpack的TS编译就会出错,会出现找不到tsconfig.json,而导致无法正确编译TS文件。
除此之外,还有**@**别名的问题。umi生成的代码中有require('@/app'),在TS编译过程中会报找不到文件,JS文件没有这个问题。
所以目前的修改,基本是按照确保umi和egg目录结构独立的想法去实现的,实现起来也较为方便。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant