Closed BurtHarris closed 7 years ago
Fixes #124
I'm investigating this CI failure...
It appears there are some cases where using the namespace-style import doesn't work, even in babel.
The test.spec.json
file, as small as it is, is now preventing the typescript-based test from running. I gather it's related to sinon-chai
. All the babel tests should be fine again.
@jayphelps, I'm going to let this sit now, please give it a code review if/when you get a chance.
P.S. If after building both the babel and TypeScript outputs, if I move the TypeScript-produced built\lib
into the root directory's lib
, and run Mocha, the tests all 73 pass. I offer the hypothesis that the majority of the TypeScript related problems are now in the test code, rather than in the library.
OK @jayphelps, I think this is ready for another code review.
Change in build scripts makes build-tsc
build directly into the lib/
directory. So:
npm run build-tsc
npm test
runs the tests. I'm currently getting 20 errors from the build-tsc
variant. Many seem related to decorators you are planning on removing.
@jayphelps I've made suggested changes, thanks. Do I now click the "Dismiss Review" link?
I've made suggested changes, thanks. Do I now click the "Dismiss Review" link?
Nope, you can either request another review (if it lets you) or ping the reviewer to review the changes. They will then either approve or submit additional requested changes. 😄
Thank you!! 🎉 🎈 :man_dancing:
I need to find some time to really dig deeper and confirm this won't break anyone if I release a build with this. I don't imagine it will, but tbh I haven't looked at the actual builds look like yet and just cause the tests pass doesn't mean it'll work :trollface: If I don't comment here about a release in the next week, feel free to bug me. Gonna try to find the time this weekend.
Add support for building project with TypeScript
This saves the gems from my experimental branch, without adopting some of the mistakes. It enables you to either type
tsc
ornpm run build-tsc
to build all the source files from this project into a newbuilt
directory. This is intended to facilitate comparison with the babel generated code, and add some error checking.Note that the error checking is currently fairly minimal, as the its using --allowJs, but not --checkJs. I've also included in this PR code fixes for some of the error reported by tsc the command generally results in a clean build.