djblets.pipeline.compilers.es6
A specialization of pipeline’s ES6Compiler.
-
class ES6Compiler(verbose, storage)
Bases: ES6Compiler
An ES6 Compiler which compiles .es6.js to .js.
To use this, add the path to this class to
settings.PIPELINE['COMPILERS']
.
-
input_extension = 'es6.js'
-
match_file(path)
Return whether the given path should use this compiler.
- Parameters:
path (unicode
) – The source path.
- Returns:
Whether this compiler should be used for the given path.
- Return type:
bool
-
output_path(path, extension)
Return the path of the output file for this compiler.
- Parameters:
-
- Returns:
The input path with .es6.js renamed to .js.
- Return type:
unicode