npm install box2d
Creating the package was relatively easy. It only involved creating a package.json file in the root of the package:
{ "name" : "box2d", "version" : "1.0.0", "description" : "2D physics engine", "homepage" : "http://github.com/jadell/box2dnode", "author": { "name" : "Josh Adell", "email" : "josh.adell@gmail.com", "url" : "http://everymansoftware.blogspot.com/" }, "main" : "./box2dnode", "engines" : ["node"] }Of course, box2d is a simple package. I'll be interested to see how packaging works with a more complex project.
No comments:
Post a Comment