参加总类型脚本课程。在那里,你会发现:
克隆此存储库或在 Gitpod 中打开。
# Installs all dependencies
npm install
# Starts the first exercise
npm run exercise 01
# Runs linting and tests on the solution
npm run solution 01
你会注意到该课程被拆分为多个练习。每个练习分为 一个和一个 .
*.problem.ts
*.solution.ts
要进行锻炼:
*.problem.ts
npm run exercise 01
01
该脚本将在练习中运行类型脚本类型检查和测试套件。
exercise
本课程鼓励积极的探索性学习。在视频中,我将解释一个问题,并要求你尝试找到解决方案。要尝试解决方案,你需要:
你会知道你是否成功了,因为测试会通过。
如果成功,或者遇到困难,请取消暂停视频并查看 .你可以看到你的解决方案是否比我更好或更差!
*.solution.ts
你可以运行以对解决方案运行测试和类型检查。
npm run solution 01
在推特上或加入他的不和谐来感谢马特。考虑注册他的总类型脚本课程。
npm run exercise 01
别名:
npm run e 01
运行相应的文件。
*.problem.ts
npm run solution 01
别名:
npm run s 01
运行相应的文件。如果有多个,则仅运行第一个。
*.solution.ts