-
Notifications
You must be signed in to change notification settings - Fork 20
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
typescript problem #26
Comments
Alternately I think we can put a typescript definition |
That works for me. To make this work right, since I don't use TypeScript, we'll have to add some kind of test that ensures the contents of the typescript def file are correct. Not sure quite what that would be - if there's a "lint" option on the typescript compiler, or if we should write a test in typescript that would pull in the def file and then ensure it's correct. I really don't want to be in a position of adding a file that folks - especially me! - don't end up checking before committing new code. :-) I think I was poking around this area in an unrelated GH repo, didn't get any responses on the best way to handle this sort of thing, but I'm sure there's a low-cost solution to be found. Pre-req'ing the TS compiler as a devDep isn't a problem. |
Also, non-intrusive flow bits are welcome as well, same constraints. Must provide some way of checking the flow bits via tests of some sort. devDeps for flow bits aren't a problem. |
I've started a branch to rewrite the library in typescript [1] - which has a [1] https://github.com/drnic/node-cfenv/blob/typescript/lib-src/cfenv.ts I'll keep working on it. At this moment, deploying the I've not yet rewritten @pmuellr are you interested in moving the library towards typescript rather than coffeescript? Or just want the |
@pmuellr I tried to run the tests on my branch but I think a) I'm not familiar with mocha nor your https://github.com/pmuellr/jbuild; b) my code paths for local files/islocal isn't working wrt to the tests. Perhaps we can pair on some fixes and chat about the typescript implementation? I'd like the current .coffee tests to pass before rewriting them (and accidentally writing tests that pass; but not the right tests). |
I'm not much of a CF user anymore, don't have much skin in the game, happy to pass the torch to folks wanting better. TS seems perfectly reasonable to me. LMK and I can folks as maintainers of the npm package. We can certainly get rid of I'll check the fork and see if anything obvious pops out to me re: the tests. Otherwise, can certainly pair, maybe twitter dm me @pmuellr to find a time? |
I have some comments to make on the ongoing branch, maybe create a PR you can keep pushing to, to make discussion easier? There will need to be some kind of "build" command, I guess preferrably as an npm script like the current Lines 13 to 18 in 3490eda
I then ran the tests via |
looks like we currently does not have the types for cfenv
Thanks in advance
The text was updated successfully, but these errors were encountered: