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(org.spincast.core.utils.SpincastUtils spincastUtils, org.spincast.plugins.processutils.SpincastProcessUtils spincastProcessUtils, org.spincast.core.config.SpincastConfig spincastConfig, SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig, org.spincast.core.json.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, org.spincast.core.json.JsonObject options) Apply Autoprefixer on the specified CSS file.voidautoPrefix(File cssFile, org.spincast.core.json.JsonObject options) Apply Autoprefixer on the specified CSS file.autoPrefix(String cssContent) Apply Autoprefixer on the specified CSS String.autoPrefix(String cssContent, org.spincast.core.json.JsonObject options) Apply Autoprefixer on the specified CSS String.protected voidcreatePostCssConfigFile(File postCssConfigFileDir, org.spincast.core.json.JsonObject options) protected intgetCommandArgs(String postcssExecutableName, File tempCssFile, File postCssConfigFileDir) Create arguments for the "postcss" program.protected org.spincast.core.json.JsonManagerprotected Fileprotected Stringprotected FilegetPostCssConfigFileDir(org.spincast.core.json.JsonObject options) Return a directory where to find a "postcss.config.js" serving as the configurations for "postcss".protected Fileprotected org.spincast.core.config.SpincastConfigprotected SpincastCssAutoprefixerConfigprotected org.spincast.plugins.processutils.SpincastProcessUtilsprotected org.spincast.core.utils.SpincastUtilsbooleanReturntrueif Autoprefixer can be run properly.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
SpincastCssAutoprefixerManagerDefault
@Inject public SpincastCssAutoprefixerManagerDefault(org.spincast.core.utils.SpincastUtils spincastUtils, org.spincast.plugins.processutils.SpincastProcessUtils spincastProcessUtils, org.spincast.core.config.SpincastConfig spincastConfig, SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig, org.spincast.core.json.JsonManager jsonManager)
-
-
Method Details
-
getSpincastUtils
protected org.spincast.core.utils.SpincastUtils getSpincastUtils() -
getSpincastProcessUtils
protected org.spincast.plugins.processutils.SpincastProcessUtils getSpincastProcessUtils() -
getSpincastConfig
protected org.spincast.core.config.SpincastConfig getSpincastConfig() -
getSpincastCssAutoprefixerConfig
-
getJsonManager
protected org.spincast.core.json.JsonManager 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
protected void createPostCssConfigFile(File postCssConfigFileDir, org.spincast.core.json.JsonObject options) -
getCommandArgs
protected List<String> getCommandArgs(String postcssExecutableName, File tempCssFile, File postCssConfigFileDir) Create arguments for the "postcss" program.
-