add new submodule, update script

This commit is contained in:
Badtz 2025-05-08 15:15:21 -07:00
parent af002cd902
commit c7389bc8c8
6 changed files with 14 additions and 11 deletions

1
.gitignore vendored
View file

@ -1,7 +1,6 @@
node_modules
# Types
/util/anylists
/src/types
# Output

3
.gitmodules vendored
View file

@ -0,0 +1,3 @@
[submodule "lexicons"]
path = lexicons
url = ssh://forgejo@winry.woach.me:922/Spoor/lexicons.git

9
generate-lexicons.sh Normal file
View 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

@ -0,0 +1 @@
Subproject commit a18e052a776e5e271f5dac35e3a299720cae4b2d

View file

@ -13,7 +13,7 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"types": "bash ./util/generate-lexicons.sh"
"types": "bash ./generate-lexicons.sh"
},
"devDependencies": {
"@atcute/client": "^2.0.9",

View file

@ -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"