-
Notifications
You must be signed in to change notification settings - Fork 202
Restore functionality for --out
#244
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
Comments
This needs a bigger rewrite in the form of |
Bas - I'm curious: In theory, with a TypeScript AST, would it be possible to programmatically figure out an appropriate concatenation order? I know it might not be perfect due to side-effects, but I suspect that it would be possible to at least avoid things like use-before-declare. Now that I'm thinking about it - I think there was a GitHub issue in the TS repo about that particular thing. |
@nycdotnet I second that. |
Not in the absence of something like main (like C# / JAVA / C) |
Why not specify the main class explicitly in tsconfig? I've been using the gulp-order plugin recently. What it does is it takes a stream of input files, like the ones tsconfig generates based on the mini match, and for a subset of them, it specifies the order explicitly. So I only need to specify my base classes, and then everything can be concatenated just fine. Couldn't you also use such an approach for generating out files? |
Supporting stuff like NPM modules is just easier with external modules. Note: NPM all things. |
I think @erikvullings may be onto something. We should be able to explicitly define a list of base files, or a main.ts, or a references.ts, as a starting point for --out compilation. @basarat is right, that all new projects should use modules -- but it would be nice to easily use atom-typescript on older projects that use /// with -out. |
The TypeScript compiler uses |
|
Its okay to show that error but don't have it block functionality
refs #206
User should be able to get intellisence + error checks
The text was updated successfully, but these errors were encountered: