mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 22:15:42 +02:00
coffee: add page (#2227)
This commit is contained in:
parent
61ed846787
commit
1d7ce56d01
1 changed files with 23 additions and 0 deletions
23
pages/common/coffee.md
Normal file
23
pages/common/coffee.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue