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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpincastCssAutoprefixerManagerDefault(SpincastUtils spincastUtils, SpincastProcessUtils spincastProcessUtils, SpincastConfig spincastConfig, SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig, JsonManager jsonManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidautoPrefix(File cssFile) Apply Autoprefixer on the specified CSS file.voidautoPrefix(File cssFile, Charset encoding) Apply Autoprefixer on the specified CSS file.voidautoPrefix(File cssFile, Charset encoding, JsonObject options) Apply Autoprefixer on the specified CSS file.voidautoPrefix(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 voidcreatePostCssConfigFile(File postCssConfigFileDir, JsonObject options) protected intgetCommandArgs(String postcssExecutableName, File tempCssFile, File postCssConfigFileDir) Create arguments for the "postcss" program.protected JsonManagerprotected Fileprotected Stringprotected FilegetPostCssConfigFileDir(JsonObject options) Return a directory where to find a "postcss.config.js" serving as the configurations for "postcss".protected Fileprotected SpincastConfigprotected SpincastCssAutoprefixerConfigprotected SpincastProcessUtilsprotected SpincastUtilsbooleanReturntrueif 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:SpincastCssAutoprefixerManagerReturntrueif Autoprefixer can be run properly.Read the documentation in order to learn how to install the requirements.
- Specified by:
isValidAutoprefixerEnvironmentin interfaceSpincastCssAutoprefixerManager
-
getNomExecutableName
-
getNodeGlobalDir
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManagerApply Autoprefixer on the specified CSS file.Use
UTF-8as the encoding.- Specified by:
autoPrefixin interfaceSpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManagerApply Autoprefixer on the specified CSS file.Use
UTF-8as the encoding.- Specified by:
autoPrefixin interfaceSpincastCssAutoprefixerManageroptions- The Autoprefixer options to use.
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManagerApply Autoprefixer on the specified CSS file.- Specified by:
autoPrefixin interfaceSpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManagerApply Autoprefixer on the specified CSS file.- Specified by:
autoPrefixin interfaceSpincastCssAutoprefixerManageroptions- The Autoprefixer options to use.
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManagerApply Autoprefixer on the specified CSS String.- Specified by:
autoPrefixin interfaceSpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface:SpincastCssAutoprefixerManagerApply Autoprefixer on the specified CSS String.- Specified by:
autoPrefixin interfaceSpincastCssAutoprefixerManageroptions- 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
nullif no configuration file is required. -
createPostCssConfigFile
-
getCommandArgs
protected List<String> getCommandArgs(String postcssExecutableName, File tempCssFile, File postCssConfigFileDir) Create arguments for the "postcss" program.
-