How would I do "npm run build"? #3286
Answered
by
nils-a
nick5454
asked this question in
Extension Q&A
-
I'm using Cake.CoreCLR 0.38.4 and Cake.NPM I'd like to do npm run build {path}, but my code is not working. Any suggestions var settings = new NpmInstallSettings
{
Production = false,
WorkingDirectory = "***path***"
};
NpmInstall(settings);
var runSettings = new NpmRunScriptSettings
{
ScriptName = "run build",
LogLevel = NpmLogLevel.Verbose
};
NpmRunScript(runSettings); |
Beta Was this translation helpful? Give feedback.
Answered by
nils-a
Mar 16, 2021
Replies: 2 comments 3 replies
-
Have you tried var runSettings = new NpmRunScriptSettings
{
ScriptName = "build",
LogLevel = NpmLogLevel.Verbose,
};
runSettings.Arguments.Add("{path}");
NpmRunScript(runSettings); |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
nick5454
-
Sorry, you are correct. I'm new to nodeJs and npm so I was confused |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried