Skip to content

Commit

Permalink
Merge pull request #14 from SrTobi-Forks/local-dev
Browse files Browse the repository at this point in the history
Use tsc for local development instead of webpack
  • Loading branch information
hildjj committed Apr 29, 2021
2 parents ca42df7 + 39c0ad6 commit 8cbdcfc
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
"outFiles": [
"${workspaceRoot}/out/**/*.js"
],
"preLaunchTask": {
"type": "npm",
"script": "watch"
}
"preLaunchTask": "watch"
},
{
"type": "node",
Expand All @@ -25,7 +22,7 @@
"port": 6009,
"restart": true,
"outFiles": [
"${workspaceRoot}/server/out/**/*.js"
"${workspaceRoot}/out/**/*.js"
]
}
],
Expand Down
3 changes: 2 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
]
},
{
"label": "watch",
"type": "npm",
"script": "watch",
"script": "watch-ts",
"isBackground": true,
"group": {
"kind": "build",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"webpack:dev": "npm run clean && webpack --mode none",
"precompile": "npm run lint",
"compile": "npm run webpack",
"watch": "webpack watch --mode development"
"watch": "webpack watch --mode development",
"watch-ts": "tsc -b -w"
},
"devDependencies": {
"@peggyjs/eslint-config": "0.0.1",
Expand Down
19 changes: 19 additions & 0 deletions server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"composite": true,
"module": "commonjs",
"target": "es2020",
"lib": [
"ES2020"
],
"sourceMap": true,

"noImplicitAny": true,

"outDir": "../out",
"rootDir": "./src"
},
"include": [
"src",
]
}
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@
"sourceMap": true,
"incremental": false,

"noImplicitAny": true
"noImplicitAny": true,

"outDir": "out",
},
"include": [
"src"
],
"references": [
{
"path": "./server",
}
]
}

0 comments on commit 8cbdcfc

Please sign in to comment.