aspnetcore/build/_node.shade

8 lines
372 B
Plaintext

default currentDir = '${Directory.GetCurrentDirectory()}'
default nodeDir = '${Path.Combine(currentDir, "bin", "node")}'
default nodeGloballyInstalled = '${TestCommand("node --version")}'
var nodeExePath = '${ nodeGloballyInstalled ? "node" : Path.Combine(nodeDir, "node.exe") }'
node-install once='installNode'
exec program='${nodeExePath}' commandline='${nodeCommand}'