public class SpincastCssAutoprefixerManagerDefault extends Object implements SpincastCssAutoprefixerManager
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SpincastCssAutoprefixerManagerDefault(SpincastUtils spincastUtils,
SpincastProcessUtils spincastProcessUtils,
SpincastConfig spincastConfig,
SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig,
JsonManager jsonManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
autoPrefix(File cssFile)
Apply Autoprefixer on the specified
CSS file.
|
void |
autoPrefix(File cssFile,
Charset encoding)
Apply Autoprefixer on the specified
CSS file.
|
void |
autoPrefix(File cssFile,
Charset encoding,
JsonObject options)
Apply Autoprefixer on the specified
CSS file.
|
void |
autoPrefix(File cssFile,
JsonObject options)
Apply Autoprefixer on the specified
CSS file.
|
String |
autoPrefix(String cssContent)
Apply Autoprefixer on the specified
CSS String.
|
String |
autoPrefix(String cssContent,
JsonObject options)
Apply Autoprefixer on the specified
CSS String.
|
protected void |
createPostCssConfigFile(File postCssConfigFileDir,
JsonObject options) |
protected int |
getAutoprefixCommandMaxNbrMinutes() |
protected List<String> |
getCommandArgs(String postcssExecutableName,
File tempCssFile,
File postCssConfigFileDir)
Create arguments for the "postcss" program.
|
protected JsonManager |
getJsonManager() |
protected File |
getNodeGlobalDir() |
protected String |
getNomExecutableName() |
protected File |
getPostCssConfigFileDir(JsonObject options)
Return a directory where to find a
"postcss.config.js" serving as the
configurations for "postcss".
|
protected File |
getPostCssConfigFileDirsParentDir() |
protected SpincastConfig |
getSpincastConfig() |
protected SpincastCssAutoprefixerConfig |
getSpincastCssAutoprefixerConfig() |
protected SpincastProcessUtils |
getSpincastProcessUtils() |
protected SpincastUtils |
getSpincastUtils() |
boolean |
isValidAutoprefixerEnvironment()
Return
true if Autoprefixer can be
run properly. |
@Inject public SpincastCssAutoprefixerManagerDefault(SpincastUtils spincastUtils, SpincastProcessUtils spincastProcessUtils, SpincastConfig spincastConfig, SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig, JsonManager jsonManager)
protected SpincastUtils getSpincastUtils()
protected SpincastProcessUtils getSpincastProcessUtils()
protected SpincastConfig getSpincastConfig()
protected SpincastCssAutoprefixerConfig getSpincastCssAutoprefixerConfig()
protected JsonManager getJsonManager()
public boolean isValidAutoprefixerEnvironment()
SpincastCssAutoprefixerManagertrue if Autoprefixer can be
run properly.
Read the documentation in order to learn how to install the requirements.
isValidAutoprefixerEnvironment in interface SpincastCssAutoprefixerManagerprotected String getNomExecutableName()
protected File getNodeGlobalDir()
public void autoPrefix(File cssFile)
SpincastCssAutoprefixerManager
Use UTF-8 as the encoding.
autoPrefix in interface SpincastCssAutoprefixerManagerpublic void autoPrefix(File cssFile, JsonObject options)
SpincastCssAutoprefixerManager
Use UTF-8 as the encoding.
autoPrefix in interface SpincastCssAutoprefixerManageroptions - The
Autoprefixer options to use.public void autoPrefix(File cssFile, Charset encoding)
SpincastCssAutoprefixerManagerautoPrefix in interface SpincastCssAutoprefixerManagerpublic void autoPrefix(File cssFile, Charset encoding, JsonObject options)
SpincastCssAutoprefixerManagerautoPrefix in interface SpincastCssAutoprefixerManageroptions - The
Autoprefixer options to use.public String autoPrefix(String cssContent)
SpincastCssAutoprefixerManagerautoPrefix in interface SpincastCssAutoprefixerManagerpublic String autoPrefix(String cssContent, JsonObject options)
SpincastCssAutoprefixerManagerautoPrefix in interface SpincastCssAutoprefixerManageroptions - The
Autoprefixer options to use.protected int getAutoprefixCommandMaxNbrMinutes()
protected File getPostCssConfigFileDirsParentDir()
protected File getPostCssConfigFileDir(JsonObject options)
Return null if no configuration
file is required.
protected void createPostCssConfigFile(File postCssConfigFileDir, JsonObject options)
Copyright © 2019. All rights reserved.