Conversation
|
Hi; The following statement does the job.ps.on('error', function(err) {
|
| "test:ts": "tsc --lib ES2015 test_typescript.ts && tap test_typescript.js" | ||
| "test:js": "tap test-compiled.js", | ||
| "test:ts": "tsc --lib ES2015 test_typescript.ts && tap test_typescript.js", | ||
| "compile": "babel index.js --out-file index-compiled.js && babel test.js --out-file test-compiled.js" |
There was a problem hiding this comment.
I'd suggest adding a prepare script that runs npm run compile.
Here's a good article explaining how it works.
There was a problem hiding this comment.
This removes the need to store a compiled version in git.
|
@munro any chance on this being finished soon? |
@farhadabar I think you're probably right about catching errors on If you can create a PR with integration tests showing the need for catching those errors (which I think is very possible), I'd be more than happy to collaborate and come up with an API for dealing with those ps error events. My feeling is that we can trigger those errors by:
Also, for this PR to remove bluebird, I would love help if you could donate anytime. :) |
@OmgImAlexis If you can donate any time to help with this, that would be greatly appreciated! Just switching the code to not store the compiled code in git may be enough to help get the ball rolling on removing Also, this was opened awhile ago, so if you see any ES6 idiomatic changes you'd like to make to the code, go for it! My main thing is trying to get LOC as low as possible, as well as dependencies to 0 would be nice—while maintaining the same API. |
|
I would like to see this done too. Is there anything I can do to help move this forward? |
|
I’ll get on this today. Shouldn’t take me long. I’ll open a new PR with the updated changes. I’ll just remove bluebird and the compiled code. |
|
just got some insight on what I believe is the best way to handle this—CHANGE COURSE!!!! 🚢 🧭 |
Uh oh!
There was an error while loading. Please reload this page.