dep 정리
This commit is contained in:
@@ -2,24 +2,16 @@ import { GET, POST, type DefAPINamespace } from "@strpc/def";
|
|||||||
|
|
||||||
//굳이 할 필요는 없지만, d.ts가 깔끔해짐
|
//굳이 할 필요는 없지만, d.ts가 깔끔해짐
|
||||||
import type {
|
import type {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
InvalidResponse, ValidResponse
|
InvalidResponse, ValidResponse
|
||||||
} from "@strpc/def";
|
} from "@strpc/def";
|
||||||
import type {
|
import type {
|
||||||
ArgDeleteAPI,
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
ArgGetAPI,
|
ArgDeleteAPI, ArgGetAPI, ArgHeadAPI, ArgPatchAPI, ArgPostAPI, ArgPutAPI,
|
||||||
ArgHeadAPI,
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
ArgPatchAPI,
|
EmptyDeleteAPI, EmptyGetAPI, EmptyHeadAPI, EmptyPatchAPI, EmptyPostAPI, EmptyPutAPI,
|
||||||
ArgPostAPI,
|
|
||||||
ArgPutAPI,
|
|
||||||
EmptyDeleteAPI,
|
|
||||||
EmptyGetAPI,
|
|
||||||
EmptyHeadAPI,
|
|
||||||
EmptyPatchAPI,
|
|
||||||
EmptyPostAPI,
|
|
||||||
EmptyPutAPI,
|
|
||||||
} from "@strpc/def/types";
|
} from "@strpc/def/types";
|
||||||
|
|
||||||
|
|
||||||
export type LoginResponse = {
|
export type LoginResponse = {
|
||||||
result: true,
|
result: true,
|
||||||
nextToken: [number, string] | undefined,
|
nextToken: [number, string] | undefined,
|
||||||
@@ -49,7 +41,6 @@ export type AutoLoginFailed = {
|
|||||||
reason: string,
|
reason: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
|
||||||
export const structure = {
|
export const structure = {
|
||||||
Login: {
|
Login: {
|
||||||
LoginByID: POST<{
|
LoginByID: POST<{
|
||||||
|
|||||||
@@ -1,26 +1,20 @@
|
|||||||
import type {
|
import type {
|
||||||
DefAPINamespace,
|
DefAPINamespace,
|
||||||
} from "@strpc/def";
|
} from "@strpc/def";
|
||||||
|
import { GET, POST } from '@strpc/def';
|
||||||
|
|
||||||
//굳이 할 필요는 없지만, d.ts가 깔끔해짐
|
//굳이 할 필요는 없지만, d.ts가 깔끔해짐
|
||||||
import type {
|
import type {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
InvalidResponse, ValidResponse
|
InvalidResponse, ValidResponse
|
||||||
} from "@strpc/def";
|
} from "@strpc/def";
|
||||||
import type {
|
import type {
|
||||||
ArgDeleteAPI,
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
ArgGetAPI,
|
ArgDeleteAPI, ArgGetAPI, ArgHeadAPI, ArgPatchAPI, ArgPostAPI, ArgPutAPI,
|
||||||
ArgHeadAPI,
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
ArgPatchAPI,
|
EmptyDeleteAPI, EmptyGetAPI, EmptyHeadAPI, EmptyPatchAPI, EmptyPostAPI, EmptyPutAPI,
|
||||||
ArgPostAPI,
|
|
||||||
ArgPutAPI,
|
|
||||||
EmptyDeleteAPI,
|
|
||||||
EmptyGetAPI,
|
|
||||||
EmptyHeadAPI,
|
|
||||||
EmptyPatchAPI,
|
|
||||||
EmptyPostAPI,
|
|
||||||
EmptyPutAPI,
|
|
||||||
} from "@strpc/def/types";
|
} from "@strpc/def/types";
|
||||||
import { GET, POST } from '@strpc/def';
|
|
||||||
|
|
||||||
export type {
|
export type {
|
||||||
InferResponse,
|
InferResponse,
|
||||||
|
|||||||
@@ -5,10 +5,9 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "run-p type-check build-only",
|
"build": "vue-tsc && vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build-only": "vite build",
|
"build-only": "vite build",
|
||||||
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
|
||||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
||||||
"format": "prettier --write src/"
|
"format": "prettier --write src/"
|
||||||
},
|
},
|
||||||
@@ -19,6 +18,7 @@
|
|||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
"@sammo/game_logic": "workspace:^",
|
"@sammo/game_logic": "workspace:^",
|
||||||
"@sammo/util": "workspace:^",
|
"@sammo/util": "workspace:^",
|
||||||
|
"@strpc/client_ky": "workspace:^",
|
||||||
"@strpc/def": "workspace:^",
|
"@strpc/def": "workspace:^",
|
||||||
"bootstrap": "^5.3.1",
|
"bootstrap": "^5.3.1",
|
||||||
"bootstrap-vue-next": "^0.9.26",
|
"bootstrap-vue-next": "^0.9.26",
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
||||||
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
|
|
||||||
"exclude": ["src/**/__tests__/*"],
|
|
||||||
"compilerOptions": {
|
|
||||||
"composite": true,
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@/*": ["./src/*"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,15 +1,13 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "../../tsconfig.vite.json",
|
||||||
"compilerOptions": {
|
"include": [
|
||||||
"rootDir": "./src",
|
"src/**/*.ts",
|
||||||
"outDir": "./dist",
|
"src/**/*.d.ts",
|
||||||
},
|
"src/**/*.tsx",
|
||||||
"exclude": [
|
"src/**/*.vue"
|
||||||
|
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{
|
||||||
|
|
||||||
"path": "../util"
|
"path": "../util"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -20,9 +18,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./tsconfig.node.json"
|
"path": "./tsconfig.node.json"
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "./tsconfig.app.json"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,18 +1,10 @@
|
|||||||
{
|
{
|
||||||
"extends": "@tsconfig/node20/tsconfig.json",
|
|
||||||
"include": [
|
|
||||||
"vite.config.*",
|
|
||||||
"vitest.config.*",
|
|
||||||
"cypress.config.*",
|
|
||||||
"nightwatch.conf.*",
|
|
||||||
"playwright.config.*"
|
|
||||||
],
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Bundler",
|
"moduleResolution": "bundler",
|
||||||
"types": ["node"],
|
"allowSyntheticDefaultImports": true
|
||||||
"experimentalDecorators": true,
|
},
|
||||||
"emitDecoratorMetadata": true,
|
"include": ["vite.config.ts"]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
"@sammo/util": "workspace:^",
|
"@sammo/util": "workspace:^",
|
||||||
|
"@strpc/client_ky": "workspace:^",
|
||||||
"@strpc/def": "workspace:^",
|
"@strpc/def": "workspace:^",
|
||||||
"bootstrap": "^5.3.1",
|
"bootstrap": "^5.3.1",
|
||||||
"bootstrap-vue-next": "^0.9.26",
|
"bootstrap-vue-next": "^0.9.26",
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
||||||
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
|
|
||||||
"exclude": ["src/**/__tests__/*"],
|
|
||||||
"compilerOptions": {
|
|
||||||
"composite": true,
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@/*": ["./src/*"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "../../tsconfig.vite.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
@@ -20,9 +20,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./tsconfig.node.json"
|
"path": "./tsconfig.node.json"
|
||||||
},
|
}
|
||||||
{
|
|
||||||
"path": "./tsconfig.app.json"
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "run-p dev:client dev:server dev:gateway_server dev:gateway_client",
|
"dev": "run-p dev:client dev:server dev:gateway_server dev:gateway_client",
|
||||||
"build": "run-s build:ts build:vite",
|
"build": "run-s build:ts build:vite",
|
||||||
"build:ts": "run-p build:server build:gateway_server",
|
"build:ts": "run-s build:server build:gateway_server",
|
||||||
"build:vite": "run-s build:client build:gateway_client",
|
"build:vite": "run-s build:client build:gateway_client",
|
||||||
"type-check": "run-p type-check:server type-check:client type-check:gateway_server type-check:gateway_client",
|
"type-check": "run-p type-check:server type-check:client type-check:gateway_server type-check:gateway_client",
|
||||||
|
|
||||||
|
|||||||
Generated
+6
@@ -81,6 +81,9 @@ importers:
|
|||||||
'@sammo/util':
|
'@sammo/util':
|
||||||
specifier: workspace:^
|
specifier: workspace:^
|
||||||
version: link:../util
|
version: link:../util
|
||||||
|
'@strpc/client_ky':
|
||||||
|
specifier: workspace:^
|
||||||
|
version: link:../../@strpc/client_ky
|
||||||
'@strpc/def':
|
'@strpc/def':
|
||||||
specifier: workspace:^
|
specifier: workspace:^
|
||||||
version: link:../../@strpc/def
|
version: link:../../@strpc/def
|
||||||
@@ -237,6 +240,9 @@ importers:
|
|||||||
'@sammo/util':
|
'@sammo/util':
|
||||||
specifier: workspace:^
|
specifier: workspace:^
|
||||||
version: link:../util
|
version: link:../util
|
||||||
|
'@strpc/client_ky':
|
||||||
|
specifier: workspace:^
|
||||||
|
version: link:../../@strpc/client_ky
|
||||||
'@strpc/def':
|
'@strpc/def':
|
||||||
specifier: workspace:^
|
specifier: workspace:^
|
||||||
version: link:../../@strpc/def
|
version: link:../../@strpc/def
|
||||||
|
|||||||
+1
-7
@@ -1,17 +1,11 @@
|
|||||||
{
|
{
|
||||||
"extends": "./tsconfig.base.json",
|
"extends": "./tsconfig.base.json",
|
||||||
"references": [
|
"references": [
|
||||||
{
|
|
||||||
"path": "./@sammo/gateway_client"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "./@sammo/gateway_server"
|
"path": "./@sammo/gateway_server"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./@sammo/server"
|
"path": "./@sammo/server"
|
||||||
},
|
}
|
||||||
{
|
|
||||||
"path": "./@sammo/client"
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2020",
|
||||||
|
"useDefineForClassFields": true,
|
||||||
|
"module": "ESNext",
|
||||||
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||||
|
"skipLibCheck": true,
|
||||||
|
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
|
||||||
|
/* Bundler mode */
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"allowImportingTsExtensions": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"jsx": "preserve",
|
||||||
|
|
||||||
|
/* Linting */
|
||||||
|
"strict": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noFallthroughCasesInSwitch": true
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user