public.javadoc.org.spincast.plugins.cssautoprefixer.SpincastCssAutoprefixerManagerDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastCssAutoprefixerManagerDefault (org.spincast:spincast-framework 2.1.1 API)
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
Constructor
Description
SpincastCssAutoprefixerManagerDefault(SpincastUtils spincastUtils,
SpincastProcessUtils spincastProcessUtils,
SpincastConfig spincastConfig,
SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig,
JsonManager jsonManager)
-
Method Summary
Modifier and Type
Method
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.
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
Return true
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
Return true
if Autoprefixer can be
run properly.
Read the documentation
in order to learn how to install the requirements.
- Specified by:
isValidAutoprefixerEnvironment
in interface SpincastCssAutoprefixerManager
-
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 interface SpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface: SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified
CSS file.
Use UTF-8
as the encoding.
- Specified by:
autoPrefix
in interface SpincastCssAutoprefixerManager
options
- The
Autoprefixer options to use.
-
autoPrefix
Description copied from interface: SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified
CSS file.
- Specified by:
autoPrefix
in interface SpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface: SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified
CSS file.
- Specified by:
autoPrefix
in interface SpincastCssAutoprefixerManager
options
- The
Autoprefixer options to use.
-
autoPrefix
Description copied from interface: SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified
CSS String.
- Specified by:
autoPrefix
in interface SpincastCssAutoprefixerManager
-
autoPrefix
Description copied from interface: SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified
CSS String.
- Specified by:
autoPrefix
in interface SpincastCssAutoprefixerManager
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.