Skip to content
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

Tool to update old projects #451

Closed
Gama11 opened this issue Jun 25, 2013 · 3 comments
Closed

Tool to update old projects #451

Gama11 opened this issue Jun 25, 2013 · 3 comments
Assignees
Milestone

Comments

@Gama11
Copy link
Member

Gama11 commented Jun 25, 2013

All these refactors (util package and FlxG refactor which isn't done yet) involve a lot of moving and renaming functions and variables. It's nothing that's really difficult to update to, but it can be very tedious and actually take a long time on bigger projects. It should be fairly straightforward to create a tool that updates all these outdated references in a flixel 1.x-codebase, it would have to take care of two things:

  • Replace outdated function and variable names
  • Remove old imports and make sure all the classes used in a class are imported

I'm not sure how to accomplish this yet though. I'll have to do some reasearch. Maybe someone can point me in a direction.

@impaler
Copy link
Member

impaler commented Jun 25, 2013

I would base it off something like this, all the pieces are there for recursive scan and you should only need simple find and replace one string with another;
https://github.com/as3boyan/tarwins_as3_to_haxe_conversion_script_-_haxe_neko_-

@Gama11
Copy link
Member Author

Gama11 commented Jun 27, 2013

I'd like to add, @impaler suggested that even a conversion script for as3-flixel might be doable. That'd be awesome! :)

@Gama11
Copy link
Member Author

Gama11 commented Jun 29, 2013

I'd like to note that a backup of all files should be created by any of these tools before they touch any file, just to be on the safe side.

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