Closed rossknudsen closed 4 years ago
Hmmm, looks like I need to fix the linting...
Ah looks like the version of node on the CI server is too low to run one of the new dependencies. Can we bump the version?
while I like typescript a lot personally, I am not the only contributor in this repo, @stephtr @seanpoulter, are you guys ok to move the repo to typescript?
while I like typescript a lot personally, I am not the only contributor in this repo, @stephtr @seanpoulter, are you guys ok to move the repo to typescript?
Personally, I definitely prefer working with TypeScript. It would also better fit to vscode-jest
.
Huh, somehow the coverage dropped...
while I like typescript a lot personally, I am not the only contributor in this repo, @stephtr @seanpoulter, are you guys ok to move the repo to typescript?
Fair enough, I was going by this comment which is probably old/stale now. I ran across the comment because I wanted to access more of the Jest settings. I guess I went down a bit of a rabbit hole with this one...
Thanks for the huge effort @rossknudsen! 👏
--
Unit tests should be passing, but I need to manually test. Maybe we can get a pre-release, or is there another simple way to substitute an npm package in my extension?
Yes, you can substitute npm packages using "linking". Here's the docs for npm
and yarn
that are probably more clear than what I'd write. ;)
--
while I like typescript a lot personally, I am not the only contributor in this repo, @stephtr @seanpoulter, are you guys ok to move the repo to typescript?
I've got two answers for this: one with best interest of the project in mind, and the other from my own perspective.
Pros |
|
---|---|
Cons |
|
[1]: https://2019.stateofjs.com/javascript-flavors/typescript/ [2]: https://2019.stateofjs.com/javascript-flavors/other-tools/ [3]: https://medium.com/javascript-scene/the-typescript-tax-132ff4cb175b
@seanpoulter I appreciate the time taken to write your thoughts regarding this PR. I reviewed the changed files again and it is substantial. My original intent was to avoid a massive delta as it has potential to introduce regressions etc and part of the reason why people wouldn't want to convert in the first place. Also 100% appreciate your limited time in reviewing this.
In light of all this, I stepped back and thought about whether its possible to take an incremental approach to conversion. So I looked at the recommendations for conversion from Microsoft and cherry-picked some changes from this branch into a new branch. If you like this approach I can open another PR for review. I think I've kept everything operational while converting just one file to Typescript.
In light of all this, I stepped back and thought about whether its possible to take an incremental approach to conversion... If you like this approach I can open another PR for review. I think I've kept everything operational while converting just one file to Typescript.
I like that! 👍
superseded by #33
This is a conversion to Typescript, removing Flow and updating build scripts.
Unit tests should be passing, but I need to manually test. Maybe we can get a pre-release, or is there another simple way to substitute an npm package in my extension?