Update NPM.py

This commit is contained in:
Andrei Yankovich 2019-07-30 01:41:39 +03:00 committed by GitHub
parent 804fddecc2
commit b02b2229cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,19 +17,6 @@ def isLog(step):
def getFactory(): def getFactory():
factory = base.getFactory(); factory = base.getFactory();
factory.addStep(
steps.ShellCommand(
command = [
'npm',
"stop"
],
doStepIf = lambda step : (not isLog(step)) ,
haltOnFailure = True,
name = 'npm stop',
description = 'stop old version',
)
);
factory.addStep( factory.addStep(
steps.Git( steps.Git(
repourl=util.Interpolate('%(prop:repository)s'), repourl=util.Interpolate('%(prop:repository)s'),
@ -44,6 +31,19 @@ def getFactory():
) )
); );
factory.addStep(
steps.ShellCommand(
command = [
'npm',
"stop"
],
doStepIf = lambda step : (not isLog(step)) ,
haltOnFailure = True,
name = 'npm stop',
description = 'stop old version',
)
);
factory.addStep( factory.addStep(
steps.ShellCommand( steps.ShellCommand(
command = [ command = [