Class SpincastCssAutoprefixerManagerDefault
java.lang.Object
org.spincast.plugins.cssautoprefixer.SpincastCssAutoprefixerManagerDefault
- All Implemented Interfaces:
SpincastCssAutoprefixerManager
public class SpincastCssAutoprefixerManagerDefault
extends Object
implements SpincastCssAutoprefixerManager
CSS Autoprefixer manager.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpincastCssAutoprefixerManagerDefault
(SpincastUtils spincastUtils, SpincastProcessUtils spincastProcessUtils, SpincastConfig spincastConfig, SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig, JsonManager jsonManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.autoPrefix
(String cssContent) Apply Autoprefixer on the specified CSS String.autoPrefix
(String cssContent, JsonObject options) Apply Autoprefixer on the specified CSS String.protected void
createPostCssConfigFile
(File postCssConfigFileDir, JsonObject options) protected int
getCommandArgs
(String postcssExecutableName, File tempCssFile, File postCssConfigFileDir) Create arguments for the "postcss" program.protected JsonManager
protected File
protected String
protected File
getPostCssConfigFileDir
(JsonObject options) Return a directory where to find a "postcss.config.js" serving as the configurations for "postcss".protected File
protected SpincastConfig
protected SpincastCssAutoprefixerConfig
protected SpincastProcessUtils
protected SpincastUtils
boolean
Returntrue
if Autoprefixer can be run properly.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
SpincastCssAutoprefixerManagerDefault
@Inject public SpincastCssAutoprefixerManagerDefault(SpincastUtils spincastUtils, SpincastProcessUtils spincastProcessUtils, SpincastConfig spincastConfig, SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig, JsonManager jsonManager)
-
-
Method Details
-
getSpincastUtils
-
getSpincastProcessUtils
-
getSpincastConfig
-
getSpincastCssAutoprefixerConfig
-
getJsonManager
-
isValidAutoprefixerEnvironment
public boolean isValidAutoprefixerEnvironment()Description copied from interface:SpincastCssAutoprefixerManager
Returntrue
if Autoprefixer can be run properly.Read the documentation in order to learn how to install the requirements.
- Specified by:
isValidAutoprefixerEnvironment
in interfaceSpincastCssAutoprefixerManager
-
getNomExecutableName
-
getNodeGlobalDir
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified CSS file.Use
UTF-8
as the encoding.- Specified by:
autoPrefix
in interfaceSpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified CSS file.Use
UTF-8
as the encoding.- Specified by:
autoPrefix
in interfaceSpincastCssAutoprefixerManager
options
- The Autoprefixer options to use.
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified CSS file.- Specified by:
autoPrefix
in interfaceSpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified CSS file.- Specified by:
autoPrefix
in interfaceSpincastCssAutoprefixerManager
options
- The Autoprefixer options to use.
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified CSS String.- Specified by:
autoPrefix
in interfaceSpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified CSS String.- Specified by:
autoPrefix
in interfaceSpincastCssAutoprefixerManager
options
- The Autoprefixer options to use.
-
getAutoprefixCommandMaxNbrMinutes
protected int getAutoprefixCommandMaxNbrMinutes() -
getPostCssConfigFileDirsParentDir
-
getPostCssConfigFileDir
Return a directory where to find a "postcss.config.js" serving as the configurations for "postcss".Return
null
if no configuration file is required. -
createPostCssConfigFile
-
getCommandArgs
protected List<String> getCommandArgs(String postcssExecutableName, File tempCssFile, File postCssConfigFileDir) Create arguments for the "postcss" program.
-