2017-08-10 17:13:01 +00:00
# PkgTemplates
2017-08-15 14:19:37 +00:00
2017-08-24 18:38:21 +00:00
[](https://invenia.github.io/PkgTemplates.jl/stable)
2019-09-01 02:48:01 +00:00
[](https://invenia.github.io/PkgTemplates.jl/dev)
2017-08-24 18:38:21 +00:00
[](https://travis-ci.org/invenia/PkgTemplates.jl)
2018-11-05 22:05:30 +00:00
[](https://codecov.io/gh/invenia/PkgTemplates.jl)
2017-08-16 06:12:42 +00:00
2019-09-01 02:48:01 +00:00
**PkgTemplates creates new Julia packages in an easy, repeatable, and customizable way.**
2019-01-03 17:47:57 +00:00
2017-08-16 06:12:42 +00:00
## Usage
2019-09-01 02:48:01 +00:00
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:
2017-08-16 06:12:42 +00:00
2019-09-01 02:48:01 +00:00
```jl
using PkgTemplates
t = Template()
2017-08-16 06:12:42 +00:00
```
2018-09-26 20:55:24 +00:00
2019-09-01 02:48:01 +00:00
However, it's probably desirable to customize the template to your liking with various options and plugins:
```jl
t = Template(;
dir="~/code",
ssh=true,
manifest=true,
plugins=[
Codecov(),
TravisCI(; x86=true),
Documenter{TravisCI}(),
],
)
2017-08-16 06:12:42 +00:00
```
2019-09-01 02:48:01 +00:00
Once you have a `Template` , yoy can createa packages with ease:
2017-08-16 21:00:15 +00:00
2019-09-01 02:48:01 +00:00
```jl
t("MyPkg")
```
2017-10-01 23:25:12 +00:00
2019-09-01 02:48:01 +00:00
---
2017-08-17 22:06:05 +00:00
2019-09-01 02:48:01 +00:00
For a much more detailled overview, please see the documentation.