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.
47 lines
1.2 KiB
47 lines
1.2 KiB
"use strict";
|
|
|
|
const fs = require('fs');
|
|
const Mustache = require('mustache');
|
|
|
|
const sequential = require('./sequential');
|
|
|
|
const msbuildTemplate = fs.readFileSync(__dirname + "/dotnetpackwebapp.template.msbuild", {encoding: "utf8"});
|
|
const deployTemplate = fs.readFileSync(__dirname + "/dotnetpackwebapp.template.bat", {encoding: "utf8"});
|
|
const versionTemplate = fs.readFileSync(__dirname + "/dotnetpackwebapp.template.version.aspx", {encoding: "utf8"});
|
|
|
|
module.exports = (params, processor) => sequential({
|
|
tasks: [
|
|
{
|
|
type: "writefile",
|
|
params: {
|
|
filename: "MakePackage.msbuild",
|
|
data: Mustache.render(msbuildTemplate, params)
|
|
}
|
|
},
|
|
{
|
|
type: "writefile",
|
|
params: {
|
|
filename: "Deploy.bat",
|
|
data: Mustache.render(deployTemplate, params)
|
|
}
|
|
},
|
|
{
|
|
type: "writefile",
|
|
params: {
|
|
filename: "version.aspx",
|
|
data: Mustache.render(versionTemplate, params)
|
|
}
|
|
},
|
|
{
|
|
type: "dotnetcompile",
|
|
params: {
|
|
solution: "MakePackage.msbuild",
|
|
skipCodeSigning: params.skipCodeSigning,
|
|
isCodeAnalysisUnsupported: params.isCodeAnalysisUnsupported,
|
|
configuration: params.configuration,
|
|
target: "Package",
|
|
overrideOutputDirectory: processor.context.release
|
|
}
|
|
}
|
|
]
|
|
}, processor);
|
|
|