aspnetcore/build/_npm.shade

9 lines
410 B
Plaintext

default currentDir = '${Directory.GetCurrentDirectory()}'
default nodeDir = '${Path.Combine(currentDir, "bin", "nodejs")}'
default npmDir = '${currentDir}'
var npmGloballyInstalled = '${TestCommand("npm --version")}'
var npmCmd = '${ npmGloballyInstalled ? "npm" : Path.Combine(nodeDir, "npm.cmd") }'
node-install once='installNode'
exec program='${npmCmd}' commandline='${npmCommand}' workingdir='${npmDir}'