-
Notifications
You must be signed in to change notification settings - Fork 0
/
copier.yaml
45 lines (44 loc) · 1 KB
/
copier.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Params
project_name: #^[a-zA-Z][_a-zA-Z0-9]+$
type: str
default: project_name
project_description:
type: str
default: "{{ project_name.capitalize() | replace('_', ' ') }}"
author_name:
type: str
default: Branch Vincent
author_email:
type: str
default: branchevincent@gmail.com
repo_username:
type: str
default: branchvincent
repo_name:
type: str
default: "{{ project_name | lower | replace(' ', '-') | replace('_', '-') }}"
private:
type: bool
default: True
docs:
type: bool
default: False
docker:
type: bool
default: False
# type:
# type: str
# choices:
# - app
# - lib
# Internal config
_subdirectory: src
_exclude:
- /macros
_skip_if_exists:
- pyproject.toml
_tasks:
- "[ -d .git ] || poetry install -q"
- "[ -d .git ] || git init -q && git add --all && git commit -qm 'initial commit'"
- "[ -d .git ] || touch .envrc"
- printf "To create your repo:\n gh repo create -y {{repo_username}}/{{repo_name}} {% if private %}--private{% else %}--public{% endif %}"