-
Notifications
You must be signed in to change notification settings - Fork 130
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
Initial work on getting support for "extends". #494
Conversation
Good work @lddubeau! This looks like a good implementation. Could you add a testcase for this? I'm also wondering how Have you checked whether TypeScript exposes some function that can be used here? This PR contains some logic which is already present in TypeScript. If possible I'd like to prevent duplicating that logic. (However, it might be more work to apply to that API then to do it this way..) |
@ivogabe I should have some time to revisit this today or tomorrow. Yep, a test case is on the todo list. The semantics for what happens to
It does look like I'm doing some things that could be handled by TypeScript's own code. |
@lddubeau I've taken a look at the API which TypeScript exposes, and Gulp-typescript should have the same semantics related to |
Regarding I ran into a bigger issue than I was expecting. I did not realize this at first but support for So there should be a bump in the versions against which I don't know how to make the change required to bump the version testing. If you could do the version bump, I could rebase and then pick up from there. |
You may use object spread, as we can choose the version of TypeScript which is used to compile gulp-typescript. This is independent of the version used by consumers. You may update the tested version of TypeScript. Though gulp-typescript should still be working with TypeScript 2.0 (though without support for |
63b918b
to
c8a4b90
Compare
Sorry, I missed that you were waiting on me to update the test infrastructure. I'll try to update that this week, though I won't remove the tests for 2.1 but will test on both 2.1 and 2.3. Then we can test the |
@lddubeau Can you update your PR with tests? We now use TypeScript 2.3.3, so you can now test this properly. You don't have to do anything with prior versions, as we don't test with those versions automatically. |
Thanks. An update should be coming soon. |
c8a4b90
to
97353d0
Compare
The shallow copy done before calling parseJsonConfigFileContent was unnecessary as parseJsonConfigFileContent can do it by itself.
97353d0
to
f43e9f5
Compare
@ivogabe As discussed, I've added the test cases and dropped the manual shallow copy. |
We are also interested in this functionality. Is there anything else preventing this from being integrated to master? |
@jair-cazarin From my perspective, there's nothing blocking merging this branch. I've been using a build of |
Sorry for the delay, I've been busy with some other projects lately. I've taken a look at it, everything looks good. Thanks @lddubeau! |
This is an initial stab at solving #459.
It passes the test suite but I would not be surprised if I goofed somewhere though. In particular I'm not sure that I got the option checks and normalization performed in
main.ts
right.