swift502 / Sketchbook

3D playground built on three.js and cannon.js.

Home Page:https://jblaha.art/sketchbook/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Port demos to TypeScript

StanislavChankov opened this issue · comments

Can you please provide source code that ports Sketchbook latest demo - https://jblaha.art/sketchbook/0.4/ to TypeScript?

I'm afraid someone more experienced with TypeScript will have to chime in. I just tried to make a sample TS project but got stuck on compiling it. And importing sketchbook through a TS module gives me MIME errors. But I generally have no idea how TypeScript development works. I understand that the way Sketchbook is setup now using just Webpack is in itself unusual. And I don't know what the "usual" way is.

Maybe it's possible that just tweaking the Webpack configs will get us somewhere? What is your project setup? Did you get any specific error messages?

It's somewhat ironic but I don't feel qualified to fix this. I know the syntax of TypeScript but I always found that actually using it is very confusing and strangely convoluted.

I've removed the NPM usage section from readme. Unless someone can provide a working example of NPM usage, I don't know that it's possible to use it that way right now.

I'm almost certain it is possible, and I had an example project at one point in time. But that project is gone, and I unfortunately can't currently devote the time to trying to recreate it.

Aham, so you are saying that the TypeScript npm package is not working as the min.js version of the library?
If that's the case I think I can invest some time in TypeScript package.

I think we're misunderstanding each other. Lets resolve this on Discord.