Skip to content

Is this alive? #5

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

Open
asgerhallas opened this issue Oct 1, 2015 · 5 comments
Open

Is this alive? #5

asgerhallas opened this issue Oct 1, 2015 · 5 comments

Comments

@asgerhallas
Copy link

I've been thinking about doing something like this for emitting concatted files in the right order... and then I found this :)

Unfortunately it does not work with the current version of TypeScript. Are you still working on this? And if not, do you mind if I ask why? I've been trying to figure out if there's something about the idea that is not viable.

@cybrown
Copy link
Owner

cybrown commented Oct 2, 2015

Hi,

I've made this project to see if it was possible to handle the priority order without using modules, but after some tests, I am now convinced that solutions like browserify, webpack, requirejs etc... are far more better at this task.

I'm sorry to say that I do not need this project anymore, but if you want you can clone it and I may help you using a more recent version of typescript.

@asgerhallas
Copy link
Author

Thank you for your reply! That was what I feared :)

We have actually just migrated away from using commonjs and browserify, because I believe that requiring internally between classes in the same project becomes quite unwieldy when using one class per file in very large applications. And it shouldn't in my opinion be neccessary as long as it's not actual external dependencies.

But anyway, if you're ok with it, I would like to fork the project and see if I can make it work for our scenario. Even though I'm beginning to have my doubt, now that it's already been abandoned once :)

@cybrown
Copy link
Owner

cybrown commented Oct 6, 2015

Yes go ahead :)

@cybrown
Copy link
Owner

cybrown commented Oct 23, 2015

Just a quick thought, if you bootstrap your app in the next event loop tick (with setTimeout or immediate), all the classes and functions might be defined in all your app, so merging files in the correct order may not be a problem.

@asgerhallas
Copy link
Author

Very interresting thought! I guess that depends on how typescript emits the constructor functions... I'll definitely try that out. I'll give you an update, when I have :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants