Closed ghost closed 10 years ago
Thanks for this, I'll have a look into this in more detail and see about getting it implemented.
JSIso is a client-side library, not a nodejs module, it should not be published using npm. Have a look at http://bower.io/ instead !
Closing issue, jsiso is now available via bower as JsIso.
Hopefully it is OK to post here. At this point I think it would be fantastic if you did post this to npm as well. npm is used for much more now than just packages that work with node.
This module would be great to have on npm! This way people will be able to install your module by doing
npm install isometric
. Just follow these steps:package.json
file (you can typenpm init
to generate one from a list of questions)isometric
is available!)main
field in package.json should pointYou can read more about publishing browser code to npm here: http://maxogden.com/node-packaged-modules.html
The main field part is a bit tricky since you've got a list of script tags in the example: https://github.com/beakable/isometric/blob/master/Samples/sample1.html#L62-L73 but with a little work you can create a script to concatenate those into a UMD bundle so that consumers of your library will be able to drop in a single script tag to use your library or else just do
var iso = require(''isometric)
if they're using commonjs and won't need to juggle a bunch of globals around.If you want an example of another game engine published to npm, check out how voxeljs does it. You can also check out the game-modules repo put together by @hughsk and add isometric to that list once it's up on npm and packaged up.