samme Posted February 12, 2017 Share Posted February 12, 2017 Do people use it? What do I need to know? drhayes 1 Link to comment Share on other sites More sharing options...
hexus Posted February 12, 2017 Share Posted February 12, 2017 It's one way of many for you to distribute your code. I use npm to include Phaser in my projects, you can also use package managers like Bower. Take your pick, but I assume npm is easily the most widely used. Link to comment Share on other sites More sharing options...
ldd Posted February 13, 2017 Share Posted February 13, 2017 Absolutely yes. But please, use some sort of identifier to clearly mark it as a phaser plugin, like phaser-astar, phaser-ui, phaser-state-machine, etc. samme 1 Link to comment Share on other sites More sharing options...
mattstyles Posted February 13, 2017 Share Posted February 13, 2017 You can tag them with a Phaser tag, npm have recently updated their search to aid discoverability, but name identifier is still very useful (naming is a bit of a sore issue for dependency managers). Use semantic versioning for your projects. Publish just your built assets to npm, unless you have the option of consumers importing your source into their projects. Make sure you have a decent readme with clear instructions for installing and getting started with your library. Small modules are good, do one thing and do it well. A runnable test suite is good too, although you wouldn't publish this to npm. Your readme should include a small section on how to run your test suite. drhayes and samme 2 Link to comment Share on other sites More sharing options...
drhayes Posted February 13, 2017 Share Posted February 13, 2017 I most often work on projects bundled with webpack or browserify, so I mostly use Node modules installed via npm. My vote is, yes, please use it! All of mattstyles' info is great for that. Publishing to npm is easier than falling off a log. samme 1 Link to comment Share on other sites More sharing options...
samme Posted February 22, 2017 Author Share Posted February 22, 2017 https://www.npmjs.com/~samme ? mattstyles and ldd 2 Link to comment Share on other sites More sharing options...
m7_b5 Posted February 22, 2017 Share Posted February 22, 2017 Agree with the others on NPM. It's probably the best little package system out there, at least I think it is. I use for a ton of stuff both related to my little game project but I also use it heavily at work as well. Whatever you do, don't waste time packaging it via NuGet, which to me has to be the worst little package manager out there LOL Link to comment Share on other sites More sharing options...
Recommended Posts