add new submodule, update script
This commit is contained in:
parent
af002cd902
commit
c7389bc8c8
6 changed files with 14 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,7 +1,6 @@
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# Types
|
# Types
|
||||||
/util/anylists
|
|
||||||
/src/types
|
/src/types
|
||||||
|
|
||||||
# Output
|
# Output
|
||||||
|
|
|
||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "lexicons"]
|
||||||
|
path = lexicons
|
||||||
|
url = ssh://forgejo@winry.woach.me:922/Spoor/lexicons.git
|
||||||
9
generate-lexicons.sh
Normal file
9
generate-lexicons.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!bin/bash
|
||||||
|
|
||||||
|
git submodule foreach --recursive git pull origin main
|
||||||
|
git submodule update --remote
|
||||||
|
|
||||||
|
pnpm exec lex-cli generate \
|
||||||
|
./lexicons/my/spoor/**/*.json \
|
||||||
|
-o ./src/types/lexicons.ts \
|
||||||
|
--description "Contains type declarations for spoor.my lexicons"
|
||||||
1
lexicons
Submodule
1
lexicons
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a18e052a776e5e271f5dac35e3a299720cae4b2d
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"lint": "prettier --check . && eslint .",
|
"lint": "prettier --check . && eslint .",
|
||||||
"types": "bash ./util/generate-lexicons.sh"
|
"types": "bash ./generate-lexicons.sh"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@atcute/client": "^2.0.9",
|
"@atcute/client": "^2.0.9",
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#!bin/bash
|
|
||||||
|
|
||||||
git submodule update --remote
|
|
||||||
|
|
||||||
|
|
||||||
pnpm exec lex-cli generate \
|
|
||||||
./util/anylists/lexicons/me/woach/**/*.json \
|
|
||||||
-o ./src/types/lexicons.ts \
|
|
||||||
--description "Contains type declarations for woach.me lexicons"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue