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 1.13.0 API)
org.spincast.plugins.cssautoprefixer
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
Modifier and Type
Field and Description
protected static org.slf4j.Logger
logger
-
Constructor Summary
Constructors
Constructor and Description
SpincastCssAutoprefixerManagerDefault(SpincastUtils spincastUtils,
SpincastProcessUtils spincastProcessUtils,
SpincastConfig spincastConfig,
SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig,
JsonManager jsonManager)
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
-
Constructor Detail
-
SpincastCssAutoprefixerManagerDefault
@Inject
public SpincastCssAutoprefixerManagerDefault(SpincastUtils spincastUtils,
SpincastProcessUtils spincastProcessUtils,
SpincastConfig spincastConfig,
SpincastCssAutoprefixerConfig spincastCssAutoprefixerConfig,
JsonManager jsonManager)
-
Method Detail
-
getSpincastUtils
protected SpincastUtils getSpincastUtils()
-
getSpincastProcessUtils
protected SpincastProcessUtils getSpincastProcessUtils()
-
getSpincastConfig
protected SpincastConfig getSpincastConfig()
-
getSpincastCssAutoprefixerConfig
protected SpincastCssAutoprefixerConfig getSpincastCssAutoprefixerConfig()
-
getJsonManager
protected JsonManager 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
protected String getNomExecutableName()
-
getNodeGlobalDir
protected File getNodeGlobalDir()
-
autoPrefix
public void autoPrefix(File cssFile)
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
public void autoPrefix(File cssFile,
JsonObject options)
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
public void autoPrefix(File cssFile,
Charset encoding)
Description copied from interface: SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified
CSS file.
- Specified by:
autoPrefix
in interface SpincastCssAutoprefixerManager
-
autoPrefix
public void autoPrefix(File cssFile,
Charset encoding,
JsonObject options)
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
public String autoPrefix(String cssContent)
Description copied from interface: SpincastCssAutoprefixerManager
Apply Autoprefixer on the specified
CSS String.
- Specified by:
autoPrefix
in interface SpincastCssAutoprefixerManager
-
autoPrefix
public String autoPrefix(String cssContent,
JsonObject options)
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
protected File getPostCssConfigFileDirsParentDir()
-
getPostCssConfigFileDir
protected File getPostCssConfigFileDir(JsonObject options)
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
protected void createPostCssConfigFile(File postCssConfigFileDir,
JsonObject options)
Copyright © 2019. All rights reserved.