-
Notifications
You must be signed in to change notification settings - Fork 568
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
chore(boilerplate): fix building issue cause of .tsbuildinfo #298
Conversation
It will no output during tsc incremental build if outDir is empty and .tsbuildinfo exists. Add scripts `npm run clean` to unlink files in outDir and file .tsbuildinfo .
Codecov Report
@@ Coverage Diff @@
## master #298 +/- ##
=======================================
Coverage 86.61% 86.61%
=======================================
Files 35 35
Lines 695 695
Branches 48 48
=======================================
Hits 602 602
Misses 83 83
Partials 10 10 Continue to review full report at Codecov.
|
dev 依赖中增加一个 rimraf。不知道 midway 是否有内置的删除命令。 |
chore(boilerplate): fix building issue cause of .tsbuildinfo (#298) chore(boilerplate): fix building issue cause of .tsbuildinfo
midway-bin-clean 匹配规则是否支持通配 比如 |
另外,是否支持在script中调用? 然后在命令行执行 |
命令行调用当然支持,通配的话,看了一下貌似不支持,不过build的时候拷贝是支持的,可以抄一下。。 |
It will no output during tsc incremental build if outDir is empty and .tsbuildinfo exists.
Add scripts
npm run clean
to unlink files in outDir and file .tsbuildinfo .Checklist
npm test
passesAffected core subsystem(s)
Description of change
启用 tsc 的 incremental 编译参数后,若 删除了 ourDir 下的编译输出文件,则下次编译就不会有输出。需要删除掉
.tsbuildinfo
文件后才正常。所以增加一条清除的脚本命令
npm run clean
用于删除编辑结果文件以及相关.tsbuildinfo
文件。