Package com.diffplug.spotless.maven.npm
Class AbstractNpmFormatterStepFactory
- java.lang.Object
-
- com.diffplug.spotless.maven.npm.AbstractNpmFormatterStepFactory
-
- All Implemented Interfaces:
FormatterStepFactory
- Direct Known Subclasses:
AbstractEslint
,Prettier
,Tsfmt
public abstract class AbstractNpmFormatterStepFactory extends Object implements FormatterStepFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
SPOTLESS_NPM_INSTALL_CACHE_DEFAULT_NAME
-
Constructor Summary
Constructors Constructor Description AbstractNpmFormatterStepFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected File
baseDir(FormatterStepConfig stepConfig)
protected File
buildDir(FormatterStepConfig stepConfig)
protected File
cacheDir(FormatterStepConfig stepConfig)
protected boolean
moreThanOneNonNull(Object... objects)
protected File
node(FormatterStepConfig stepConfig)
protected File
npm(FormatterStepConfig stepConfig)
protected com.diffplug.spotless.npm.NpmPathResolver
npmPathResolver(FormatterStepConfig stepConfig)
protected File
npmrc(FormatterStepConfig stepConfig)
protected Map<String,String>
propertiesAsMap(Properties devDependencyProperties)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.diffplug.spotless.maven.FormatterStepFactory
newFormatterStep
-
-
-
-
Field Detail
-
SPOTLESS_NPM_INSTALL_CACHE_DEFAULT_NAME
public static final String SPOTLESS_NPM_INSTALL_CACHE_DEFAULT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
npm
protected File npm(FormatterStepConfig stepConfig)
-
node
protected File node(FormatterStepConfig stepConfig)
-
npmrc
protected File npmrc(FormatterStepConfig stepConfig)
-
buildDir
protected File buildDir(FormatterStepConfig stepConfig)
-
cacheDir
protected File cacheDir(FormatterStepConfig stepConfig)
-
baseDir
protected File baseDir(FormatterStepConfig stepConfig)
-
npmPathResolver
protected com.diffplug.spotless.npm.NpmPathResolver npmPathResolver(FormatterStepConfig stepConfig)
-
moreThanOneNonNull
protected boolean moreThanOneNonNull(Object... objects)
-
propertiesAsMap
protected Map<String,String> propertiesAsMap(Properties devDependencyProperties)
-
-