beakable / isometric

JSIso - An HTML5 Canvas Tile Engine
http://jsiso.com
MIT License
546 stars 72 forks source link

publish to npm #5

Closed ghost closed 10 years ago

ghost commented 10 years ago

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:

You 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.

zoby commented 10 years ago

Thanks for this, I'll have a look into this in more detail and see about getting it implemented.

njoyard commented 10 years ago

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 !

anthonymoralez commented 10 years ago

8

beakable commented 10 years ago

Closing issue, jsiso is now available via bower as JsIso.

SomethingSexy commented 8 years ago

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.