deanm / plask

Plask is a multimedia programming environment.
www.plask.org
Other
443 stars 38 forks source link

Split plask.js into multiple packages and publish to NPM. #22

Closed notlion closed 10 years ago

notlion commented 11 years ago

It would be nice to be able to use certain parts of Plask without loading all of plask.js. In the past I've pulled the Vec3 / Mat4 stuff out into another file to use in Node.js projects.

Maybe something like:

I'm willing to do this if we think it's a good idea. It would certainly make using pieces of plask.js easier, and might help development for other platforms.

deanm commented 10 years ago

I think the problem with this is that most of the plask javascript is tied also to the native API, so you have to be really careful to have the same version of both the plask binary and the plask javascript. For some things like the maths code that should be easy to pull out, but not sure I see a big reason to do so at the moment. But it's a good idea for future functionality to see if it can be decoupled and created as a separate package. That is sort of what I was doing with the omg* family of libraries.