Skip to content

Commit 38b1fe3

Browse files
committed
chore: add GEMINI.md for workspace instructions and update package.json to include api-client module imports
1 parent a67fb5f commit 38b1fe3

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

GEMINI.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Gemini Workspace Instructions
2+
3+
This document provides instructions for the Gemini AI assistant to effectively interact with the NoteBlockWorld project.
4+
5+
## Package Manager
6+
7+
This project uses **Bun** as the package manager and runtime. Do not use `npm`, `yarn`, or `pnpm`.
8+
9+
- **Installation:** `bun install`
10+
- **Running scripts:** `bun run <script_name>`
11+
- **Adding dependencies:** `bun add <package_name>`
12+
- **Running tests:** `bun test`
13+
14+
## Project Structure
15+
16+
This is a TypeScript monorepo managed with Bun workspaces.
17+
18+
- **`apps/`**: Contains the main applications.
19+
- **`apps/backend`**: A NestJS application for the server-side logic.
20+
- **`apps/frontend`**: A Next.js application for the user interface.
21+
- **`packages/`**: Contains shared libraries and modules used across the monorepo.
22+
- **`packages/api-client`**: Client for communicating with the backend API.
23+
- **`packages/configs`**: Shared configurations (e.g., ESLint, Prettier).
24+
- **`packages/database`**: Database schemas, queries, and connection logic.
25+
- **`packages/song`**: Core logic for handling and manipulating song data.
26+
- **`packages/sounds`**: Logic related to fetching and managing sounds.
27+
- **`packages/thumbnail`**: A library for generating song thumbnails.
28+
- **`tests/`**: Contains end-to-end tests, likely using Cypress.
29+
- **`tsconfig.base.json`**: The base TypeScript configuration for the entire monorepo.

bun.lock

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,20 @@
160160
"eslint-plugin-mdx": "^3.1.5",
161161
},
162162
},
163+
"packages/api-client": {
164+
"name": "@nbw/api-client",
165+
"dependencies": {
166+
"@nbw/database": "workspace:*",
167+
"axios": "^1.6.7",
168+
},
169+
"devDependencies": {
170+
"@types/bun": "latest",
171+
"typescript": "^5",
172+
},
173+
"peerDependencies": {
174+
"typescript": "^5",
175+
},
176+
},
163177
"packages/configs": {
164178
"name": "@nbw/config",
165179
"devDependencies": {
@@ -607,6 +621,8 @@
607621

608622
"@napi-rs/wasm-runtime": ["@napi-rs/[email protected]", "", { "dependencies": { "@emnapi/core": "^1.4.3", "@emnapi/runtime": "^1.4.3", "@tybys/wasm-util": "^0.10.0" } }, "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ=="],
609623

624+
"@nbw/api-client": ["@nbw/api-client@workspace:packages/api-client"],
625+
610626
"@nbw/backend": ["@nbw/backend@workspace:apps/backend"],
611627

612628
"@nbw/config": ["@nbw/config@workspace:packages/configs"],
@@ -3189,6 +3205,8 @@
31893205

31903206
"@napi-rs/wasm-runtime/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
31913207

3208+
"@nbw/api-client/@types/bun": ["@types/[email protected]", "", { "dependencies": { "bun-types": "1.2.22" } }, "sha512-5A/KrKos2ZcN0c6ljRSOa1fYIyCKhZfIVYeuyb4snnvomnpFqC0tTsEkdqNxbAgExV384OETQ//WAjl3XbYqQA=="],
3209+
31923210
"@nbw/backend/@types/bun": ["@types/[email protected]", "", { "dependencies": { "bun-types": "1.2.22" } }, "sha512-5A/KrKos2ZcN0c6ljRSOa1fYIyCKhZfIVYeuyb4snnvomnpFqC0tTsEkdqNxbAgExV384OETQ//WAjl3XbYqQA=="],
31933211

31943212
"@nbw/config/@types/bun": ["@types/[email protected]", "", { "dependencies": { "bun-types": "1.2.22" } }, "sha512-5A/KrKos2ZcN0c6ljRSOa1fYIyCKhZfIVYeuyb4snnvomnpFqC0tTsEkdqNxbAgExV384OETQ//WAjl3XbYqQA=="],
@@ -4043,6 +4061,8 @@
40434061

40444062
"@jest/types/@types/node/undici-types": ["[email protected]", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="],
40454063

4064+
"@nbw/api-client/@types/bun/bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-hwaAu8tct/Zn6Zft4U9BsZcXkYomzpHJX28ofvx7k0Zz2HNz54n1n+tDgxoWFGB4PcFvJXJQloPhaV2eP3Q6EA=="],
4065+
40464066
"@nbw/backend/@types/bun/bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-hwaAu8tct/Zn6Zft4U9BsZcXkYomzpHJX28ofvx7k0Zz2HNz54n1n+tDgxoWFGB4PcFvJXJQloPhaV2eP3Q6EA=="],
40474067

40484068
"@nbw/config/@types/bun/bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-hwaAu8tct/Zn6Zft4U9BsZcXkYomzpHJX28ofvx7k0Zz2HNz54n1n+tDgxoWFGB4PcFvJXJQloPhaV2eP3Q6EA=="],
@@ -4281,6 +4301,10 @@
42814301

42824302
"@istanbuljs/load-nyc-config/find-up/locate-path/p-locate": ["[email protected]", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="],
42834303

4304+
"@nbw/api-client/@types/bun/bun-types/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-+lTU0PxZXn0Dr1NBtC7Y8cR21AJr87dLLU953CWA6pMxxv/UDc7jYAY90upcrie1nRcD6XNG5HOYEDtgW5TxAg=="],
4305+
4306+
"@nbw/api-client/@types/bun/bun-types/@types/react": ["@types/[email protected]", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g=="],
4307+
42844308
"@nbw/backend/@types/bun/bun-types/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-+lTU0PxZXn0Dr1NBtC7Y8cR21AJr87dLLU953CWA6pMxxv/UDc7jYAY90upcrie1nRcD6XNG5HOYEDtgW5TxAg=="],
42854309

42864310
"@nbw/backend/@types/bun/bun-types/@types/react": ["@types/[email protected]", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g=="],
@@ -4385,6 +4409,8 @@
43854409

43864410
"@istanbuljs/load-nyc-config/find-up/locate-path/p-locate/p-limit": ["[email protected]", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="],
43874411

4412+
"@nbw/api-client/@types/bun/bun-types/@types/node/undici-types": ["[email protected]", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="],
4413+
43884414
"@nbw/backend/@types/bun/bun-types/@types/node/undici-types": ["[email protected]", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="],
43894415

43904416
"@nbw/config/@types/bun/bun-types/@types/node/undici-types": ["[email protected]", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="],

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
"./sounds": {
3434
"import": "./packages/sounds/dist/index.js",
3535
"types": "./packages/sounds/dist/index.d.ts"
36+
},
37+
"./api-client": {
38+
"import": "./packages/api-client/dist/index.js",
39+
"types": "./packages/api-client/dist/index.d.ts"
3640
}
3741
},
3842
"scripts": {

0 commit comments

Comments
 (0)