40 lines
1.2 KiB
Markdown
40 lines
1.2 KiB
Markdown
# PkgTemplates
|
|
|
|
[](https://invenia.github.io/PkgTemplates.jl/stable)
|
|
[](https://invenia.github.io/PkgTemplates.jl/dev)
|
|
[](https://travis-ci.org/invenia/PkgTemplates.jl)
|
|
[](https://codecov.io/gh/invenia/PkgTemplates.jl)
|
|
|
|
**PkgTemplates creates new Julia packages in an easy, repeatable, and customizable way.**
|
|
|
|
Assuming you have the relatively standard Git options `user.name`, `user.email` and `github.user` set up globally with `git config --global`, creating a `Template` is as simple as:
|
|
|
|
```jl
|
|
using PkgTemplates
|
|
t = Template()
|
|
```
|
|
|
|
However, it's probably desirable to customize the template to your liking with various options and plugins:
|
|
|
|
```jl
|
|
t = Template(;
|
|
dir="~/code",
|
|
plugins=[
|
|
Git(; manifest=true, ssh=true),
|
|
Codecov(),
|
|
TravisCI(; x86=true),
|
|
Documenter{TravisCI}(),
|
|
],
|
|
)
|
|
```
|
|
|
|
Once you have a template, you can create packages with ease:
|
|
|
|
```jl
|
|
t("MyPkg")
|
|
```
|
|
|
|
---
|
|
|
|
For a much more detailled overview, please see the documentation.
|