public class FrontendToolsManager extends Object
Transpilation is based on gulp and polymer-build.
Polymer tools are used since they are the only ones capable of bundling html files along with css and js ones and providing helper method for processing web components.
Apart from gulp and polymer-build, yarn and node are used to get and launch the tools required.
| Constructor and Description |
|---|
FrontendToolsManager(File workingDirectory,
String es5OutputDirectoryName,
String es6OutputDirectoryName,
FrontendDataProvider frontendDataProvider,
RunnerManager runnerManager)
Prepares the manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
installFrontendTools(int networkConcurrency)
Installs tools required for transpilation.
|
Map<String,File> |
transpileFiles(File es6SourceDirectory,
File outputDirectory,
boolean skipEs5)
Transpiles files in the directory provided, copying them to the working
directory.
|
public FrontendToolsManager(File workingDirectory, String es5OutputDirectoryName, String es6OutputDirectoryName, FrontendDataProvider frontendDataProvider, RunnerManager runnerManager)
workingDirectory - the directory to install and process files in, not
nulles5OutputDirectoryName - the name for the directory to put transpiled ES5 files into,
not nulles6OutputDirectoryName - the name for the directory to put minified ES6 files into, not
nullfrontendDataProvider - the source of the files required by the
FrontendToolsManager, not nullrunnerManager - node, gulp and yarn runnerpublic void installFrontendTools(int networkConcurrency)
networkConcurrency - maximum number of concurrent network requestsIllegalStateException - if dependency installation failsUncheckedIOException - if supplementary file creation failspublic Map<String,File> transpileFiles(File es6SourceDirectory, File outputDirectory, boolean skipEs5)
es6SourceDirectory - the directory to get ES6 files from, not nulloutputDirectory - the directory to put transpiled files into, created if absentskipEs5 - whether to skip the transpilation step or notIllegalStateException - if transpilation failsIllegalArgumentException - if es6SourceDirectory is not a directory or does not existUncheckedIOException - if output directory creation fails or other
IOException occursCopyright © 2025. All rights reserved.