You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><ahref="#modules">Modules</a> are supported by Node 12+ with <code>"type": "module"</code> in your project’s <code>package.json</code>.</li>
905
914
</ul>
906
915
<p>This list may be incomplete, and excludes versions of Node that support newer features behind flags; please refer to <ahref="http://node.green/">node.green</a> for full details. You can <ahref="test.html">run the tests in your browser</a> to see what your browser supports. It is your responsibility to ensure that your runtime supports the modern features you use; or that you <ahref="#transpilation">transpile</a> your code. When in doubt, transpile.</p>
916
+
<p>For compatibility with other JavaScript frameworks and tools, see <ahref="#integrations">Integrations</a>.</p>
907
917
908
918
</section>
909
919
</section>
@@ -1053,7 +1063,7 @@ <h3>Node.js</h3>
1053
1063
</section>
1054
1064
<sectionid="transpilation">
1055
1065
<h3>Transpilation</h3>
1056
-
<p>CoffeeScript 2 generates JavaScript that uses the latest, modern syntax. The runtime or browsers where you want your code to run <ahref="#compatibility">might not support all of that syntax</a>. In that case, we want to convert modern JavaScript into older JavaScript that will run in older versions of Node or older browsers; for example, <code>{ a } = obj</code> into <code>a = obj.a</code>. This is done via transpilers like <ahref="http://babeljs.io/">Babel</a>, <ahref="https://buble.surge.sh/">Bublé</a> or <ahref="https://github.com/google/traceur-compiler">Traceur Compiler</a>.</p>
1066
+
<p>CoffeeScript 2 generates JavaScript that uses the latest, modern syntax. The runtime or browsers where you want your code to run <ahref="#compatibility">might not support all of that syntax</a>. In that case, we want to convert modern JavaScript into older JavaScript that will run in older versions of Node or older browsers; for example, <code>{ a } = obj</code> into <code>a = obj.a</code>. This is done via transpilers like <ahref="http://babeljs.io/">Babel</a>, <ahref="https://buble.surge.sh/">Bublé</a> or <ahref="https://github.com/google/traceur-compiler">Traceur Compiler</a>. See <ahref="#build-tools">Build Tools</a>.</p>
<p>The usual caveats about CoffeeScript apply — your inline scripts will run within a closure wrapper, so if you want to expose global variables or functions, attach them to the <code>window</code> object.</p>
4860
4870
4861
4871
</section>
4872
+
<sectionid="integrations">
4873
+
<h2>Integrations</h2>
4874
+
<p>CoffeeScript is part of the vast JavaScript ecosystem, and many libraries help integrate CoffeeScript with JavaScript. Major projects, especially projects updated to work with CoffeeScript 2, are listed here; more can be found in the <ahref="https://github.com/jashkenas/coffeescript/wiki">wiki pages</a>. If there’s a project that you feel should be added to this section, please open an issue or <ahref="https://github.com/jashkenas/coffeescript/wiki/%5BHowTo%5D-Update-the-docs">pull request</a>. Projects are listed in alphabetical order by category.</p>
4875
+
4876
+
<sectionid="build-tools">
4877
+
<h3>Build Tools</h3>
4878
+
<ul>
4879
+
<li>
4880
+
<p><ahref="http://browserify.org">Browserify</a> with <ahref="https://github.com/jnordberg/coffeeify">coffeeify</a></p>
4881
+
</li>
4882
+
<li>
4883
+
<p><ahref="https://gruntjs.com">Grunt</a> with <ahref="https://github.com/gruntjs/grunt-contrib-coffee">grunt-contrib-coffee</a></p>
4884
+
</li>
4885
+
<li>
4886
+
<p><ahref="https://gulpjs.com">Gulp</a> with <ahref="https://github.com/gulp-community/gulp-coffee">gulp-coffee</a></p>
4887
+
</li>
4888
+
<li>
4889
+
<p><ahref="https://parceljs.org">Parcel</a> with <ahref="https://github.com/parcel-bundler/parcel/tree/v2/packages/transformers/coffeescript">transformer-coffeescript</a></p>
4890
+
</li>
4891
+
<li>
4892
+
<p><ahref="https://rollupjs.org">Rollup</a> with <ahref="https://github.com/lautis/rollup-plugin-coffee-script">rollup-plugin-coffee-script</a></p>
4893
+
</li>
4894
+
<li>
4895
+
<p><ahref="https://webpack.js.org">Webpack</a> with <ahref="https://github.com/webpack-contrib/coffee-loader">coffee-loader</a></p>
<p><ahref="https://code.visualstudio.com">Visual Studio Code</a><ahref="https://marketplace.visualstudio.com/search?target=VSCode&term=coffeescript">extensions</a></p>
4911
+
</li>
4912
+
</ul>
4913
+
4914
+
</section>
4915
+
<sectionid="frameworks">
4916
+
<h3>Frameworks</h3>
4917
+
<ul>
4918
+
<li>
4919
+
<p><ahref="https://emberjs.com">Ember</a>
4920
+
with <ahref="https://github.com/kimroen/ember-cli-coffeescript">ember-cli-coffeescript</a></p>
4921
+
</li>
4922
+
<li>
4923
+
<p><ahref="https://meteor.com">Meteor</a> with <ahref="https://atmospherejs.com/meteor/coffeescript-compiler">coffeescript-compiler</a></p>
<p><ahref="https://eslint.org">ESLint</a> with <ahref="https://github.com/helixbass/eslint-plugin-coffee">eslint-plugin-coffee</a></p>
4936
+
</li>
4937
+
<li>
4938
+
<p><ahref="https://prettier.io">Prettier</a> with <ahref="https://github.com/helixbass/prettier-plugin-coffeescript">prettier-plugin-coffeescript</a></p>
4939
+
</li>
4940
+
</ul>
4941
+
4942
+
</section>
4943
+
<sectionid="testing">
4944
+
<h3>Testing</h3>
4945
+
<ul>
4946
+
<li><ahref="https://jestjs.io">Jest</a> with <ahref="https://github.com/danielbayley/jest-preset-coffeescript">jest-preset-coffeescript</a></li>
4947
+
</ul>
4948
+
4949
+
</section>
4950
+
</section>
4862
4951
<sectionid="resources">
4863
4952
<h2>Resources</h2>
4864
4953
<ul>
@@ -4868,7 +4957,7 @@ <h2>Resources</h2>
4868
4957
<li><ahref="https://groups.google.com/forum/#!forum/coffeescript">CoffeeScript Google Group</a><br>
4869
4958
If you’d like to ask a question, the mailing list is a good place to get help.</li>
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 <ahref="https://github.com/jashkenas/coffeescript/wiki/Text-editor-plugins">text editor extensions</a>, <ahref="https://github.com/jashkenas/coffeescript/wiki/Web-framework-plugins">web framework plugins</a>, and general <ahref="https://github.com/jashkenas/coffeescript/wiki/Build-tools">CoffeeScript build tools</a>.</li>
4960
+
If you’ve ever learned a neat CoffeeScript tip or trick, or ran into a gotcha — share it on the wiki.</li>
Copy file name to clipboardExpand all lines: documentation/sections/compatibility.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,5 @@ Most modern JavaScript features that CoffeeScript supports can run natively in N
9
9
*[Modules](#modules) are supported by Node 12+ with `"type": "module"` in your project’s `package.json`.
10
10
11
11
This list may be incomplete, and excludes versions of Node that support newer features behind flags; please refer to [node.green](http://node.green/) for full details. You can [run the tests in your browser](test.html) to see what your browser supports. It is your responsibility to ensure that your runtime supports the modern features you use; or that you [transpile](#transpilation) your code. When in doubt, transpile.
12
+
13
+
For compatibility with other JavaScript frameworks and tools, see [Integrations](#integrations).
CoffeeScript is part of the vast JavaScript ecosystem, and many libraries help integrate CoffeeScript with JavaScript. Major projects, especially projects updated to work with CoffeeScript 2, are listed here; more can be found in the [wiki pages](https://github.com/jashkenas/coffeescript/wiki). If there’s a project that you feel should be added to this section, please open an issue or [pull request](https://github.com/jashkenas/coffeescript/wiki/%5BHowTo%5D-Update-the-docs). Projects are listed in alphabetical order by category.
*[Browserify](http://browserify.org) with [coffeeify](https://github.com/jnordberg/coffeeify)
4
+
5
+
*[Grunt](https://gruntjs.com) with [grunt-contrib-coffee](https://github.com/gruntjs/grunt-contrib-coffee)
6
+
7
+
*[Gulp](https://gulpjs.com) with [gulp-coffee](https://github.com/gulp-community/gulp-coffee)
8
+
9
+
*[Parcel](https://parceljs.org) with [transformer-coffeescript](https://github.com/parcel-bundler/parcel/tree/v2/packages/transformers/coffeescript)
10
+
11
+
*[Rollup](https://rollupjs.org) with [rollup-plugin-coffee-script](https://github.com/lautis/rollup-plugin-coffee-script)
12
+
13
+
*[Webpack](https://webpack.js.org) with [coffee-loader](https://github.com/webpack-contrib/coffee-loader)
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](https://github.com/jashkenas/coffeescript/wiki/Text-editor-plugins), [web framework plugins](https://github.com/jashkenas/coffeescript/wiki/Web-framework-plugins), and general [CoffeeScript build tools](https://github.com/jashkenas/coffeescript/wiki/Build-tools).
9
+
If you’ve ever learned a neat CoffeeScript tip or trick, or ran into a gotcha — share it on the wiki.
Copy file name to clipboardExpand all lines: documentation/sections/transpilation.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
### Transpilation
2
2
3
-
CoffeeScript 2 generates JavaScript that uses the latest, modern syntax. The runtime or browsers where you want your code to run [might not support all of that syntax](#compatibility). In that case, we want to convert modern JavaScript into older JavaScript that will run in older versions of Node or older browsers; for example, `{ a } = obj` into `a = obj.a`. This is done via transpilers like [Babel](http://babeljs.io/), [Bublé](https://buble.surge.sh/) or [Traceur Compiler](https://github.com/google/traceur-compiler).
3
+
CoffeeScript 2 generates JavaScript that uses the latest, modern syntax. The runtime or browsers where you want your code to run [might not support all of that syntax](#compatibility). In that case, we want to convert modern JavaScript into older JavaScript that will run in older versions of Node or older browsers; for example, `{ a } = obj` into `a = obj.a`. This is done via transpilers like [Babel](http://babeljs.io/), [Bublé](https://buble.surge.sh/) or [Traceur Compiler](https://github.com/google/traceur-compiler). See [Build Tools](#build-tools).
0 commit comments