diff --git a/pages/common/coffee.md b/pages/common/coffee.md new file mode 100644 index 0000000000..08d51e02ea --- /dev/null +++ b/pages/common/coffee.md @@ -0,0 +1,23 @@ +# coffee + +> Executes CoffeeScript scripts or compiles them into JavaScript. + +- Run a script: + +`coffee {{path/to/file.coffee}}` + +- Compile to JavaScript and save to a file with the same name: + +`coffee --compile {{path/to/file.coffee}}` + +- Compile to JavaScript and save to a given output file: + +`coffee --compile {{path/to/file.coffee}} --output {{path/to/file.js}}` + +- Run interactive REPL: + +`coffee --interactive` + +- Watch script for changes and re-run script: + +`coffee --watch {{path/to/file.coffee}}`