Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
강동현
2021-06-01 12:31:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce81def615453b4be009c8eca3aed5b4301dd76b
ce81def6
1 parent
c0ef384b
common 폴더 추가 & 레퍼런스
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
14 deletions
common/index.ts
common/message.ts
common/tsconfig.json
server/tsconfig.json
web/tsconfig.json
common/index.ts
0 → 100644
View file @
ce81def
export
*
from
"./message"
;
common/message.ts
0 → 100644
View file @
ce81def
export
interface
ServerInboundMessageMap
{
login
:
{
username
:
string
;
};
roomList
:
{
result
:
{
uuid
:
string
;
name
:
string
;
currentUsers
:
number
;
maxUsers
:
number
;
}[];
};
}
export
interface
ServerOutboundMessageMap
{
chat
:
{
message
:
string
;
};
}
common/tsconfig.json
0 → 100644
View file @
ce81def
{
"compilerOptions"
:
{
"target"
:
"es5"
,
"module"
:
"commonjs"
,
"declaration"
:
true
,
"declarationMap"
:
true
,
"rootDir"
:
"."
,
"composite"
:
true
,
"strict"
:
true
,
"esModuleInterop"
:
true
}
}
server/tsconfig.json
View file @
ce81def
...
...
@@ -4,8 +4,8 @@
/*
Basic
Options
*/
//
"incremental"
:
true
,
/*
Enable
incremental
compilation
*/
"target"
:
"es5"
,
/*
Specify
ECMAScript
target
version
:
'ES
3
'
(default)
,
'ES
5
'
,
'ES
2015
'
,
'ES
2016
'
,
'ES
2017
'
,
'ES
2018
'
,
'ES
2019
'
,
'ES
2020
'
,
or
'ESNEXT'.
*/
"module"
:
"commonjs"
,
/*
Specify
module
code
generation
:
'none'
,
'commonjs'
,
'amd'
,
'system'
,
'umd'
,
'es
2015
'
,
'es
2020
'
,
or
'ESNext'.
*/
"target"
:
"es5"
/*
Specify
ECMAScript
target
version
:
'ES
3
'
(default)
,
'ES
5
'
,
'ES
2015
'
,
'ES
2016
'
,
'ES
2017
'
,
'ES
2018
'
,
'ES
2019
'
,
'ES
2020
'
,
or
'ESNEXT'.
*/
,
"module"
:
"commonjs"
/*
Specify
module
code
generation
:
'none'
,
'commonjs'
,
'amd'
,
'system'
,
'umd'
,
'es
2015
'
,
'es
2020
'
,
or
'ESNext'.
*/
,
//
"lib"
:
[],
/*
Specify
library
files
to
be
included
in
the
compilation.
*/
//
"allowJs"
:
true
,
/*
Allow
javascript
files
to
be
compiled.
*/
//
"checkJs"
:
true
,
/*
Report
errors
in
.js
files.
*/
...
...
@@ -25,7 +25,7 @@
//
"isolatedModules"
:
true
,
/*
Transpile
each
file
as
a
separate
module
(similar
to
'ts.transpileModule').
*/
/*
Strict
Type-Checking
Options
*/
"strict"
:
true
,
/*
Enable
all
strict
type-checking
options.
*/
"strict"
:
true
/*
Enable
all
strict
type-checking
options.
*/
,
//
"noImplicitAny"
:
true
,
/*
Raise
error
on
expressions
and
declarations
with
an
implied
'any'
type.
*/
//
"strictNullChecks"
:
true
,
/*
Enable
strict
null
checks.
*/
//
"strictFunctionTypes"
:
true
,
/*
Enable
strict
checking
of
function
types.
*/
...
...
@@ -50,7 +50,7 @@
//
"typeRoots"
:
[],
/*
List
of
folders
to
include
type
definitions
from.
*/
//
"types"
:
[],
/*
Type
declaration
files
to
be
included
in
compilation.
*/
//
"allowSyntheticDefaultImports"
:
true
,
/*
Allow
default
imports
from
modules
with
no
default
export.
This
does
not
affect
code
emit
,
just
typechecking.
*/
"esModuleInterop"
:
true
,
/*
Enables
emit
interoperability
between
CommonJS
and
ES
Modules
via
creation
of
namespace
objects
for
all
imports.
Implies
'allowSyntheticDefaultImports'.
*/
"esModuleInterop"
:
true
/*
Enables
emit
interoperability
between
CommonJS
and
ES
Modules
via
creation
of
namespace
objects
for
all
imports.
Implies
'allowSyntheticDefaultImports'.
*/
,
//
"preserveSymlinks"
:
true
,
/*
Do
not
resolve
the
real
path
of
symlinks.
*/
//
"allowUmdGlobalAccess"
:
true
,
/*
Allow
accessing
UMD
globals
from
modules.
*/
...
...
@@ -65,7 +65,12 @@
//
"emitDecoratorMetadata"
:
true
,
/*
Enables
experimental
support
for
emitting
type
metadata
for
decorators.
*/
/*
Advanced
Options
*/
"skipLibCheck"
:
true
,
/*
Skip
type
checking
of
declaration
files.
*/
"forceConsistentCasingInFileNames"
:
true
/*
Disallow
inconsistently-cased
references
to
the
same
file.
*/
}
"skipLibCheck"
:
true
/*
Skip
type
checking
of
declaration
files.
*/
,
"forceConsistentCasingInFileNames"
:
true
/*
Disallow
inconsistently-cased
references
to
the
same
file.
*/
},
"references"
:
[
{
"path"
:
"../common"
}
]
}
...
...
web/tsconfig.json
View file @
ce81def
{
"compilerOptions"
:
{
"target"
:
"es5"
,
"lib"
:
[
"dom"
,
"dom.iterable"
,
"esnext"
],
"lib"
:
[
"dom"
,
"dom.iterable"
,
"esnext"
],
"allowJs"
:
true
,
"skipLibCheck"
:
true
,
"esModuleInterop"
:
true
,
...
...
@@ -20,7 +16,10 @@
"noEmit"
:
true
,
"jsx"
:
"react-jsx"
},
"include"
:
[
"src"
"include"
:
[
"src"
],
"references"
:
[
{
"path"
:
"../common"
}
]
}
...
...
Please
register
or
login
to post a comment