Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build/

# generated code
generate_source/build
generate_source/vuetify
ipyvuetify/generated
js/src/generated

Expand Down
15 changes: 15 additions & 0 deletions generate_source/generate_api.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

#Note!: this will only work on node <=14

# use script directory as working directory
cd "${0%/*}"

rm -rf vuetify
git clone --branch v2.2.26 --depth 1 https://github.com/vuetifyjs/vuetify.git
npm install -g yarn
python patch_vuetify_build.py
(cd vuetify && yarn --ignore-optional && yarn build)

node -e 'console.log(JSON.stringify(require("./vuetify/packages/api-generator/dist/api.js"), null, 2))' > vuetify_api.json
pre-commit run --files vuetify_api.json
7 changes: 7 additions & 0 deletions generate_source/patch_vuetify_build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# upgrading these packages fails when using yarn cli
for path in ["vuetify/packages/vuetify/package.json", "vuetify/packages/docs/package.json"]:
with open(path, "r") as f:
file_contents = f.read()

with open(path, "w") as f:
f.write(file_contents.replace('"fibers": "^4.0.1"', '"fibers": "^5"'))