-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add script to generate Vuetify API data
Also the answer to #270
- Loading branch information
1 parent
2c5cbb4
commit 270efce
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
#Note!: this will only built node 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"')) |