djblets.pipeline.compilers.es6
A specialization of pipeline’s ES6Compiler.
-
class ES6Compiler(verbose, storage)[source]
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'[source]
-
match_file(path)[source]
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)[source]
Return the path of the output file for this compiler.
- Parameters:
-
- Returns:
The input path with .es6.js renamed to .js.
- Return type:
unicode