Package com.diffplug.spotless.npm
Class TsFmtFormatterStep.State
- java.lang.Object
-
- com.diffplug.spotless.npm.TsFmtFormatterStep.State
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- TsFmtFormatterStep
public static class TsFmtFormatterStep.State extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description com.diffplug.spotless.npm.NpmFormatterStepLocations
locations
protected com.diffplug.spotless.npm.NodeServerLayout
nodeServerLayout
-
Constructor Summary
Constructors Constructor Description State(java.lang.String stepName, java.util.Map<java.lang.String,java.lang.String> versions, java.io.File projectDir, java.io.File buildDir, java.io.File cacheDir, NpmPathResolver npmPathResolver, TypedTsFmtConfigFile configFile, java.util.Map<java.lang.String,java.lang.Object> inlineTsFmtSettings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertNodeServerDirReady()
FormatterFunc
createFormatterFunc()
protected boolean
needsPrepareNodeServer()
protected boolean
needsPrepareNodeServerLayout()
protected com.diffplug.spotless.npm.NpmFormatterStepStateBase.ServerProcessInfo
npmRunServer()
protected void
prepareNodeServer()
protected void
prepareNodeServerLayout()
protected static java.lang.String
replaceDevDependencies(java.lang.String template, java.util.Map<java.lang.String,java.lang.String> devDependencies)
-
-
-
Constructor Detail
-
State
public State(java.lang.String stepName, java.util.Map<java.lang.String,java.lang.String> versions, java.io.File projectDir, java.io.File buildDir, java.io.File cacheDir, NpmPathResolver npmPathResolver, @Nullable TypedTsFmtConfigFile configFile, @Nullable java.util.Map<java.lang.String,java.lang.Object> inlineTsFmtSettings) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
createFormatterFunc
@Nonnull public FormatterFunc createFormatterFunc()
-
prepareNodeServerLayout
protected void prepareNodeServerLayout() throws java.io.IOException
- Throws:
java.io.IOException
-
prepareNodeServer
protected void prepareNodeServer() throws java.io.IOException
- Throws:
java.io.IOException
-
assertNodeServerDirReady
protected void assertNodeServerDirReady() throws java.io.IOException
- Throws:
java.io.IOException
-
needsPrepareNodeServer
protected boolean needsPrepareNodeServer()
-
needsPrepareNodeServerLayout
protected boolean needsPrepareNodeServerLayout()
-
npmRunServer
protected com.diffplug.spotless.npm.NpmFormatterStepStateBase.ServerProcessInfo npmRunServer() throws com.diffplug.spotless.npm.NpmFormatterStepStateBase.ServerStartException, java.io.IOException
- Throws:
com.diffplug.spotless.npm.NpmFormatterStepStateBase.ServerStartException
java.io.IOException
-
replaceDevDependencies
protected static java.lang.String replaceDevDependencies(java.lang.String template, java.util.Map<java.lang.String,java.lang.String> devDependencies)
-
-