chore: dev only start web dev now, rename to use dev: stub: build: test: lint: for scripts

This commit is contained in:
Neko Ayaka
2025-05-27 22:32:22 +08:00
parent 57e0edba74
commit b920ef3d3a
9 changed files with 33 additions and 32 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build Dependencies
run: pnpm run packages:build
run: pnpm run build:packages
- name: Build Application
run: cd apps/stage-tamagotchi && pnpm tauri build --target ${{ matrix.target }}
+3 -3
View File
@@ -62,9 +62,9 @@ jobs:
- name: Build
run: |
pnpm run packages:build
pnpm run apps:build
pnpm run crates:build
pnpm run build:packages
pnpm run build:apps
pnpm run build:crates
typecheck:
name: Type Check
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Packages build
run: pnpm run packages:build
run: pnpm run build:packages
- name: Packages publish
run: pnpm publish -r --access public --no-git-checks
+1 -1
View File
@@ -58,7 +58,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build Dependencies
run: pnpm run packages:build
run: pnpm run build:packages
- name: Build Application
run: cd apps/stage-tamagotchi && pnpm tauri build --target ${{ matrix.target }}
+5 -5
View File
@@ -201,7 +201,7 @@ pnpm -F @proj-airi/telegram-bot db:push
Generate bundles for Monorepo packages
```shell
pnpm packages:stub
pnpm stub:packages
```
Run the bot
@@ -235,7 +235,7 @@ Edit the credentials in `.env.local`.
Generate bundles for Monorepo packages
```shell
pnpm packages:stub
pnpm stub:packages
```
Run the bot
@@ -271,7 +271,7 @@ Edit the credentials in `.env.local`.
Generate bundles for Monorepo packages
```shell
pnpm packages:stub
pnpm stub:packages
```
Run the bot
@@ -297,7 +297,7 @@ pnpm -F @proj-airi/minecraft-bot start
> Please make sure lint (static checkers) and TypeScript compilers are satisfied:
>
> ```shell
> pnpm packages:stub && pnpm lint && pnpm typecheck
> pnpm stub:packages && pnpm lint && pnpm typecheck
> ```
> [!NOTE]
@@ -305,7 +305,7 @@ pnpm -F @proj-airi/minecraft-bot start
> If you have [@antfu/ni](https://github.com/antfu-collective/ni) installed, you can use `nr` to run the commands:
>
> ```shell
> nr packages:stub && nr lint && nr typecheck
> nr stub:packages && nr lint && nr typecheck
> ```
### Commit
+1
View File
@@ -54,6 +54,7 @@ words:
- demodel
- devlogs
- dotenvx
- dtolnay
- dtype
- dtypes
- duckdb
@@ -211,7 +211,7 @@ pnpm -F @proj-airi/telegram-bot db:push
Generate bundles for Monorepo packages
```shell
pnpm packages:stub
pnpm stub:packages
```
Run the bot
@@ -247,7 +247,7 @@ Edit the credentials in `.env.local`.
Generate bundles for Monorepo packages
```shell
pnpm packages:stub
pnpm stub:packages
```
Run the bot
@@ -285,7 +285,7 @@ Edit the credentials in `.env.local`.
Generate bundles for Monorepo packages
```shell
pnpm packages:stub
pnpm stub:packages
```
Run the bot
@@ -313,7 +313,7 @@ nr -F @proj-airi/minecraft-bot dev
Please make sure lint (static checkers) and TypeScript compilers are satisfied:
```shell
pnpm packages:stub && pnpm lint && pnpm typecheck
pnpm stub:packages && pnpm lint && pnpm typecheck
```
:::
@@ -323,7 +323,7 @@ pnpm packages:stub && pnpm lint && pnpm typecheck
If you have [@antfu/ni](https://github.com/antfu-collective/ni) installed, you can use `nr` to run the commands:
```shell
nr packages:stub && nr lint && nr typecheck
nr stub:packages && nr lint && nr typecheck
```
:::
+15 -15
View File
@@ -11,30 +11,30 @@
},
"license": "MIT",
"scripts": {
"postinstall": "npx simple-git-hooks && pnpm packages:build",
"dev": "pnpm -rF=\"./packages/*\" -F=\"./apps/*\" run --parallel dev",
"dev": "pnpm -r -F @proj-airi/stage-web dev",
"dev:ui": "pnpm -rF @proj-airi/stage-ui run story:dev",
"dev:web": "pnpm -rF @proj-airi/stage-web run dev",
"dev:tamagotchi": "pnpm -rF @proj-airi/stage-tamagotchi run app:dev",
"dev:apps": "pnpm -rF=\"./apps/*\" run --parallel dev",
"dev:packages": "pnpm -rF=\"./packages/*\" --parallel run dev",
"stub:packages": "pnpm -rF=\"./packages/*\" run --parallel stub",
"build": "pnpm -rF=\"./packages/*\" -F=\"./apps/*\" run build",
"ui:dev": "pnpm -rF @proj-airi/stage-ui run story:dev",
"apps:web:dev": "pnpm -rF @proj-airi/stage-web run dev",
"apps:web:build": "pnpm -rF @proj-airi/stage-web run build",
"apps:tamagotchi:dev": "pnpm -rF @proj-airi/stage-tamagotchi run app:dev",
"apps:tamagotchi:build": "pnpm -rF @proj-airi/stage-tamagotchi run app:build",
"apps:dev": "pnpm -rF=\"./apps/*\" run --parallel dev",
"apps:build": "pnpm -rF=\"./apps/*\" run build",
"packages:dev": "pnpm -rF=\"./packages/*\" --parallel run dev",
"packages:stub": "pnpm -rF=\"./packages/*\" run --parallel stub",
"packages:build": "pnpm -rF=\"./packages/*\" run build",
"crates:build": "cargo build --workspace",
"build:web": "pnpm -rF @proj-airi/stage-web run build",
"build:tamagotchi": "pnpm -rF @proj-airi/stage-tamagotchi run app:build",
"build:apps": "pnpm -rF=\"./apps/*\" run build",
"build:packages": "pnpm -rF=\"./packages/*\" run build",
"build:crates": "cargo build --workspace",
"test": "vitest --coverage",
"test:run": "vitest run",
"lint": "eslint --cache .",
"lint:fix": "eslint --cache --fix .",
"lint:rust": "cargo fmt --check && cargo clippy --workspace",
"typecheck": "pnpm -rF=\"./packages/*\" -F=\"./apps/*\" -F run --parallel typecheck",
"postinstall": "npx simple-git-hooks && pnpm build:packages",
"sizecheck": "npx vite-bundle-visualizer",
"up": "taze major -I",
"changelogithub": "changelogithub",
"nolyfill": "pnpm dlx nolyfill"
"nolyfill": "pnpm dlx nolyfill",
"typecheck": "pnpm -rF=\"./packages/*\" -F=\"./apps/*\" -F run --parallel typecheck"
},
"devDependencies": {
"@antfu/eslint-config": "^4.13.2",
+1 -1
View File
@@ -9,7 +9,7 @@ Clone & install dependencies:
```shell
git clone git@github.com:moeru-ai/airi.git
pnpm i
pnpm run packages:build
pnpm run build:packages
```
Start Ollama instance for embedding models