forked from FallingColors/hexdummy
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcopier.yml
116 lines (90 loc) · 2.11 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
# Copier settings
_subdirectory: template
_answers_file: .copier-answers.hexdummy.yml
_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"
# questions
modid:
type: str
validator: "{% if not modid %}Value must not be blank{% endif %}"
author:
type: str
validator: "{% if not author %}Value must not be blank{% endif %}"
classname:
type: str
help: "classname base (eg. '{{ modid|capitalize }}' -> '{{ modid|capitalize }}Client.java')"
default: "{{ modid|capitalize }}"
display_name:
type: str
default: "{{ classname }}"
description:
type: str
default: "{{ display_name }} addon for Hex Casting"
license:
type: str
default: MIT
github_repo:
type: str
default: "{{ modid }}"
default_branch:
type: str
default: main
sources_url:
type: str
default: "https://github.com/{{ author }}/{{ github_repo }}"
homepage_url:
type: str
default: "https://{{ author|lower }}.github.io/{{ github_repo }}"
initial_mod_version:
type: str
default: "0.0.1"
java_version:
type: int
default: 17
hexcasting_version:
type: str
default: "0.10.3"
package:
type: str
default: "net.{{ modid }}"
capitalize_platforms:
type: bool
help: Capitalize platform directory names? (eg. Common vs common)
default: false
mappings:
type: str
choices:
Mojmap: 'loom.officialMojangMappings()'
Yarn: &mappings_default '"net.fabricmc:yarn:1.19.2+build.28:v2"'
default: *mappings_default
# static/computed values
common_path:
when: false
default: "{{ 'Common' if capitalize_platforms else 'common' }}"
fabric_path:
when: false
default: "{{ 'Fabric' if capitalize_platforms else 'fabric' }}"
forge_path:
when: false
default: "{{ 'Forge' if capitalize_platforms else 'forge' }}"
package_path:
when: false
default: "{{ package|replace('.', '/') }}"
book_id_path:
when: false
default: "{{ modid }}book"
# for better hexdoc compat
gradle_mod_version_key:
when: false
default: modVersion