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

How to use ts-defold on an existing project? #6

Open
ivanquirino opened this issue Oct 18, 2023 · 1 comment
Open

How to use ts-defold on an existing project? #6

ivanquirino opened this issue Oct 18, 2023 · 1 comment

Comments

@ivanquirino
Copy link

ivanquirino commented Oct 18, 2023

Hello, hope you're doing well! The current tutorials only points to creating a new Defold project with ts-defold. I already have an ongoing project that I would like to use typescript, how can I do that? Just create a project in the existing folder?

Thanks

@thejustinwalsh
Copy link
Member

I haven't gone through enhancing a project with ts-defold myself, maybe someone from the community or over on the official discord has a line on this?

Most of the setup of ts-defold follows that your typescript src sits at the same level as the root of the defold project, as when this was all originally setup defold didn't have a way to exclude folders from the game package and I didn't want to bring in the typescript src and config files. The quickstart illustrates the traditional setup.

In theory, you should be able to mix and match typescript and original lua src files without issue, so long as the paths are unique, but I have not tested this personally.

I would duplicate your project, create a basic template project for ts-defold, then attempt to merge the two together replacing the template app directory with your own defold project. YMMV.

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