- 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.
- 大學(xué)計算機(jī)基礎(chǔ)(第二版)
- Monkey Game Development:Beginner's Guide
- MySQL數(shù)據(jù)庫應(yīng)用與管理 第2版
- 跟小海龜學(xué)Python
- VSTO開發(fā)入門教程
- 編譯系統(tǒng)透視:圖解編譯原理
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- Advanced Express Web Application Development
- Managing Microsoft Hybrid Clouds
- Practical Predictive Analytics
- Spark技術(shù)內(nèi)幕:深入解析Spark內(nèi)核架構(gòu)設(shè)計與實現(xiàn)原理
- 第五空間戰(zhàn)略:大國間的網(wǎng)絡(luò)博弈
- 深入理解Zabbix監(jiān)控系統(tǒng)
- 像程序員一樣使用MySQL
- Learning Scrapy