Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Command line 使用NodeJS在Windows上编译CoffeeScript_Command Line_Coffeescript - Fatal编程技术网

Command line 使用NodeJS在Windows上编译CoffeeScript

Command line 使用NodeJS在Windows上编译CoffeeScript,command-line,coffeescript,Command Line,Coffeescript,我已经安装了nodejs,使用npm安装了coffee,并注册了环境变量,现在我准备第一次将我的CoffeeScript编译成JavaScript 我正在c中运行以下命令:\myOffeeScriptProject\ coffee --compile --output js/ 接下来发生的事情是,我得到了交互式窗口,而“js”文件夹中没有任何内容 我希望所有的.coffee文件都能作为.js文件编译到“js”文件夹中。您没有告诉它要编译哪些文件 Usage: coffee [options]

我已经安装了nodejs,使用npm安装了coffee,并注册了环境变量,现在我准备第一次将我的CoffeeScript编译成JavaScript

我正在
c中运行以下命令:\myOffeeScriptProject\

coffee --compile --output js/
接下来发生的事情是,我得到了交互式窗口,而“js”文件夹中没有任何内容


我希望所有的
.coffee
文件都能作为
.js
文件编译到“js”文件夹中。

您没有告诉它要编译哪些文件

Usage: coffee [options] path/to/script.coffee [args]
在当前目录的末尾附加一个句点

coffee --compile --output js/ .
不过,如果你把它重新整理一下,它会更容易阅读

coffee --output js/ --compile .
中的所有咖啡文件编译为
js/

一种常见的使用模式是有一个
src
文件夹

coffee --output js/ --compile src/

您没有告诉它要编译哪些文件

Usage: coffee [options] path/to/script.coffee [args]
在当前目录的末尾附加一个句点

coffee --compile --output js/ .
不过,如果你把它重新整理一下,它会更容易阅读

coffee --output js/ --compile .
中的所有咖啡文件编译为
js/

一种常见的使用模式是有一个
src
文件夹

coffee --output js/ --compile src/
其中“output”是空白文件夹,“src”文件夹包含咖啡文件。 在src级别执行该命令

其中“output”是空白文件夹,“src”文件夹包含咖啡文件。 在src级别执行该命令