Unfancy JavaScript
Go to file
geebo 496fd5d3d3 Add Implicit Async Functions (#3757)
* changed jison acceptable versions

* added await support

* wrong function bug fix

* added tests for async/await

* invalid to have await, yield(from) in same function

* changed error handling and tests

* bug fix

* made error handling test more rigorous

* consolidated harmony test files

* added async constructor support and tests

* removed .orig files

* Fixed browser testing issue

* Minor cleanup

* Async test-suite and Cake support, simplified/removed funky tests

* Skip async/await tests when not supported in runtime

* cleanup

* Replaced polyfill with native JS async/await

* Oops

* Make 'async' reserved word

* Remove all async polyfills

* fix merge conflict

* make async testing opt-in

* restore test, remove confusing polyfill language

* Revert changes to test runners

* Only run async tests where async/await is supported (Node 7+ with --harmony, for now)

* remove 'async' from JS reserved words

* The async tests should use their own special async-capable version of `global.test`, which is only loaded for the async tests and only loaded by async-capable environments

* Reverting rename of `async`, it’s not a reserved word so there’s no longer a need for this change

* async test refactoring and additions

* oops

* sync

* better error reporting for `await`

* more stuff geoffrey wants

* fixed litcoffee tests

* change test title
2016-11-02 08:51:26 -07:00
bin Moved src/*.coffee under src/coffee-script/ so that lib can be added to $NODE_PATH and only expose the top-level coffee-script namespace. Fixes #1246 2011-07-05 21:58:04 +10:00
documentation CoffeeScript 1.11.1 2016-10-01 20:58:53 +02:00
examples Ensure that all source files end with a single `\n` 2015-09-03 19:20:12 +02:00
extras Add Implicit Async Functions (#3757) 2016-11-02 08:51:26 -07:00
lib/coffee-script Add Implicit Async Functions (#3757) 2016-11-02 08:51:26 -07:00
src Add Implicit Async Functions (#3757) 2016-11-02 08:51:26 -07:00
test Add Implicit Async Functions (#3757) 2016-11-02 08:51:26 -07:00
.gitignore ignore litcoffee files 2012-09-25 17:50:04 -05:00
CNAME Ensure that all source files end with a single `\n` 2015-09-03 19:20:12 +02:00
CONTRIBUTING.md Ensure that all source files end with a single `\n` 2015-09-03 19:20:12 +02:00
Cakefile Add Implicit Async Functions (#3757) 2016-11-02 08:51:26 -07:00
LICENSE Fixed copyright range to be updated to 2015 2015-02-08 11:28:51 -08:00
README.md Add link of changelog 2015-02-21 13:59:35 -05:00
bower.json Bump version in other files (but not documentation) 2016-10-22 11:50:44 -07:00
index.html CoffeeScript 1.11.1 2016-10-01 20:58:53 +02:00
package.json Fix tabbed Literate CoffeeScript (#4345) 2016-10-23 08:37:51 -07:00
register.js fix auto and manual require.extensions registration; ref #3141 2013-12-08 14:19:10 -06:00
repl.js Export the CoffeeScript REPL. 2014-04-18 08:26:51 -05:00

README.md

        {
     }   }   {
    {   {  }  }
     }   }{  {
    {  }{  }  }                    _____       __  __
   { }{ }{  { }                   / ____|     / _|/ _|
 .- { { }  { }} -.               | |     ___ | |_| |_ ___  ___
(  { } { } { } }  )              | |    / _ \|  _|  _/ _ \/ _ \
|`-..________ ..-'|              | |___| (_) | | | ||  __/  __/
|                 |               \_____\___/|_| |_| \___|\___|
|                 ;--.
|                (__  \            _____           _       _
|                 | )  )          / ____|         (_)     | |
|                 |/  /          | (___   ___ _ __ _ _ __ | |_
|                 (  /            \___ \ / __| '__| | '_ \| __|
|                 |/              ____) | (__| |  | | |_) | |_
|                 |              |_____/ \___|_|  |_| .__/ \__|
 `-.._________..-'                                  | |
                                                    |_|

CoffeeScript is a little language that compiles into JavaScript.

Installation

If you have the node package manager, npm, installed:

npm install -g coffee-script

Leave off the -g if you don't wish to install globally. If you don't wish to use npm:

git clone https://github.com/jashkenas/coffeescript.git
sudo coffeescript/bin/cake install

Getting Started

Execute a script:

coffee /path/to/script.coffee

Compile a script:

coffee -c /path/to/script.coffee

For documentation, usage, and examples, see: http://coffeescript.org/

To suggest a feature or report a bug: http://github.com/jashkenas/coffeescript/issues

If you'd like to chat, drop by #coffeescript on Freenode IRC.

The source repository: https://github.com/jashkenas/coffeescript.git

Changelog: http://coffeescript.org/#changelog

Our lovely and talented contributors are listed here: http://github.com/jashkenas/coffeescript/contributors