forked from artynova/hexdummy
-
Notifications
You must be signed in to change notification settings - Fork 5
/
copier.yml
136 lines (109 loc) · 2.68 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
# 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: |
{%- import "macros/validators.jinja" as validators -%}
{{- validators.not_empty(modid) -}}
{{- validators.regex(modid, "^[a-z][a-z0-9_]{1,63}$") -}}
author:
type: str
validator: |
{%- import "macros/validators.jinja" as validators -%}
{{- validators.not_empty(author) -}}
classname:
type: str
help: "classname base (eg. '{{ modid|capitalize }}' -> '{{ modid|capitalize }}Client.java')"
default: "{{ modid|capitalize }}"
validator: |
{%- import "macros/validators.jinja" as validators -%}
{{- validators.not_empty(classname) -}}
{{- validators.java_identifier(classname) -}}
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 }}"
validator: |
{%- import "macros/validators.jinja" as validators -%}
{{- validators.not_empty(package) -}}
{{- validators.java_package(package) -}}
capitalize_platforms:
type: bool
help: Capitalize platform directory names? (eg. Common vs common)
default: false
mappings_name:
type: str
help: "Mappings (note: Hex Casting uses Mojmap)"
choices:
- Mojmap
- Yarn
default: Mojmap
# static/computed values
mappings_values:
when: false
default:
Mojmap: 'loom.officialMojangMappings()'
Yarn: '"net.fabricmc:yarn:1.19.2+build.28:v2"'
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