Initial scaffold: bilingual common package (data/, rust/, ts/, codegen/)

This commit is contained in:
Jan-Peter von Hunnius 2026-08-02 12:48:08 +02:00
commit 1da6aa35a0
6 changed files with 33 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
target/
Cargo.lock
node_modules/

13
data/items/weapons.json Normal file
View file

@ -0,0 +1,13 @@
[
{
"id": "wooden_sword",
"name": "Wooden Sword",
"type": "weapon",
"quality": "common",
"slot": "main_hand",
"stats": {
"damage": 5
},
"description": "A simple wooden training sword."
}
]

8
rust/Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[package]
name = "sb-common"
version = "0.1.0"
edition = "2024"
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"

1
rust/src/lib.rs Normal file
View file

@ -0,0 +1 @@
pub const PROJECT_NAME: &str = "skara-brae";

7
ts/package.json Normal file
View file

@ -0,0 +1,7 @@
{
"name": "@skara-brae/common",
"version": "0.1.0",
"type": "module",
"main": "src/index.ts",
"types": "src/index.ts"
}

1
ts/src/index.ts Normal file
View file

@ -0,0 +1 @@
export const PROJECT_NAME = "skara-brae" as const;