Initial scaffold: bilingual common package (data/, rust/, ts/, codegen/)
This commit is contained in:
commit
1da6aa35a0
6 changed files with 33 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
target/
|
||||||
|
Cargo.lock
|
||||||
|
node_modules/
|
||||||
13
data/items/weapons.json
Normal file
13
data/items/weapons.json
Normal 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
8
rust/Cargo.toml
Normal 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
1
rust/src/lib.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
pub const PROJECT_NAME: &str = "skara-brae";
|
||||||
7
ts/package.json
Normal file
7
ts/package.json
Normal 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
1
ts/src/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export const PROJECT_NAME = "skara-brae" as const;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue