Skip to content

Commit e47f75a

Browse files
committed
🚩: typeScript 강의 기본 환경 설정
1 parent 0620a7f commit e47f75a

File tree

6 files changed

+270
-0
lines changed

6 files changed

+270
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"use strict";

package-lock.json

Lines changed: 218 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "typescript-lecture",
3+
"version": "0.0.0",
4+
"description": "typescript",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"start": "ts-node src/index.ts",
9+
"build": "tsc --build",
10+
"clean": "tsc --build --clean"
11+
},
12+
"author": "",
13+
"license": "ISC",
14+
"dependencies": {
15+
"typescript": "^5.5.4"
16+
},
17+
"devDependencies": {
18+
"ts-node": "^10.9.2"
19+
}
20+
}

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const add = (a, b) => {
2+
console.log(a, b)
3+
}
4+
5+
add();

tsconfig.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
9+
"allowJs": true,
10+
"skipLibCheck": true,
11+
"allowSyntheticDefaultImports": true,
12+
"strict": true,
13+
"forceConsistentCasingInFileNames": true,
14+
"noFallthroughCasesInSwitch": true,
15+
"module": "commonjs",
16+
"outDir": "dist",
17+
"rootDir": "src",
18+
},
19+
"include": [
20+
"src/**/*"
21+
],
22+
"exclude": [
23+
"node_modules"
24+
]
25+
}

0 commit comments

Comments
 (0)