feat: 타입스크립트 설정 및 Vite 구성 추가
This commit is contained in:
@@ -10,7 +10,6 @@ import type {
|
||||
TurnStateStore,
|
||||
TurnProcessor,
|
||||
Clock,
|
||||
TurnCheckpoint,
|
||||
TurnDaemonCommandHandler,
|
||||
TurnDaemonCommandResponder,
|
||||
TurnDaemonCommandResult,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TurnDaemonHooks, TurnDaemonCommandHandler, TurnDaemonCommandResult, TurnRunResult } from '../lifecycle/types.js';
|
||||
import type { TurnDaemonHooks, TurnDaemonCommandHandler, TurnDaemonCommand, TurnDaemonCommandResult, TurnRunResult } from '../lifecycle/types.js';
|
||||
import type { InMemoryTurnWorld } from './inMemoryWorld.js';
|
||||
|
||||
const buildFlushResult = (world: InMemoryTurnWorld): TurnRunResult => {
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
"include": ["src"],
|
||||
"references": [
|
||||
{ "path": "../../packages/common" },
|
||||
{ "path": "../../packages/infra" }
|
||||
{ "path": "../../packages/infra" },
|
||||
{ "path": "../../packages/logic" },
|
||||
{ "path": "../../app/game-engine" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
"@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/logic/*": ["../../packages/logic/src/*"],
|
||||
"@sammo-ts/game-engine": ["../../app/game-engine/src/index.ts"],
|
||||
"@sammo-ts/game-engine/*": ["../../app/game-engine/src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
declare const _default: import("vite").UserConfig;
|
||||
export default _default;
|
||||
@@ -0,0 +1,19 @@
|
||||
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,
|
||||
},
|
||||
});
|
||||
+5
-1
@@ -8,7 +8,11 @@
|
||||
"@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/logic/*": ["packages/logic/src/*"],
|
||||
"@sammo-ts/game-api": ["app/game-api/src/index.ts"],
|
||||
"@sammo-ts/game-api/*": ["app/game-api/src/*"],
|
||||
"@sammo-ts/game-engine": ["app/game-engine/src/index.ts"],
|
||||
"@sammo-ts/game-engine/*": ["app/game-engine/src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user