generated from edayot/DatapackTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.yaml
69 lines (56 loc) · 2.35 KB
/
common.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
data_pack:
zipped: false
resource_pack:
zipped: false
require:
- airdox_.add_tests_directory
- airdox_.allow_function_without_name
- mecha.contrib.messages
- beet.contrib.render
- beet.contrib.model_merging
- bolt
pipeline:
- mecha
- smithed_libraries.plugins.versioning
- airdox_.clean_useless_tags
- airdox_.add_license
- airdox_.add_readme
- mecha.contrib.messages
- beet.contrib.render
- beet.contrib.minify_json
- beet.contrib.minify_function
- airdox_.add_id
meta:
airdox_:
license_path: "LICENSE"
readme_path: "README.md"
mecha:
formatting: preserve
multiline: true
smithed:
versioning:
# Either a list or single item of paths to schedule clocks
# Used to kill library ticking if a newer library exists in-world
scheduled_paths: impl/tick
# configures how the pack leverages LL to implement enumeration and resolution
lantern_load:
step: load # which LL step to start pack discovery
tag_path: load # base path for tags needed for LL impl
function_path: impl/test_load # base path for functions needed for LL impl
# configures how versions get injected into paths and folders
# ex: smithed.actionbar/impl/reset -> smithed.actionbar/impl/v1.2.3/reset
# here, we need to specify `{{ ctx.project_id }}`
refactor:
match: "{{ project_id }}:*" # which files to look at
find: "{{ project_id }}:impl/" # which paths to look for
replace: "{{ project_id }}:v{{ version }}/" # what to replace path w/
# configures how APIs get generated and version checked
# this occurs **after** refactoring!
# any API with `# @public` on the first line generates the following:
# - function tag: "{{ namespace }}:{{ tag_path }}/{{ path_to_file }}"
# - version check: "{{ namespace }}:{{ version_check_path }}/{{ path_to_file}}"
api:
match: "{{ project_id }}:v{{ version }}" # match only implemented apis
implementation_prefix: "{{ project_id }}:v{{ version }}/" # which files match the internal path
version_check_path: "v{{ version }}/calls" # base path for version_checks
tag_path: "_useless" # base path for API tags