Package com.diffplug.spotless.npm
Class TsFmtFormatterStep.State
- java.lang.Object
-
- com.diffplug.spotless.npm.TsFmtFormatterStep.State
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TsFmtFormatterStep
public static class TsFmtFormatterStep.State extends Object implements 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
-
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 String
replaceDevDependencies(String template, Map<String,String> devDependencies)
-
-
-
Constructor Detail
-
State
public State(String stepName, Map<String,String> versions, File projectDir, File buildDir, NpmPathResolver npmPathResolver, @Nullable TypedTsFmtConfigFile configFile, @Nullable Map<String,Object> inlineTsFmtSettings) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createFormatterFunc
@Nonnull public FormatterFunc createFormatterFunc()
-
prepareNodeServerLayout
protected void prepareNodeServerLayout() throws IOException
- Throws:
IOException
-
prepareNodeServer
protected void prepareNodeServer() throws IOException
- Throws:
IOException
-
assertNodeServerDirReady
protected void assertNodeServerDirReady() throws IOException
- Throws:
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, IOException
- Throws:
com.diffplug.spotless.npm.NpmFormatterStepStateBase.ServerStartException
IOException
-
-