dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
parent
668730e1da
commit
80c1b3d57c
@ -1,14 +1,24 @@ |
|||||||
"use strict"; |
"use strict"; |
||||||
|
|
||||||
var dotNetBuilderWrapper = require('./dotnetbuilderwrapper'); |
var sequential = require('./sequential'); |
||||||
|
|
||||||
module.exports = function (params, processor) { |
module.exports = function (params, processor) { |
||||||
var date = new Date(); |
var date = new Date(), |
||||||
return dotNetBuilderWrapper({ |
version = (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()), |
||||||
|
nupkg = processor.context.exported + "/" + params.name + "." + version + ".nupkg"; |
||||||
|
|
||||||
|
return sequential({ |
||||||
|
tasks: [ |
||||||
|
{ |
||||||
|
type: "dotnetbuilderwrapper", |
||||||
|
params: { |
||||||
command: "nugetpack", |
command: "nugetpack", |
||||||
BaseDirectory: processor.context.exported, |
BaseDirectory: processor.context.exported, |
||||||
SpecPath: processor.context.exported + "/" + params.nuspec, |
SpecPath: processor.context.exported + "/" + params.nuspec, |
||||||
OutputDirectory: processor.context.release, |
OutputDirectory: processor.context.exported, |
||||||
Version: (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()) |
Version: version |
||||||
|
} |
||||||
|
} |
||||||
|
] |
||||||
}, processor); |
}, processor); |
||||||
}; |
}; |
||||||
|
Loading…
Reference in new issue