Last active
January 13, 2023 10:54
-
-
Save wmakeev/b6c338ee2cfc1ca78ffc3b70d94489f2 to your computer and use it in GitHub Desktop.
[02.1 TypeScript template] #template #typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i -D typescript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"typescript.tsdk": "node_modules/typescript/lib", | |
"files.exclude": { | |
"node_modules": true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build | |
/build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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