Skip to content

Commit

Permalink
Rename 6to5 to babel.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberdelia committed Feb 18, 2015
1 parent d6be7d1 commit aecd8b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions docs/compilers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`` ::
Expand All @@ -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 ``''``.

Expand Down
4 changes: 2 additions & 2 deletions pipeline/compilers/es6.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def compile_file(self, infile, outfile, outdated=False, force=False):
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
)
Expand Down
4 changes: 2 additions & 2 deletions pipeline/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
'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': '',
Expand Down

0 comments on commit aecd8b8

Please sign in to comment.