Skip to content

Instantly share code, notes, and snippets.

@wmakeev
Last active January 13, 2023 10:54
Show Gist options
  • Save wmakeev/b6c338ee2cfc1ca78ffc3b70d94489f2 to your computer and use it in GitHub Desktop.
Save wmakeev/b6c338ee2cfc1ca78ffc3b70d94489f2 to your computer and use it in GitHub Desktop.
[02.1 TypeScript template] #template #typescript
npm i -D typescript
{
// 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": "Launch TS",
"skipFiles": ["<node_internals>/**"],
"program": "${file}",
"envFile": "${workspaceFolder}/.env",
"runtimeArgs": [],
"preLaunchTask": "npm: compile:dev",
"outFiles": ["${workspaceFolder}/build/**/*.js"],
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": "std"
}
]
}
{
"typescript.tsdk": "node_modules/typescript/lib",
"files.exclude": {
"node_modules": true
}
}
{
"scripts": {
"cleanup": "rm -rf build/",
"compile:dev": "tsc",
"compile": "tsc --build tsconfig.prod.json"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment