PkgTemplates.jl/README.md

62 lines
1.8 KiB
Markdown
Raw Permalink 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-dev-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)
2019-10-04 06:29:30 +00:00
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
2017-08-16 06:12:42 +00:00
**PkgTemplates creates new Julia packages in an easy, repeatable, and customizable way.**
2019-09-25 14:56:00 +00:00
## Installation
Install with Pkg, just like any other registered Julia package:
```jl
2020-03-29 21:54:06 +00:00
pkg> add PkgTemplates # Press ']' to enter the Pkg REPL mode.
2019-09-25 14:56:00 +00:00
```
## Usage
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
2019-09-25 14:56:00 +00:00
The no-keywords constructor assumes the existence of some preexisting Git configuration (set with `git config --global`):
- `user.name`: Your real name, e.g. John Smith.
- `user.email`: Your email address, eg. john.smith@acme.corp.
- `github.user`: Your GitHub username: e.g. john-smith.
Once you have a `Template`, use it to generate a package:
```jl
t("MyPkg")
```
However, it's probably desirable to customize the template to your liking with various options and plugins:
```jl
t = Template(;
dir="~/code",
plugins=[
2019-09-20 02:31:56 +00:00
Git(; manifest=true, ssh=true),
Codecov(),
TravisCI(; x86=true),
Documenter{TravisCI}(),
2019-10-06 07:43:17 +00:00
],
)
2017-08-16 06:12:42 +00:00
```
---
For a much more detailled overview, please see the documentation.
2020-04-18 04:48:33 +00:00
## Contributing
Issues and pull requests are welcome!
For some more specific tips, see the developer documentation.