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

Recommended way to add to project? #62

Open
mobileben opened this issue Sep 10, 2019 · 1 comment
Open

Recommended way to add to project? #62

mobileben opened this issue Sep 10, 2019 · 1 comment

Comments

@mobileben
Copy link

This isn't really a "bug". I was curious the best way to add this to a project. I'm currently getting starting with Typescript and webpack.

I have a rough prototype working where I simply added the script (box2d.umd.js) to my index.html file.

However, as there is no declaration file, it seems like it would be better off directly adding the source into my project? I notice all the exports are in the Box2D.ts file. Whereas within Typescript I think you can include a directory by using an index.ts file.

Is there a recommended way to add into a project?

@flyover
Copy link
Owner

flyover commented Nov 25, 2019

There are quite a few different systems for packaging TypeScript/JavaScript. I don't consider myself an expert on any single one of them, I just read the documentation until I understood well enough to get the Testbed working. I would try searching for other projects that may have examples of combining different types of libraries.

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