Commit aecd8b8d by Timothée Peignier

Rename 6to5 to babel.

parent d6be7d19
......@@ -147,7 +147,7 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
ES6 compiler
============
The ES6 compiler uses `6to5 <https://6to5.org>`_
The ES6 compiler uses `Babel <https://babeljs.io>`_
to convert ES6+ code into vanilla ES5.
To use it add this to your ``PIPELINE_COMPILERS`` ::
......@@ -157,18 +157,18 @@ To use it add this to your ``PIPELINE_COMPILERS`` ::
)
``PIPELINE_6TO5_BINARY``
``PIPELINE_BABEL_BINARY``
--------------------------
Command line to execute for 6to5 program.
You will most likely change this to the location of 6to5 on your system.
Command line to execute for babel program.
You will most likely change this to the location of babel on your system.
Defaults to ``'/usr/bin/env 6to5'``.
Defaults to ``'/usr/bin/env babel'``.
``PIPELINE_6TO5_ARGUMENTS``
``PIPELINE_BABEL_ARGUMENTS``
-----------------------------
Additional arguments to use when 6to5 is called.
Additional arguments to use when babel is called.
Defaults to ``''``.
......
......@@ -14,8 +14,8 @@ class ES6Compiler(SubProcessCompiler):
if not outdated and not force:
return # File doesn't need to be recompiled
command = "%s %s %s -o %s" % (
settings.PIPELINE_6TO5_BINARY,
settings.PIPELINE_6TO5_ARGUMENTS,
settings.PIPELINE_BABEL_BINARY,
settings.PIPELINE_BABEL_ARGUMENTS,
infile,
outfile
)
......
......@@ -48,8 +48,8 @@ DEFAULTS = {
'PIPELINE_COFFEE_SCRIPT_BINARY': '/usr/bin/env coffee',
'PIPELINE_COFFEE_SCRIPT_ARGUMENTS': '',
'PIPELINE_6TO5_BINARY': '/usr/bin/env 6to5',
'PIPELINE_6TO5_ARGUMENTS': '',
'PIPELINE_BABEL_BINARY': '/usr/bin/env babel',
'PIPELINE_BABEL_ARGUMENTS': '',
'PIPELINE_LIVE_SCRIPT_BINARY': '/usr/bin/env lsc',
'PIPELINE_LIVE_SCRIPT_ARGUMENTS': '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment