PkgTemplates.jl/README.md

43 lines
1.3 KiB
Markdown
Raw Normal View History

2017-08-10 17:13:01 +00:00
# PkgTemplates
2017-08-15 14:19:37 +00:00
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://invenia.github.io/PkgTemplates.jl/stable)
[![Dev](https://img.shields.io/badge/docs-latest-blue.svg)](https://invenia.github.io/PkgTemplates.jl/dev)
[![Build Status](https://travis-ci.org/invenia/PkgTemplates.jl.svg?branch=master)](https://travis-ci.org/invenia/PkgTemplates.jl)
2018-11-05 22:05:30 +00:00
[![Codecov](https://codecov.io/gh/invenia/PkgTemplates.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/invenia/PkgTemplates.jl)
2017-08-16 06:12:42 +00:00
**PkgTemplates creates new Julia packages in an easy, repeatable, and customizable way.**
2017-08-16 06:12:42 +00:00
## Usage
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
```jl
using PkgTemplates
t = Template()
2017-08-16 06:12:42 +00:00
```
2018-09-26 20:55:24 +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
```
Once you have a `Template`, yoy can createa packages with ease:
```jl
t("MyPkg")
```
2017-10-01 23:25:12 +00:00
---
For a much more detailled overview, please see the documentation.