Skip to content

Commit

Permalink
add typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
maestrow committed May 12, 2021
1 parent 870663d commit b6adce0
Show file tree
Hide file tree
Showing 9 changed files with 4,107 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
33 changes: 33 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug TypeScript in Node.js",
"preLaunchTask": "ts: build all",
"program": "${file}",
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
},
{
"type": "node",
"request": "launch",
"name": "Debug TypeScript with webpack",
"sourceMaps": true,
"preLaunchTask": "webpack",
"program": "${file}",
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
},
]
}
45 changes: 45 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "ts: build all",
"type": "typescript",
"tsconfig": "tsconfig.json",
"problemMatcher": [
"$tsc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "ts: build current",
"type": "shell",
"command": "./node_modules/.bin/tsc",
"args": [
"${file}"
],
"problemMatcher": [
"$tsc"
]
},
{
"label": "webpack",
"options": {
"cwd": "${workspaceFolder}/src"
},
"type": "shell",
"command": "npm",
"args": [
"run",
"build",
"--",
"${fileBasename}"
],
"problemMatcher": []
}
]
}
Loading

0 comments on commit b6adce0

Please sign in to comment.