Add ._js & ._coffee extensions for Streamline.js. #151

Merged
merged 2 commits into from May 8, 2012

Projects

None yet
@aseemk
Contributor
aseemk commented Apr 3, 2012

Streamline.js by Bruno Jouhier (@Sage) is a library/tool that lets you write
synchronous-looking JavaScript/CoffeeScript, and have it compile to Node-style
asynchronous JavasScript/CoffeeScript. (It's amazing and super elegant.)

https://github.com/Sage/streamlinejs

From the start, Streamline was designed to be exactly JavaScript/CoffeeScript,
so that it works with existing editors and tools. No new keywords or syntax --
it simply reserves _ as a function parameter name.

Streamline files have thus kept .js and .coffee as extensions, so that no
changes need to be made to tools; Streamline has just used the convention of
ending file basenames with _, like foo_.js or foo_.coffee.

Unfortunately, to get the most optimal Node.js integration, with on-the-fly
compilation (like CoffeeScript), files now need to have their own extension.
So Bruno has decided to make ._js and ._coffee the extensions of choice.

The good news is that the language is still exactly JavaScript/CoffeeScript;
it's only the extension that's changed. It's simple to add these extensions
into our editors, but I'm wondering if we can add this to GitHub too. =)

This change is super simple and shouldn't affect any other language, so I hope
you guys are open to it. Thanks for your consideration!

@aseemk aseemk Add ._js & ._coffee extensions for Streamline.js.
Streamline.js by Bruno Jouhier (@Sage) is a library/tool that lets you write
synchronous-looking JavaScript/CoffeeScript, and have it compile to Node-style
asynchronous JavasScript/CoffeeScript. (It's amazing and super elegant.)

https://github.com/Sage/streamlinejs

From the start, Streamline was designed to be exactly JavaScript/CoffeeScript,
so that it works with existing editors and tools. No new keywords or syntax --
it simply reserves `_` as a function parameter name.

Streamline files have thus kept `.js` and `.coffee` as extensions, so that no
changes need to be made to tools; Streamline has just used the convention of
ending file basenames with `_`, like `foo_.js` or `foo_.coffee`.

Unfortunately, to get the most optimal Node.js integration, with on-the-fly
compilation (like CoffeeScript), files now need to have their own extension.
So Bruno has decided to make `._js` and `._coffee` the extensions of choice.

The good news is that the language is still exactly JavaScript/CoffeeScript;
it's only the extension that's changed. It's simple to add these extensions
into our editors, but I'm wondering if we can add this to GitHub too. =)

This change is super simple and shouldn't affect any other language, so I hope
you guys are open to it. Thanks for your consideration!
54e81dd
@jeremyis
jeremyis commented Apr 3, 2012

+1 - Love streamline and github. Please add support!

@aseemk
Contributor
aseemk commented Apr 3, 2012

Oops, turns out that Bruno's username is @bjouhier. (@Sage is where he works, and technically the owner of Streamline.js.)

@bjouhier
bjouhier commented Apr 3, 2012

+1. And, in passing, kudos to the github team for such a great collaboration tool.

@jadranpro

+1

@tchambard

+1. This is a very powerful API. It makes life easy for every asynchronous calls in Node.js

@nitescuc
nitescuc commented Apr 3, 2012

+1, Excellent idea, please, please

@aseemk aseemk Regression fix: ensure .coffee is primary ext.
(The primary extension by default is the first extension, but the extensions
need to be in alphabetical order, and _coffee comes before coffee.)
17adccc
@eboyard
eboyard commented Apr 4, 2012

+1, very good idea

@axkibe
axkibe commented Apr 4, 2012

+1 easy to do, see nothing bad coming out of it -> win

@evanworley

+1

@anodos
anodos commented Apr 5, 2012

+1 :)

@bigeasy
bigeasy commented Apr 6, 2012

+1 Use Streamline in a number of GitHub hosted projects. Becoming my default for new projects. Streamline is becoming a language in its own right. The new file extension mechanism is a real win. Please pull this request in.

@aseemk
Contributor
aseemk commented Apr 9, 2012

pwease can i haz one

@jzimmek
jzimmek commented Apr 9, 2012

+1

@aseemk
Contributor
aseemk commented Apr 22, 2012

Any word, @github folks? We sincerely appreciate the consideration!

@abiyani
abiyani commented Apr 26, 2012

+1

@mlin
mlin commented Apr 26, 2012

+1

@kislyuk
kislyuk commented Apr 26, 2012

Please add. Also please consider letting github users configure custom file extensions/patterns for highlighting!

@josh josh merged commit aa7c849 into github:master May 8, 2012
@aseemk
Contributor
aseemk commented May 8, 2012

Discovered today that Streamline files were magically highlighted -- awesome! Thanks so much. =)

It'd be great if GitHub would send a notification email when issues/pull requests you created or follow were closed/opened/merged/etc.!

@aseemk
Contributor
aseemk commented May 8, 2012

Hey @josh, I saw a ._js file highlighted fine in one repo, but ._coffee files in another aren't:

https://github.com/thingdom/node-neo4j/blob/develop/lib/PropertyContainer._coffee

Is this expected? (E.g. a propagation or caching issue?) Or is this a bug somewhere?

Thanks!

@bigeasy
bigeasy commented May 8, 2012

Wonderful! Thank you all so much.

@bjouhier
bjouhier commented May 8, 2012

Cool! Thanks Josh (and Aseem for submitting the pull request).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment