-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopier.yml
142 lines (112 loc) · 2.89 KB
/
copier.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Copier settings (not prompted)
_subdirectory: template
_answers_file: .copier-answers.hexdoc-mod.yml
_skip_if_exists:
- ".env"
- "icon.png"
_exclude:
# for copier-template-tester
- ".ctt"
- "ctt.toml"
# Defaults: https://copier.readthedocs.io/en/latest/configuring/#exclude
- "copier.yaml"
- "copier.yml"
- "~*"
- "*.py[co]"
- "__pycache__"
- ".git"
- ".DS_Store"
- ".svn"
# hide values that are relatively easy to autogenerate
advanced:
type: bool
default: false
help: Show advanced configuration questions?
# mod name and id
modid:
type: str
mod_display_name:
type: str
default: "{{ modid|capitalize }}"
book_id:
type: str
default: "{{ modid }}:{{ modid }}book"
help: Your Patchouli book id (eg. for Botania, this is botania:lexicon)
# hexdoc plugin
plugin_root:
when: "{{ advanced }}"
type: str
default: doc
plugin_root_with_slash:
when: false
default: "{{ plugin_root|trim('/')~'/' if plugin_root }}"
plugin_name:
when: "{{ advanced }}"
type: str
default: "hexdoc-{{ modid|replace('_', '-')|lower }}"
plugin_slug:
when: "{{ advanced }}"
type: str
default: "{{ plugin_name|replace('-', '_') }}"
help: "Directory name under {{ plugin_root_with_slash }}src/ to put plugin code in (eg. entering {{ plugin_name|replace('-', '_') }} will create {{ plugin_root_with_slash }}src/{{ plugin_name|replace('-', '_') }})"
plugin_pluggy_classname:
when: "{{ advanced }}"
type: str
default: "{{ modid|capitalize }}Plugin"
plugin_ModPlugin_classname:
when: "{{ advanced }}"
type: str
default: "{{ plugin_pluggy_classname|replace('Plugin', 'ModPlugin') }}"
# mod structure
gradle_mod_version_key:
type: str
default: modVersion
help: Key name in gradle.properties where the mod version is stored
gradle_minecraft_version_key:
type: str
default: minecraftVersion
help: Key name in gradle.properties where the Minecraft version is stored
multiloader:
type: bool
default: true
help: Does your mod use a multiloader structure?
capitalize_platforms:
type: bool
default: false
help: Are the platform directories capitalized (eg. Common/ vs common/)?
common_dir:
when: false
type: str
default: "{{ 'C' if capitalize_platforms else 'c' }}ommon"
fabric_dir:
when: false
type: str
default: "{{ 'F' if capitalize_platforms else 'f' }}abric"
forge_dir:
when: false
type: str
default: "{{ 'F' if capitalize_platforms else 'f' }}orge"
# GitHub
github_repo:
type: str
default: "{{ modid|capitalize }}"
author:
type: str
help: GitHub author username.
default_branch:
when: "{{ advanced }}"
type: str
default: main
base_book_url:
when: "{{ advanced }}"
type: str
default: "https://{{ author|lower }}.github.io/{{ github_repo }}/"
# file inclusion
add_gitignore:
type: bool
default: true
help: Generate .gitignore for Python and hexdoc?
add_vscode:
type: bool
default: true
help: Generate VSCode settings?