Creating a New Package
This is a summary of the instructions in the Julia Pkg manual.
Create a new repository on GitHub: Follow the Julia package naming conventions. All julia package repos should have ".jl" at the end. Do NOT initialize the repo with a README or license at this point.
After creating the repo you should see a screen that looks like the one below. Copy the repo URL.
In your terminal on your computer, launch Julia. Generate the package files using the package manager:
] generate JuliaTemplateRepo
This will generate the
Project.toml
and asrc/JuliaTemplateRepo.jl
files.Create a
README.md
. Use whatever editor you prefer.Create a git repo, add the remote, and push changes. These instructions are also found in the previous image.
cd JuliaTemplateRepo git init git add -A git commit -m "first commit" git remote add origin https://github.com/bjack205/JuliaTemplateRepo.jl.git git push -u origin master
(optional) Delete local files and add to Julia
dev
foldercd .. rm -rf JuliaTemplateRepo
Run Julia from your terminal and dev the package:
] dev https://github.com/bjack205/JuliaTemplateRepo.jl.git
Alternatively, you can link to your local repository if you didn't delete it:
] dev /path/to/local/repo/JuliaTemplateRepo