Creating packages
When parsing Julia packages either in the .julia/packages
folder or on GitHub, the reader will have observed that they all have a definitive structure. More specifically, at the top level, there is a README.md
markdown file, together with at least two TOML files: Project.toml
and Manifest.toml
.
In addition, there are always at least the following two subdirectories:
src
: This contains the source, including a Julia file that has the package name but with a.
jl
extensiontest
: This contains aruntests.jl
script, which contains a series of tests to run via the package manager to check the integrity of the package
The source directory may contain many other Julia packages that are then “included” by the main package files; for example, the Plots.jl
file has (currently) 19 additional Julia files.
Also, the main program usually contains any const
definitions and also a list of functions, structs, and so on, whose names will be exported...