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