- Write a package in Julia and develop it with the ultimate goal of releasing it for others to use
- Open Julia
- Install PkgTemplates using
using Pkg; Pkg.add("PkgTemplates") using PkgTemplates- Create a template using your git user name:
t = Template(user="sg-s") - Generate a new package with whatever name you want:
t("kongo") - Julia will create a folder for you in
~/.julia/dev/kongo. This is where your package is. Inside of that will be asrcfolder (for your source files) and atestfolder (for your tests) - Note that this forces you to have your code in ~/.julia/dev. If you wanted to have your code elsewhere, use the
dirargument - Tell Julia that you will be developing this package using
] dev kongo. - Activate the environment corresponding to that package using
] activate kongo
If you're using VS Code, and you mess around with the code in the src folder, and run it in the REPL, it will magically activate the right environment.