- Learn Type:Driven Development
- Yawar Amin Kamon Ayeva
- 217字
- 2021-07-02 14:41:25
Workflow
To get the most from this chapter, we will set up a comfortable edit-compile workflow. We recommend placing two windows side-by-side in your editor. VSCode supports this functionality with the View | Split Editor command. On one side, load a Reason source file; on the other side, load the JavaScript output file (once it is initially compiled). Then in a terminal, run the following command:
bsb -w
The preceding command starts a build in watch mode, which automatically recompiles any parts of a project that are affected whenever you change any source code. In fact, watch mode is smart enough to also remove an outdated JavaScript output file whenever its corresponding Reason source file is deleted. The editor will also auto-reload the compiled JavaScript file whenever you save a Reason source file.
In VSCode, you can also open a terminal session directly below the files using the View | Integrated Terminal command and run bsb -w to get a single integrated view of your entire workflow. This way, when there are compile errors, you won't have to switch windows to see them. Of course, you may prefer to work with two monitors and keep the terminal and compiler running on another screen so you don't have to switch windows—that's feasible, too.
- PHP動態(tài)網(wǎng)站程序設計
- Java EE 6 企業(yè)級應用開發(fā)教程
- Web全棧工程師的自我修養(yǎng)
- 精通網(wǎng)絡視頻核心開發(fā)技術
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- INSTANT Django 1.5 Application Development Starter
- PLC應用技術(三菱FX2N系列)
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- 深入理解Java虛擬機:JVM高級特性與最佳實踐
- Offer來了:Java面試核心知識點精講(框架篇)
- MongoDB Cookbook
- Android初級應用開發(fā)
- 深入大型數(shù)據(jù)集:并行與分布化Python代碼
- PhoneGap 3.x Mobile Application Development Hotshot
- 區(qū)塊鏈原理、架構與應用(第2版)