Skip to content

Commit

Permalink
add editions standard
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Sep 15, 2016
1 parent 1ceaea1 commit 059bfe9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -48,6 +48,16 @@ A foreach that supports arrays and objects, provides the value and key/index, as
<li>Install: <code>ender add foreach-elegant</code></li>
<li>Module: <code>require('foreach-elegant')</code></li></ul>

<h3><a href="https://github.com/bevry/editions" title="Editions are the best way to produce and consume packages you care about.">Editions</a></h3>

<p>This package is published with the following editions:</p>

<ul><li><code>foreach-elegant/source/index.js</code> is Source + <a href="https://babeljs.io/docs/learn-es2015/" title="ECMAScript Next">ESNext</a> + <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> + <a href="http://flowtype.org/blog/2015/02/20/Flow-Comments.html" title="Flow is a static type checker for JavaScript">Flow Type Comments</a></li>
<li><code>foreach-elegant</code> aliases <code>foreach-elegant/es2015/index.js</code></li>
<li><code>foreach-elegant/es2015/index.js</code> is <a href="https://babeljs.io" title="The compiler for writing next generation JavaScript">Babel</a> Compiled + <a href="http://babeljs.io/docs/plugins/preset-es2015/" title="ECMAScript 2015">ES2015</a> + <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a></li></ul>

<p>Older environments may need <a href="https://babeljs.io/docs/usage/polyfill/" title="A polyfill that emulates missing ECMAScript environment features">Babel's Polyfill</a> or something similar.</p>

<!-- /INSTALL -->


Expand Down
23 changes: 23 additions & 0 deletions package.json
Expand Up @@ -52,6 +52,29 @@
"engines": {
"node": ">=0.12"
},
"editions": [
{
"description": "Source + ESNext + Require + Flow Type Comments",
"entry": "source/index.js",
"syntaxes": [
"javascript",
"esnext",
"require",
"const",
"let",
"flow type comments"
]
},
{
"description": "Babel Compiled + ES2015 + Require",
"entry": "es2015/index.js",
"syntaxes": [
"javascript",
"es2015",
"require"
]
}
],
"main": "es2015/index.js",
"browser": "es2015/index.js",
"scripts": {
Expand Down

0 comments on commit 059bfe9

Please sign in to comment.