You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
571 B
15 lines
571 B
11 years ago
|
"use strict";
|
||
|
|
||
|
var dotNetBuilderWrapper = require('./dotnetbuilderwrapper');
|
||
|
|
||
|
module.exports = function (params, processor) {
|
||
|
var date = new Date();
|
||
|
return dotNetBuilderWrapper({
|
||
|
command: "nugetpack",
|
||
|
BaseDirectory: processor.context.exported,
|
||
|
SpecPath: processor.context.exported + "/" + params.nuspec,
|
||
|
OutputDirectory: processor.context.release,
|
||
|
Version: (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDay()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds())
|
||
|
}, processor);
|
||
|
};
|