Skip to content

Commit a0b4bca

Browse files
build: sort components and properties in the generated code
Now that we store generated code in git, having a stable sort order will allow us to see API changes easily in the diff.
1 parent 5689e30 commit a0b4bca

3 files changed

Lines changed: 6273 additions & 6273 deletions

File tree

generate_source/generate_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_component_files():
2626
for file_path in Path("vuetify/packages/api-generator/dist/api").glob("V*.json"):
2727
component_files.append((file_path.stem, file_path))
2828

29-
return component_files
29+
return sorted(component_files)
3030

3131

3232
def get_sub(prop: dict):
@@ -87,7 +87,7 @@ class {name[1:]}(VuetifyWidget):
8787
with open(path) as f:
8888
data = json.load(f)
8989
props = data["props"]
90-
for prop_name, prop in props.items():
90+
for prop_name, prop in sorted(props.items()):
9191
if prop["type"] in ["record", "unknown"]:
9292
continue
9393

0 commit comments

Comments
 (0)