Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
aecd8b8d
Commit
aecd8b8d
authored
Feb 18, 2015
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename 6to5 to babel.
parent
d6be7d19
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
docs/compilers.rst
+7
-7
pipeline/compilers/es6.py
+2
-2
pipeline/conf.py
+2
-2
No files found.
docs/compilers.rst
View file @
aecd8b8d
...
...
@@ -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 ``''``.
...
...
pipeline/compilers/es6.py
View file @
aecd8b8d
...
...
@@ -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
)
...
...
pipeline/conf.py
View file @
aecd8b8d
...
...
@@ -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'
:
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment