Class 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 Detail

      • nodeServerLayout

        protected final transient com.diffplug.spotless.npm.NodeServerLayout nodeServerLayout
      • locations

        public final com.diffplug.spotless.npm.NpmFormatterStepLocations locations
    • 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)