- CoffeeScript Application Development Cookbook
- Mike Hatfield
- 300字
- 2021-07-23 19:35:51
Configuring your environment and tools
One significant aspect to being a productive CoffeeScript developer is having a proper development environment. This environment typically consists of the following:
- Node.js and the NPM
- CoffeeScript
- Code editor
- Debugger
In this recipe, we will look at installing and configuring the base components and tools necessary to develop CoffeeScript applications.
Getting ready
In this section, we will install the software necessary to develop applications with CoffeeScript.
One of the appealing aspects of developing applications using CoffeeScript is that it is well supported on Mac, Windows, and Linux machines. To get started, you need only a PC and an Internet connection.
How to do it...
CoffeeScript runs on top of Node.js—the event-driven, non-blocking I/O platform built on Chrome's JavaScript runtime. If you do not have Node.js installed, you can download an installation package for your Mac OS X, Linux, and Windows machines from the start page of the Node.js website (http://nodejs.org/).
To begin, install Node.js using an official prebuilt installer; it will also install the NPM.
Next, we will use NPM to install CoffeeScript. Open a terminal or command window and enter the following command:
npm install -g coffee-script
This will install the necessary files needed to work with CoffeeScript, including the coffee
command that provides an interactive Read Evaluate Print Loop (REPL)—a command to execute CoffeeScript files and a compiler to generate JavaScript.
It is important to use the -g
option when installing CoffeeScript, as this installs the CoffeeScript package as a global NPM module. This will add the necessary commands to our path.
- JavaScript從入門到精通(微視頻精編版)
- CockroachDB權(quán)威指南
- 碼上行動(dòng):零基礎(chǔ)學(xué)會(huì)Python編程(ChatGPT版)
- Java編程指南:基礎(chǔ)知識(shí)、類庫(kù)應(yīng)用及案例設(shè)計(jì)
- Mastering Scientific Computing with R
- Python Network Programming Cookbook(Second Edition)
- Python數(shù)據(jù)分析(第2版)
- ASP.NET 3.5程序設(shè)計(jì)與項(xiàng)目實(shí)踐
- 表哥的Access入門:以Excel視角快速學(xué)習(xí)數(shù)據(jù)庫(kù)開(kāi)發(fā)(第2版)
- ServiceNow:Building Powerful Workflows
- Python從入門到精通
- Android群英傳
- .NET Standard 2.0 Cookbook
- RESTful Web Clients:基于超媒體的可復(fù)用客戶端
- Kotlin語(yǔ)言實(shí)例精解