markdown TypeScript提示与技巧

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown TypeScript提示与技巧相关的知识,希望对你有一定的参考价值。

# TypeScript Tips & Tricks

<br>

### How to setup a workspace for your TypeScript project?

```powershell
# Go to the root of you project
cd /d/path/to/your/project/directory/

# Put the project under the control of npm
npm init

# Install the "lite-server" package locally
npm install lite-server --save-dev

# Put the project under the control of tsc
tsc --init

# Start the "lite-server"
npm start
# Note that you should add "start" to the "package.json" file like this befor running the "npm start" command
"scripts": {
    "start": "lite-server"
}

# Now, when you want to compile all .ts files, just execute this command
tsc
```

[More inof about Setting Up a Workspace](https://www.udemy.com/understanding-typescript/learn/v4/t/lecture/5704446?start=0)

以上是关于markdown TypeScript提示与技巧的主要内容,如果未能解决你的问题,请参考以下文章

markdown Laravel提示和技巧

markdown JS提示和技巧

markdown Docker提示和技巧 - 有用的命令

markdown 确认提示和技巧

markdown GDB:提示和技巧

markdown Bootstrap工具提示技巧