Julia Package Initialization
Creating a new Julia package is easiest if you create whatever.jl
script to help establish the template, e.g.
cd some/path
touch whatever.jl
Then open this with VSCode. Once in VSCode, open the terminal and install PkgTemplates.jl
if it’s not already installed:
] add PkgTemplates
Then create a template with the options you want in your new package. The way I currently do this is:
using PkgTemplates
= Template(;
t = "ekholme", #or your git user.name
user = "MIT",
license = ["Eric Ekholm"],
authors = v"1.8", #or w/e version you want
julia_version = [
plugins GitHubActions(),
Codecov(),
GitHubPages(),
TravisCI()
]
)
t("MyPkgName")
And then running this will create a new package (and set up all of your Git stuff if it’s already configured)