@Mojo(name="npm",
defaultPhase=COMPILE,
threadSafe=true)
public class ExecNpmMojo
extends AbstractExecutableMojo
| Modifier and Type | Field and Description |
|---|---|
protected static String |
NPM_INSTALL_COMMAND |
protected Map<String,String> |
npmEnvironmentVar
Map of environment variables passed to npm install.
|
protected String |
npmExecutable
Name of npm executable in PATH, defaults to npm.
|
execMavenPluginVersion, showColorsgruntBuildDirectory, jsSourceDirectory, npmOfflineModulesFile, npmOfflineModulesFilePath, sourceDirectory, warTargetDirectory| Constructor and Description |
|---|
ExecNpmMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendNoColorsArgument(Executable executable) |
protected void |
appendNpmOptions(Executable executable) |
protected List<Executable> |
getExecutables()
Return executable form maven exec
|
concat, executeInternalbasedir, execute, fullJsSourceDirectory, pluginExecutionEnvironment, relativeJsSourceDirectory, targetprotected static final String NPM_INSTALL_COMMAND
@Parameter(property="npmExecutable",
defaultValue="npm")
protected String npmExecutable
protected List<Executable> getExecutables()
AbstractExecutableMojoexecutable element, return executable name for *nix OS, not Windows!
getExecutables in class AbstractExecutableMojoprotected void appendNpmOptions(Executable executable)
protected void appendNoColorsArgument(Executable executable)
Copyright © 2015. All Rights Reserved.