1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
Unfancy JavaScript
Find a file
AKFish 8407dd885a [CS2] Module should be require-able in non-Node environments like Webpack and Browserify (#4546)
* Add webpack support

* Move Node.js-only code from src/coffee-script.coffee to src/index.coffee
* Use lib/coffee-script/index.js as npm package's "main" script
* Export CoffeeScript from src/browser.coffee
* Set package.json's "browser" field to lib/coffee-script/browser.js (used by webpack as entry point)
* Use lib/coffee-script/browser.js as bower package's "main" script

* Use NOP moduleMain when generating parser with Jison

* Remove legacy debug code from browser.coffee

* Improve comments, style

* Fix path

* Remove stub that was only to avoid breaking browser tests; compensate for the lack of stub when running the browser tests in Node

* Update output

* Add test:webpack task to Cakefile

* Update output files

* Run browser tests against webpack build

* Fix newline at end of file

* Export webpack test bundle as CommonJS module

* Remove build:webpack task

* Save webpack build to tmpdir; suppress build output unless it fails
2017-05-13 21:20:36 -07:00
bin [CS2] Un-prefer global (#4543) 2017-05-08 23:35:11 -07:00
docs [CS2] Docs updates (#4536) 2017-05-05 19:44:11 -07:00
documentation [CS2] Docs updates (#4536) 2017-05-05 19:44:11 -07:00
lib/coffeescript [CS2] Module should be require-able in non-Node environments like Webpack and Browserify (#4546) 2017-05-13 21:20:36 -07:00
src [CS2] Module should be require-able in non-Node environments like Webpack and Browserify (#4546) 2017-05-13 21:20:36 -07:00
test Merge branch 'master' of github.com:jashkenas/coffeescript into 2 2017-05-02 23:03:37 -07:00
.gitignore Fix stack trace (#4428) 2017-01-22 13:20:18 -08:00
.nojekyll Move v1 documentation under docs/v1, with docs/index.html symlinking to docs/v1/index.html (with .nojekyll file to hopefully make the symlink work) 2016-11-15 20:54:30 -08:00
bower.json [CS2] Module should be require-able in non-Node environments like Webpack and Browserify (#4546) 2017-05-13 21:20:36 -07:00
Cakefile [CS2] Module should be require-able in non-Node environments like Webpack and Browserify (#4546) 2017-05-13 21:20:36 -07:00
CONTRIBUTING.md Remove hyphen in coffee-script 2017-02-12 17:00:05 -08:00
LICENSE Update copyright range to 2017 2017-01-04 00:34:28 -08:00
package.json [CS2] Module should be require-able in non-Node environments like Webpack and Browserify (#4546) 2017-05-13 21:20:36 -07:00
README.md [CS2] Fix links in v2 docs (#4506) 2017-04-17 19:43:22 -07:00
register.js Remove hyphen in coffee-script 2017-02-12 17:00:05 -08:00
repl.js Remove hyphen in coffee-script 2017-02-12 17:00:05 -08:00

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

CoffeeScript is a little language that compiles into JavaScript.

Installation

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

npm install --global coffeescript

Leave off the --global if you dont wish to install globally.

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: https://github.com/jashkenas/coffeescript/issues

If youd 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: https://github.com/jashkenas/coffeescript/contributors