From 6ae21ae461fcf9ccca40dc856c0142b6fe172a34 Mon Sep 17 00:00:00 2001
From: Jeremy Ashkenas
Date: Thu, 8 May 2014 15:07:42 -0400
Subject: [PATCH 1/3] merged
---
CONTRIBUTING.md | 6 ++---
Cakefile | 29 +++++++++++++++++++-
documentation/index.html.js | 32 +++++++++++-----------
index.html | 54 ++++++++++++++++++-------------------
package.json | 4 +--
5 files changed, 76 insertions(+), 49 deletions(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 6390c68b..5ea4c5f3 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,9 +1,9 @@
## How to contribute to CoffeeScript
-* Before you open a ticket or send a pull request, [search](https://github.com/jashkenas/coffee-script/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one.
+* Before you open a ticket or send a pull request, [search](https://github.com/jashkenas/coffeescript/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one.
-* Before sending a pull request for a feature, be sure to have [tests](https://github.com/jashkenas/coffee-script/tree/master/test).
+* Before sending a pull request for a feature, be sure to have [tests](https://github.com/jashkenas/coffeescript/tree/master/test).
-* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/coffee-script/tree/master/src). If you're just getting started with CoffeeScript, there's a nice [style guide](https://github.com/polarmobile/coffeescript-style-guide).
+* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/coffeescript/tree/master/src). If you're just getting started with CoffeeScript, there's a nice [style guide](https://github.com/polarmobile/coffeescript-style-guide).
* In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release.
\ No newline at end of file
diff --git a/Cakefile b/Cakefile
index 7efec7a8..1ce2fd47 100644
--- a/Cakefile
+++ b/Cakefile
@@ -65,6 +65,33 @@ codeFor = ->
button = if executable then "#{run}
" else ''
"#{cshtml}#{jshtml}#{script}#{load}#{button}
"
+monthNames = [
+ 'January'
+ 'February'
+ 'March'
+ 'April'
+ 'May'
+ 'June'
+ 'July'
+ 'August'
+ 'September'
+ 'October'
+ 'November'
+ 'December'
+]
+
+formatDate = (date) ->
+ date.replace /^(\d\d\d\d)-(\d\d)-(\d\d)$/, (match, $1, $2, $3) ->
+ "#{monthNames[$2 - 1]} #{+$3}, #{$1}"
+
+releaseHeader = (date, version, prevVersion) -> """
+
+
+"""
+
option '-p', '--prefix [DIR]', 'set the installation prefix for `cake install`'
task 'install', 'install CoffeeScript into /usr/local (or --prefix)', (options) ->
@@ -160,7 +187,7 @@ task 'doc:source', 'rebuild the internal documentation', ->
task 'doc:underscore', 'rebuild the Underscore.coffee documentation page', ->
- exec 'docco examples/underscore.coffee && cp -rf docs documentation && rm -r docs', (err) ->
+ exec 'node_modules/.bin/docco examples/underscore.coffee && cp -rf docs documentation && rm -r docs', (err) ->
throw err if err
task 'bench', 'quick benchmark of compilation time', ->
diff --git a/documentation/index.html.js b/documentation/index.html.js
index b23ebc3c..105eb36b 100644
--- a/documentation/index.html.js
+++ b/documentation/index.html.js
@@ -111,7 +111,7 @@
Latest Version:
- 1.7.1
+ 1.7.1
@@ -158,14 +158,14 @@ npm install -g coffee-script
If you'd prefer to install the latest master version of CoffeeScript, you
can clone the CoffeeScript
- source repository
+ source repository
from GitHub, or download
- the source directly.
- To install the lastest master CoffeeScript compiler with npm:
+ the source directly.
+ To install the latest master CoffeeScript compiler with npm:
-npm install -g http://github.com/jashkenas/coffee-script/tarball/master
+npm install -g jashkenas/coffeescript
Or, if you want to install to /usr/local, and don't want to use
@@ -351,7 +351,7 @@ Expressions
Just for kicks, a little bit of the compiler is currently implemented in this fashion:
See it
as a document,
- raw,
+ raw,
and properly highlighted in a text editor.
@@ -1125,7 +1125,7 @@ Expressions
-
- Source Code
+ Source Code
Use bin/coffee to test your changes,
bin/cake test to run the test suite,
bin/cake build to rebuild the CoffeeScript compiler, and
@@ -1138,7 +1138,7 @@ Expressions
they pass, there's a good chance you've made a successful change.
-
- CoffeeScript Issues
+ CoffeeScript Issues
Bug reports, feature proposals, and ideas for changes to the language belong here.
-
@@ -1146,15 +1146,15 @@ Expressions
If you'd like to ask a question, the mailing list is a good place to get help.
-
- The CoffeeScript Wiki
+ The CoffeeScript Wiki
If you've ever learned a neat CoffeeScript tip or trick, or ran into a gotcha — share it on the wiki.
The wiki also serves as a directory of handy
- text editor extensions,
- web framework plugins,
- and general CoffeeScript build tools.
+ text editor extensions,
+ web framework plugins,
+ and general CoffeeScript build tools.
-
- The FAQ
+ The FAQ
Perhaps your CoffeeScript-related question has been asked before. Check the FAQ first.
-
@@ -1165,7 +1165,7 @@ Expressions
point for converting simple scripts.
-
- High-Rez Logo
+ High-Rez Logo
The CoffeeScript logo is available in Illustrator, EPS and PSD formats, for use
in presentations.
@@ -1388,7 +1388,7 @@ Expressions
-
Due to the new semantics of JavaScript's strict mode, CoffeeScript no
longer guarantees that constructor functions have names in all runtimes.
- See #2052
+ See #2052
for discussion.
-
@@ -1421,7 +1421,7 @@ Expressions
a function definition, deleting naked variables, setting the value of
eval or arguments, and more.
See a full discussion at
- #1547.
+ #1547.
-
The REPL now has a handy new multi-line mode for entering large
diff --git a/index.html b/index.html
index 9db08dbb..9c85c77a 100644
--- a/index.html
+++ b/index.html
@@ -111,7 +111,7 @@
Latest Version:
- 1.7.1
+ 1.7.1
@@ -274,14 +274,14 @@ npm install -g coffee-script
If you'd prefer to install the latest master version of CoffeeScript, you
can clone the CoffeeScript
- source repository
+ source repository
from GitHub, or download
- the source directly.
+ the source directly.
To install the lastest master CoffeeScript compiler with npm:
-npm install -g http://github.com/jashkenas/coffee-script/tarball/master
+npm install -g http://github.com/jashkenas/coffeescript/tarball/master
Or, if you want to install to /usr/local, and don't want to use
@@ -467,7 +467,7 @@ Expressions
Just for kicks, a little bit of the compiler is currently implemented in this fashion:
See it
as a document,
- raw,
+ raw,
and properly highlighted in a text editor.
@@ -2382,7 +2382,7 @@ task('build:parser', 'rebuild t
-
- Source Code
+ Source Code
Use bin/coffee to test your changes,
bin/cake test to run the test suite,
bin/cake build to rebuild the CoffeeScript compiler, and
@@ -2395,7 +2395,7 @@ task('build:parser', 'rebuild t
they pass, there's a good chance you've made a successful change.
-
- CoffeeScript Issues
+ CoffeeScript Issues
Bug reports, feature proposals, and ideas for changes to the language belong here.
-
@@ -2403,15 +2403,15 @@ task('build:parser', 'rebuild t
If you'd like to ask a question, the mailing list is a good place to get help.
-
- The CoffeeScript Wiki
+ The CoffeeScript Wiki
If you've ever learned a neat CoffeeScript tip or trick, or ran into a gotcha — share it on the wiki.
The wiki also serves as a directory of handy
- text editor extensions,
- web framework plugins,
- and general CoffeeScript build tools.
+ text editor extensions,
+ web framework plugins,
+ and general CoffeeScript build tools.
-
- The FAQ
+ The FAQ
Perhaps your CoffeeScript-related question has been asked before. Check the FAQ first.
-
@@ -2422,7 +2422,7 @@ task('build:parser', 'rebuild t
point for converting simple scripts.
-
- High-Rez Logo
+ High-Rez Logo
The CoffeeScript logo is available in Illustrator, EPS and PSD formats, for use
in presentations.
@@ -2450,7 +2450,7 @@ task('build:parser', 'rebuild t
@@ -2461,7 +2461,7 @@ task('build:parser', 'rebuild t
@@ -2513,7 +2513,7 @@ task('build:parser', 'rebuild t
@@ -2542,7 +2542,7 @@ task('build:parser', 'rebuild t
@@ -2571,7 +2571,7 @@ task('build:parser', 'rebuild t
@@ -2600,7 +2600,7 @@ task('build:parser', 'rebuild t
@@ -2628,7 +2628,7 @@ task('build:parser', 'rebuild t
@@ -2649,14 +2649,14 @@ task('build:parser', 'rebuild t
-
Due to the new semantics of JavaScript's strict mode, CoffeeScript no
longer guarantees that constructor functions have names in all runtimes.
- See #2052
+ See #2052
for discussion.
-
@@ -2678,7 +2678,7 @@ task('build:parser', 'rebuild t
@@ -2689,7 +2689,7 @@ task('build:parser', 'rebuild t
a function definition, deleting naked variables, setting the value of
eval or arguments, and more.
See a full discussion at
- #1547.
+ #1547.
-
The REPL now has a handy new multi-line mode for entering large
@@ -2728,7 +2728,7 @@ task('build:parser', 'rebuild t
@@ -2755,7 +2755,7 @@ task('build:parser', 'rebuild t
@@ -2798,7 +2798,7 @@ task('build:parser', 'rebuild t
Fixes for block comment formatting, ?= compilation, implicit calls
diff --git a/package.json b/package.json
index 18c9c89a..c5603ea4 100644
--- a/package.json
+++ b/package.json
@@ -25,10 +25,10 @@
"test": "node ./bin/cake test"
},
"homepage": "http://coffeescript.org",
- "bugs": "https://github.com/jashkenas/coffee-script/issues",
+ "bugs": "https://github.com/jashkenas/coffeescript/issues",
"repository": {
"type": "git",
- "url": "git://github.com/jashkenas/coffee-script.git"
+ "url": "git://github.com/jashkenas/coffeescript.git"
},
"devDependencies": {
"uglify-js": "~2.2",
From 1157b32413e4fd0f1dcf1d8df2905149c3cb65db Mon Sep 17 00:00:00 2001
From: Nami-Doc
Date: Thu, 26 Jun 2014 17:08:31 +0200
Subject: [PATCH 2/3] Update link to "CoffeeScript Ristretto", fixes #3489
---
documentation/index.html.js | 2 +-
index.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/documentation/index.html.js b/documentation/index.html.js
index 105eb36b..6f23d5c0 100644
--- a/documentation/index.html.js
+++ b/documentation/index.html.js
@@ -1032,7 +1032,7 @@ Expressions
size (Rails, Node).
-
- CoffeeScript Ristretto
+ CoffeeScript Ristretto
is a deep dive into CoffeeScript's semantics from simple functions up through
closures, higher-order functions, objects, classes, combinators, and decorators.
By Reg Braithwaite.
diff --git a/index.html b/index.html
index 9c85c77a..4be4185a 100644
--- a/index.html
+++ b/index.html
@@ -2289,7 +2289,7 @@ task('build:parser', 'rebuild t
size (Rails, Node).
-
- CoffeeScript Ristretto
+ CoffeeScript Ristretto
is a deep dive into CoffeeScript's semantics from simple functions up through
closures, higher-order functions, objects, classes, combinators, and decorators.
By Reg Braithwaite.
From e8c96de269fe629b17f7f530a0baaf93eef152fc Mon Sep 17 00:00:00 2001
From: Nami-Doc
Date: Wed, 23 Jul 2014 22:17:00 +0200
Subject: [PATCH 3/3] Fix the "Examples" link on coffeescript.org
It now points to the "Trending repositories" of the month.
---
documentation/index.html.js | 2 +-
index.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/documentation/index.html.js b/documentation/index.html.js
index 6f23d5c0..63bb6926 100644
--- a/documentation/index.html.js
+++ b/documentation/index.html.js
@@ -1082,7 +1082,7 @@ Expressions
- The best list of
+ The best list of
open-source CoffeeScript examples can be found on GitHub. But just
to throw out few more:
diff --git a/index.html b/index.html
index 4be4185a..99845ae8 100644
--- a/index.html
+++ b/index.html
@@ -2339,7 +2339,7 @@ task('build:parser', 'rebuild t
- The best list of
+ The best list of
open-source CoffeeScript examples can be found on GitHub. But just
to throw out few more: