Zeex / samp-plugin-crashdetect

Crash/error reporting plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=262796
BSD 2-Clause "Simplified" License
116 stars 23 forks source link

Create pawn.json #55

Closed Southclaws closed 6 years ago

Southclaws commented 6 years ago

Since sampctl is getting to the point where it's production-ready, I'm encouraging people to start using it while developing libraries as it should make the process of testing and developing a lot smoother. It's designed so you don't need a pawn.json/pawn.yaml ("Pawn-Package Definition" file) in every repo, but having it there really helps with dependency management! These changes are purely additive and do not change your code or scripting style in any way, you don't need to use sampctl yourself but I encourage you to give it a try!

Zeex commented 6 years ago

Thanks.

In case you're accepting suggestions or reading these PRs (they seem like an automated thing), I think pawn.json may be a too generic name for SA-MP specific packages, samp.json or samp-package.json would be better in my opinion. But that's just me, I don't do SA-MP stuff much.

Southclaws commented 6 years ago

Oh yeah they do look a bit automated as it was a copy-paste message to try and introduce people to the tool, sorry about that!

I see what you mean, but sampctl would actually work outside of a SA:MP context - if such a project exists that uses Pawn as a scripting language. It's just unfortunate that I went with sampctl and "pawn.json", it might be a bit late to change this as the file name is used in quite a few repositories now.

I was considering splitting the package manager part of "sampctl" into its own tool called "rook", which I could still do and that would make it more viable as a Pawn tool rather than a SA:MP tool. The package format would not need to be modified as it's still just a list of dependencies and an entry-point to point the compiler at.

(side note: I would actually love to see another project using Pawn, it's not the greatest language but it's an interesting muse for learning about compilers and stuff... and it still beats JavaScript!)