refactor: update test setup, introduce system environment for commands, and streamline frontend build configuration.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
"dependencies": {
|
||||
"@sammo-ts/common": "workspace:*",
|
||||
"@sammo-ts/game-api": "workspace:*",
|
||||
"@sammo-ts/gateway-api": "workspace:*",
|
||||
"@sammo-ts/logic": "workspace:*",
|
||||
"@trpc/client": "^11.8.1",
|
||||
"@trpc/server": "^11.8.1",
|
||||
"@vueuse/core": "^13.9.0",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createTRPCProxyClient, httpBatchLink } from '@trpc/client';
|
||||
import type { appRouter } from '../../../game-api/src/router';
|
||||
import type { appRouter } from '@sammo-ts/game-api';
|
||||
|
||||
export type GameRouter = typeof appRouter;
|
||||
|
||||
|
||||
@@ -4,48 +4,75 @@
|
||||
"target": "ESNext",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "ESNext",
|
||||
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
||||
"lib": [
|
||||
"ESNext",
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "preserve",
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"],
|
||||
"@sammo-ts/common": ["../../packages/common/src/index.ts"],
|
||||
"@sammo-ts/common/*": ["../../packages/common/src/*"],
|
||||
"@sammo-ts/infra": ["../../packages/infra/src/index.ts"],
|
||||
"@sammo-ts/infra/*": ["../../packages/infra/src/*"],
|
||||
"@sammo-ts/logic": ["../../packages/logic/src/index.ts"],
|
||||
"@sammo-ts/logic/*": ["../../packages/logic/src/*"],
|
||||
"@sammo-ts/game-engine": ["../../app/game-engine/src/index.ts"],
|
||||
"@sammo-ts/game-engine/*": ["../../app/game-engine/src/*"],
|
||||
"@sammo-ts/game-api": ["../../app/game-api/src/index.ts"],
|
||||
"@sammo-ts/game-api/*": ["../../app/game-api/src/*"],
|
||||
"@sammo-ts/gateway-api": ["../../app/gateway-api/src/index.ts"],
|
||||
"@sammo-ts/gateway-api/*": ["../../app/gateway-api/src/*"]
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
],
|
||||
"@sammo-ts/common": [
|
||||
"../../packages/common/src/index.ts"
|
||||
],
|
||||
"@sammo-ts/common/*": [
|
||||
"../../packages/common/src/*"
|
||||
],
|
||||
"@sammo-ts/infra": [
|
||||
"../../packages/infra/src/index.ts"
|
||||
],
|
||||
"@sammo-ts/infra/*": [
|
||||
"../../packages/infra/src/*"
|
||||
],
|
||||
"@sammo-ts/logic": [
|
||||
"../../packages/logic/src/index.ts"
|
||||
],
|
||||
"@sammo-ts/logic/*": [
|
||||
"../../packages/logic/src/*"
|
||||
],
|
||||
"@sammo-ts/game-engine": [
|
||||
"../../app/game-engine/src/index.ts"
|
||||
],
|
||||
"@sammo-ts/game-engine/*": [
|
||||
"../../app/game-engine/src/*"
|
||||
],
|
||||
"@sammo-ts/game-api": [
|
||||
"../../app/game-api/src/index.ts"
|
||||
],
|
||||
"@sammo-ts/game-api/*": [
|
||||
"../../app/game-api/src/*"
|
||||
],
|
||||
"@sammo-ts/gateway-api": [
|
||||
"../../app/gateway-api/src/index.ts"
|
||||
],
|
||||
"@sammo-ts/gateway-api/*": [
|
||||
"../../app/gateway-api/src/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "test/**/*.ts", "*.ts"],
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.vue",
|
||||
"test/**/*.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.node.json" },
|
||||
{ "path": "../../packages/common" },
|
||||
{ "path": "../../packages/infra" },
|
||||
{ "path": "../../packages/logic" },
|
||||
{ "path": "../../app/game-engine" },
|
||||
{ "path": "../../app/game-api" },
|
||||
{ "path": "../../app/gateway-api" }
|
||||
{
|
||||
"path": "./tsconfig.node.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
declare const _default: import('vite').UserConfig;
|
||||
export default _default;
|
||||
@@ -1,16 +0,0 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import path from 'path';
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue(), tailwindcss()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user