-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add Typescript (and bypass Babel) #658
Conversation
Unit tests are passing, but currently having problems resolving some modules in the browser when loading the root web page. Both with frontend's
and proper war deployment (apparently having trouble with
EDIT: I was fixing problems like these as I found them by changing imports (eg |
Codecov Report
@@ Coverage Diff @@
## master #658 +/- ##
============================================
+ Coverage 33.15% 33.43% +0.27%
Complexity 5778 5778
============================================
Files 1577 1580 +3
Lines 62287 63216 +929
Branches 7354 7365 +11
============================================
+ Hits 20654 21136 +482
- Misses 39701 40145 +444
- Partials 1932 1935 +3
Continue to review full report at Codecov.
|
10c3429
to
dd27072
Compare
Reviewed 2 of 8 files at r1, 1 of 3 files at r2, 24 of 248 files at r3, 14 of 34 files at r4, 28 of 35 files at r5. server/zanata-frontend/src/tsconfig.json, line 8 at r5 (raw file):
a link to the doc will be helpful server/zanata-frontend/src/app/components/Loader/index.tsx, line 16 at r5 (raw file):
This should be optional server/zanata-frontend/src/app/components/LockIcon/index.tsx, line 24 at r5 (raw file):
make entityStatus a ts file and add types server/zanata-frontend/src/app/editor/actions/settings-actions.js, line 33 at r5 (raw file):
move this to util server/zanata-frontend/src/scripts/silence-React-15-deprecations.js, line 1 at r5 (raw file):
this file is not needed Comments from Reviewable |
Review status: 51 of 71 files reviewed at latest revision, 5 unresolved discussions. server/zanata-frontend/src/tsconfig.json, line 8 at r5 (raw file): Previously, huangp (Patrick Huang) wrote…
Done. server/zanata-frontend/src/app/components/Loader/index.tsx, line 16 at r5 (raw file): Previously, huangp (Patrick Huang) wrote…
Done. server/zanata-frontend/src/app/components/LockIcon/index.tsx, line 24 at r5 (raw file): Previously, huangp (Patrick Huang) wrote…
Done. server/zanata-frontend/src/app/editor/actions/settings-actions.js, line 33 at r5 (raw file): Previously, huangp (Patrick Huang) wrote…
Done. server/zanata-frontend/src/scripts/silence-React-15-deprecations.js, line 1 at r5 (raw file): Previously, huangp (Patrick Huang) wrote…
Done. Comments from Reviewable |
@huangp Ready for another review. Thanks! |
Reviewed 5 of 36 files at r5, 18 of 23 files at r6, 14 of 14 files at r7. Comments from Reviewable |
Reviewed 1 of 23 files at r6, 5 of 5 files at r8. Comments from Reviewable |
Verified (exploratory testing) |
See https://github.com/Microsoft/TypeScript-React-Conversion-Guide#typescript-react-conversion-guide
This change is