kuduscript
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -12,3 +12,3 @@ var commander = require('commander'); | ||
.option('--aspWAP <projectFilePath>', 'Create a deployment script for .NET web application, specify the project file path') | ||
.option('--aspNet5 <projectFilePath>', 'Create a deployment script for ASP.NET 5 web application, specify the project.json file path') | ||
.option('--aspNetCore <projectFilePath>', 'Create a deployment script for ASP.NET Core web application, specify the project.json file path') | ||
.option('--aspWebSite', 'Create a deployment script for basic website') | ||
@@ -27,7 +27,3 @@ .option('--go', 'Create a deployment script for Go website') | ||
.option('--no-dot-deployment', 'Do not generate the .deployment file.') | ||
.option('--no-solution', 'Do not require a solution file path (only for --aspWAP otherwise ignored).') | ||
.option('--aspNet5Version <version>', 'The Dnx version for ASP.NET 5') | ||
.option('--aspNet5Runtime <runtime>', 'The .NET runtime (clr vs coreclr) for ASP.NET 5') | ||
.option('--aspNet5Architecture <architecture>', 'The architecture (x64 vs x86) for ASP.NET 5') | ||
.option('--dnxConsoleApp <projectDirectory>', 'Creates a deployment script for a DNX base console app as a webjob'); | ||
.option('--no-solution', 'Do not require a solution file path (only for --aspWAP otherwise ignored).'); | ||
} | ||
@@ -39,3 +35,3 @@ | ||
var scriptType = options.scriptType; | ||
var projectFile = options.aspWAP || options.dotNetConsole || options.aspNet5; | ||
var projectFile = options.aspWAP || options.dotNetConsole || options.aspNetCore; | ||
var solutionFile = options.solutionFile; | ||
@@ -45,8 +41,4 @@ var sitePath = options.sitePath || repositoryRoot; | ||
var noSolution = options.solution === false; | ||
var aspNet5Version = options.aspNet5Version; | ||
var aspNet5Runtime = options.aspNet5Runtime; | ||
var aspNet5Architecture = options.aspNet5Architecture; | ||
var dnxConsoleApp = options.dnxConsoleApp; | ||
var exclusionFlags = [options.aspWAP, options.php, options.python, options.aspWebSite, options.node, options.basic, options.dotNetConsole, options.aspNet5, options.go, options.dnxConsoleApp]; | ||
var exclusionFlags = [options.aspWAP, options.php, options.python, options.aspWebSite, options.node, options.basic, options.dotNetConsole, options.aspNetCore, options.go]; | ||
var flagCount = 0; | ||
@@ -62,6 +54,6 @@ for (var i in exclusionFlags) { | ||
log.help(''); | ||
log.help('Please specify one of these flags: --aspWAP, --aspWebSite, --php, --python, --dotNetConsole, --basic or --node'); | ||
log.help('Please specify one of these flags: --aspWAP, --aspNetCore, --aspWebSite, --php, --python, --dotNetConsole, --basic or --node'); | ||
return; | ||
} else if (flagCount > 1) { | ||
throw new Error('Please specify only one of these flags: --aspWAP, --aspWebSite, --php, --python, --dotNetConsole, --basic or --node'); | ||
throw new Error('Please specify only one of these flags: --aspWAP, --aspNetCore, --aspWebSite, --php, --python, --dotNetConsole, --basic or --node'); | ||
} | ||
@@ -72,4 +64,4 @@ | ||
projectType = generator.ProjectType.wap; | ||
} else if (options.aspNet5) { | ||
projectType = generator.ProjectType.aspNet5 | ||
} else if (options.aspNetCore) { | ||
projectType = generator.ProjectType.aspNetCore | ||
} else if (options.aspWebSite) { | ||
@@ -85,4 +77,2 @@ projectType = generator.ProjectType.website; | ||
projectType = generator.ProjectType.dotNetConsole; | ||
} else if (options.dnxConsoleApp) { | ||
projectType = generator.ProjectType.dnxConsoleApp; | ||
} else { | ||
@@ -97,3 +87,3 @@ projectType = generator.ProjectType.basic; | ||
var scriptGenerator = new generator.ScriptGenerator(repositoryRoot, projectType, projectFile, solutionFile, sitePath, scriptType, outputPath, noDotDeployment, noSolution, aspNet5Version, aspNet5Runtime, aspNet5Architecture, dnxConsoleApp, log, confirmFunc); | ||
var scriptGenerator = new generator.ScriptGenerator(repositoryRoot, projectType, projectFile, solutionFile, sitePath, scriptType, outputPath, noDotDeployment, noSolution, log, confirmFunc); | ||
scriptGenerator.generateDeploymentScript(_); | ||
@@ -100,0 +90,0 @@ } |
@@ -44,5 +44,4 @@ /*** Generated by streamline 0.4.11 (callbacks) - DO NOT EDIT ***/ var __rt=require('streamline/lib/callbacks/runtime').runtime(__filename),__func=__rt.__func,__cb=__rt.__cb; var package = require("../package.json"); | ||
dotNetConsole: "DOT_NET_CONSOLE", | ||
aspNet5: "ASP_NET5", | ||
go: "GO", | ||
dnxConsoleApp: "DNX_CONSOLE_APP"}; | ||
aspNetCore: "ASP_NET_CORE", | ||
go: "GO"}; | ||
@@ -53,3 +52,3 @@ | ||
function ScriptGenerator(repositoryRoot, projectType, projectPath, solutionPath, sitePath, scriptType, scriptOutputPath, noDotDeployment, noSolution, aspNet5Version, aspNet5Runtime, aspNet5Architecture, dnxConsoleAppPath, logger, confirmFunc) { | ||
function ScriptGenerator(repositoryRoot, projectType, projectPath, solutionPath, sitePath, scriptType, scriptOutputPath, noDotDeployment, noSolution, logger, confirmFunc, useMSBuild) { | ||
argNotNull(repositoryRoot, "repositoryRoot"); | ||
@@ -64,3 +63,3 @@ argNotNull(scriptOutputPath, "scriptOutputPath"); | ||
if ((((((projectType === ProjectType.wap) || (projectType === ProjectType.website)) || (projectType === ProjectType.aspNet5)) || (projectType === ProjectType.python)) || (projectType === ProjectType.go))) { | ||
if ((((((projectType === ProjectType.wap) || (projectType === ProjectType.website)) || (projectType === ProjectType.aspNetCore)) || (projectType === ProjectType.python)) || (projectType === ProjectType.go))) { | ||
@@ -121,6 +120,3 @@ scriptType = ScriptType.batch; } | ||
this.absoluteSitePath = path.join(this.repositoryRoot, this.sitePath); | ||
this.aspNet5Version = aspNet5Version; | ||
this.aspNet5Runtime = aspNet5Runtime; | ||
this.aspNet5Architecture = aspNet5Architecture; | ||
this.dnxConsoleAppPath = dnxConsoleAppPath; | ||
this.useMSBuild = useMSBuild; | ||
@@ -134,40 +130,39 @@ this.generators = []; | ||
this.generators[ProjectType.dotNetConsole] = generateDotNetConsoleDeploymentScript; | ||
this.generators[ProjectType.aspNet5] = generateAspNet5DeploymentScript; | ||
this.generators[ProjectType.go] = generateGoDeploymentScript; | ||
this.generators[ProjectType.dnxConsoleApp] = generateDnxConsoleAppDeploymentScript;}; | ||
this.generators[ProjectType.aspNetCore] = generateAspNetCoreDeploymentScript; | ||
this.generators[ProjectType.go] = generateGoDeploymentScript;}; | ||
function generateGoDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateGoDeploymentScript", line: 135 }; return __func(_, this, arguments, generateGoDeploymentScript, 1, __frame, function __$generateGoDeploymentScript() { | ||
function generateGoDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateGoDeploymentScript", line: 130 }; return __func(_, this, arguments, generateGoDeploymentScript, 1, __frame, function __$generateGoDeploymentScript() { | ||
return scriptGenerator.generateGoDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateAspNet5DeploymentScript(scriptGenerator, _) { var __frame = { name: "generateAspNet5DeploymentScript", line: 139 }; return __func(_, this, arguments, generateAspNet5DeploymentScript, 1, __frame, function __$generateAspNet5DeploymentScript() { | ||
return scriptGenerator.generateAspNet5DeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateAspNetCoreDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateAspNetCoreDeploymentScript", line: 134 }; return __func(_, this, arguments, generateAspNetCoreDeploymentScript, 1, __frame, function __$generateAspNetCoreDeploymentScript() { | ||
return scriptGenerator.generateAspNetCoreDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateDnxConsoleAppDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateDnxConsoleAppDeploymentScript", line: 143 }; return __func(_, this, arguments, generateDnxConsoleAppDeploymentScript, 1, __frame, function __$generateDnxConsoleAppDeploymentScript() { | ||
function generateDnxConsoleAppDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateDnxConsoleAppDeploymentScript", line: 138 }; return __func(_, this, arguments, generateDnxConsoleAppDeploymentScript, 1, __frame, function __$generateDnxConsoleAppDeploymentScript() { | ||
return scriptGenerator.generateDnxConsoleAppDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateDotNetConsoleDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateDotNetConsoleDeploymentScript", line: 147 }; return __func(_, this, arguments, generateDotNetConsoleDeploymentScript, 1, __frame, function __$generateDotNetConsoleDeploymentScript() { | ||
function generateDotNetConsoleDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateDotNetConsoleDeploymentScript", line: 142 }; return __func(_, this, arguments, generateDotNetConsoleDeploymentScript, 1, __frame, function __$generateDotNetConsoleDeploymentScript() { | ||
return scriptGenerator.generateDotNetConsoleDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateWapDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateWapDeploymentScript", line: 151 }; return __func(_, this, arguments, generateWapDeploymentScript, 1, __frame, function __$generateWapDeploymentScript() { | ||
function generateWapDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateWapDeploymentScript", line: 146 }; return __func(_, this, arguments, generateWapDeploymentScript, 1, __frame, function __$generateWapDeploymentScript() { | ||
return scriptGenerator.generateWapDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateWebSiteDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateWebSiteDeploymentScript", line: 155 }; return __func(_, this, arguments, generateWebSiteDeploymentScript, 1, __frame, function __$generateWebSiteDeploymentScript() { | ||
function generateWebSiteDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateWebSiteDeploymentScript", line: 150 }; return __func(_, this, arguments, generateWebSiteDeploymentScript, 1, __frame, function __$generateWebSiteDeploymentScript() { | ||
return scriptGenerator.generateWebSiteDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateNodeDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateNodeDeploymentScript", line: 159 }; return __func(_, this, arguments, generateNodeDeploymentScript, 1, __frame, function __$generateNodeDeploymentScript() { | ||
function generateNodeDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateNodeDeploymentScript", line: 154 }; return __func(_, this, arguments, generateNodeDeploymentScript, 1, __frame, function __$generateNodeDeploymentScript() { | ||
return scriptGenerator.generateNodeDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generatePythonDeploymentScript(scriptGenerator, _) { var __frame = { name: "generatePythonDeploymentScript", line: 163 }; return __func(_, this, arguments, generatePythonDeploymentScript, 1, __frame, function __$generatePythonDeploymentScript() { | ||
function generatePythonDeploymentScript(scriptGenerator, _) { var __frame = { name: "generatePythonDeploymentScript", line: 158 }; return __func(_, this, arguments, generatePythonDeploymentScript, 1, __frame, function __$generatePythonDeploymentScript() { | ||
return scriptGenerator.generatePythonDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateBasicWebSiteDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateBasicWebSiteDeploymentScript", line: 167 }; return __func(_, this, arguments, generateBasicWebSiteDeploymentScript, 1, __frame, function __$generateBasicWebSiteDeploymentScript() { | ||
function generateBasicWebSiteDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateBasicWebSiteDeploymentScript", line: 162 }; return __func(_, this, arguments, generateBasicWebSiteDeploymentScript, 1, __frame, function __$generateBasicWebSiteDeploymentScript() { | ||
if (scriptGenerator.solutionPath) { | ||
@@ -179,3 +174,3 @@ return _(new Error("Solution path is not supported with this website type")); } ; | ||
ScriptGenerator.prototype.generateDeploymentScript = function ScriptGenerator_prototype_generateDeploymentScript__1(_) { var generator, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDeploymentScript__1", line: 174 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDeploymentScript__1, 0, __frame, function __$ScriptGenerator_prototype_generateDeploymentScript__1() { | ||
ScriptGenerator.prototype.generateDeploymentScript = function ScriptGenerator_prototype_generateDeploymentScript__1(_) { var generator, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDeploymentScript__1", line: 169 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDeploymentScript__1, 0, __frame, function __$ScriptGenerator_prototype_generateDeploymentScript__1() { | ||
generator = __this.generators[__this.projectType]; | ||
@@ -199,3 +194,3 @@ if (!generator) { | ||
ScriptGenerator.prototype.generateGoDeploymentScript = function ScriptGenerator_prototype_generateGoDeploymentScript__2(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generateGoDeploymentScript__2", line: 193 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateGoDeploymentScript__2, 0, __frame, function __$ScriptGenerator_prototype_generateGoDeploymentScript__2() { | ||
ScriptGenerator.prototype.generateGoDeploymentScript = function ScriptGenerator_prototype_generateGoDeploymentScript__2(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generateGoDeploymentScript__2", line: 188 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateGoDeploymentScript__2, 0, __frame, function __$ScriptGenerator_prototype_generateGoDeploymentScript__2() { | ||
log.info("Generating deployment script for Go Web Site"); | ||
@@ -206,3 +201,3 @@ | ||
ScriptGenerator.prototype.generateNodeDeploymentScript = function ScriptGenerator_prototype_generateNodeDeploymentScript__3(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generateNodeDeploymentScript__3", line: 199 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateNodeDeploymentScript__3, 0, __frame, function __$ScriptGenerator_prototype_generateNodeDeploymentScript__3() { | ||
ScriptGenerator.prototype.generateNodeDeploymentScript = function ScriptGenerator_prototype_generateNodeDeploymentScript__3(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generateNodeDeploymentScript__3", line: 194 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateNodeDeploymentScript__3, 0, __frame, function __$ScriptGenerator_prototype_generateNodeDeploymentScript__3() { | ||
log.info("Generating deployment script for node.js Web Site"); | ||
@@ -213,3 +208,3 @@ | ||
ScriptGenerator.prototype.generatePythonDeploymentScript = function ScriptGenerator_prototype_generatePythonDeploymentScript__4(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generatePythonDeploymentScript__4", line: 205 }; return __func(_, this, arguments, ScriptGenerator_prototype_generatePythonDeploymentScript__4, 0, __frame, function __$ScriptGenerator_prototype_generatePythonDeploymentScript__4() { | ||
ScriptGenerator.prototype.generatePythonDeploymentScript = function ScriptGenerator_prototype_generatePythonDeploymentScript__4(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generatePythonDeploymentScript__4", line: 200 }; return __func(_, this, arguments, ScriptGenerator_prototype_generatePythonDeploymentScript__4, 0, __frame, function __$ScriptGenerator_prototype_generatePythonDeploymentScript__4() { | ||
log.info("Generating deployment script for python Web Site"); | ||
@@ -224,3 +219,3 @@ | ||
ScriptGenerator.prototype.generateWapDeploymentScript = function ScriptGenerator_prototype_generateWapDeploymentScript__5(_) { var msbuildArguments, msbuildArgumentsForInPlace, solutionDir, solutionArgs, options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateWapDeploymentScript__5", line: 215 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateWapDeploymentScript__5, 0, __frame, function __$ScriptGenerator_prototype_generateWapDeploymentScript__5() { | ||
ScriptGenerator.prototype.generateWapDeploymentScript = function ScriptGenerator_prototype_generateWapDeploymentScript__5(_) { var msbuildArguments, msbuildArgumentsForInPlace, solutionDir, solutionArgs, options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateWapDeploymentScript__5", line: 210 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateWapDeploymentScript__5, 0, __frame, function __$ScriptGenerator_prototype_generateWapDeploymentScript__5() { | ||
argNotNull(__this.projectPath, "projectPath"); | ||
@@ -276,22 +271,24 @@ | ||
ScriptGenerator.prototype.generateAspNet5DeploymentScript = function ScriptGenerator_prototype_generateAspNet5DeploymentScript__6(_) { var options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateAspNet5DeploymentScript__6", line: 266 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateAspNet5DeploymentScript__6, 0, __frame, function __$ScriptGenerator_prototype_generateAspNet5DeploymentScript__6() { | ||
ScriptGenerator.prototype.generateAspNetCoreDeploymentScript = function ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__6(_) { var msbuildArguments, options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__6", line: 261 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__6, 0, __frame, function __$ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__6() { | ||
argNotNull(__this.absoluteProjectPath, "absoluteProjectPath"); | ||
if ((__this.scriptType != ScriptType.batch)) { | ||
return _(new Error("Only batch script files are supported for ASP.NET 5 Application")); } ; | ||
return _(new Error("Only batch script files are supported for ASP.NET Core Application")); } ; | ||
log.info("Generating deployment script for ASP.NET 5 Application"); | ||
log.info("Generating deployment script for ASP.NET Core Application"); | ||
msbuildArguments = (("\"%DEPLOYMENT_SOURCE%\\" + __this.solutionPath) + "\" /nologo /verbosity:m /p:deployOnBuild=True;AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false;publishUrl=\"%DEPLOYMENT_TEMP%\""); | ||
msbuildArguments += " %SCM_BUILD_ARGS%"; | ||
options = { | ||
kreProject: __this.absoluteProjectPath, | ||
aspNet5Version: __this.aspNet5Version, | ||
aspNet5Runtime: __this.aspNet5Runtime, | ||
aspNet5Architecture: __this.aspNet5Architecture }; | ||
aspNetCoreProject: __this.absoluteProjectPath, | ||
msbuildArguments: msbuildArguments, | ||
useMSBuild: !!__this.solutionPath }; | ||
return __this.generateKDeploymentScript("deploy.batch.aspnet.5.template", options, __cb(_, __frame, 16, 2, _, true)); });}; | ||
return __this.generateAspNetCoreScript("deploy.batch.aspnet.core.template", options, __cb(_, __frame, 18, 2, _, true)); });}; | ||
ScriptGenerator.prototype.generateDnxConsoleAppDeploymentScript = function ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7(_) { var options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7", line: 285 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7, 0, __frame, function __$ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7() { | ||
ScriptGenerator.prototype.generateDnxConsoleAppDeploymentScript = function ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7(_) { var options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7", line: 282 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7, 0, __frame, function __$ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7() { | ||
if ((__this.scriptType != ScriptType.batch)) { | ||
@@ -310,3 +307,3 @@ return _(new Error("Only batch script files are supported for DNX Console Application")); } ; | ||
ScriptGenerator.prototype.generateDotNetConsoleDeploymentScript = function ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8(_) { var msbuildArguments, solutionDir, solutionArgs, options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8", line: 299 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8, 0, __frame, function __$ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8() { | ||
ScriptGenerator.prototype.generateDotNetConsoleDeploymentScript = function ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8(_) { var msbuildArguments, solutionDir, solutionArgs, options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8", line: 296 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8, 0, __frame, function __$ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8() { | ||
argNotNull(__this.projectPath, "projectPath"); | ||
@@ -356,3 +353,3 @@ | ||
ScriptGenerator.prototype.generateWebSiteDeploymentScript = function ScriptGenerator_prototype_generateWebSiteDeploymentScript__9(_) { var msbuildArguments, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateWebSiteDeploymentScript__9", line: 344 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateWebSiteDeploymentScript__9, 0, __frame, function __$ScriptGenerator_prototype_generateWebSiteDeploymentScript__9() { return (function __$ScriptGenerator_prototype_generateWebSiteDeploymentScript__9(__then) { | ||
ScriptGenerator.prototype.generateWebSiteDeploymentScript = function ScriptGenerator_prototype_generateWebSiteDeploymentScript__9(_) { var msbuildArguments, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateWebSiteDeploymentScript__9", line: 341 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateWebSiteDeploymentScript__9, 0, __frame, function __$ScriptGenerator_prototype_generateWebSiteDeploymentScript__9() { return (function __$ScriptGenerator_prototype_generateWebSiteDeploymentScript__9(__then) { | ||
if (__this.solutionPath) { | ||
@@ -382,3 +379,3 @@ | ||
ScriptGenerator.prototype.generateBasicDeploymentScript = function ScriptGenerator_prototype_generateBasicDeploymentScript__10(templateFileName, _) { var lowerCaseScriptType, fixedSitePath, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateBasicDeploymentScript__10", line: 369 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateBasicDeploymentScript__10, 1, __frame, function __$ScriptGenerator_prototype_generateBasicDeploymentScript__10() { | ||
ScriptGenerator.prototype.generateBasicDeploymentScript = function ScriptGenerator_prototype_generateBasicDeploymentScript__10(templateFileName, _) { var lowerCaseScriptType, fixedSitePath, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateBasicDeploymentScript__10", line: 366 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateBasicDeploymentScript__10, 1, __frame, function __$ScriptGenerator_prototype_generateBasicDeploymentScript__10() { | ||
argNotNull(templateFileName, "templateFileName"); | ||
@@ -397,3 +394,3 @@ | ||
ScriptGenerator.prototype.generateDotNetDeploymentScript = function ScriptGenerator_prototype_generateDotNetDeploymentScript__11(templateFileName, options, _) { var lowerCaseScriptType, solutionDir, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDotNetDeploymentScript__11", line: 383 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDotNetDeploymentScript__11, 2, __frame, function __$ScriptGenerator_prototype_generateDotNetDeploymentScript__11() { | ||
ScriptGenerator.prototype.generateDotNetDeploymentScript = function ScriptGenerator_prototype_generateDotNetDeploymentScript__11(templateFileName, options, _) { var lowerCaseScriptType, solutionDir, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDotNetDeploymentScript__11", line: 380 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDotNetDeploymentScript__11, 2, __frame, function __$ScriptGenerator_prototype_generateDotNetDeploymentScript__11() { | ||
argNotNull(templateFileName, "templateFileName"); | ||
@@ -418,3 +415,3 @@ | ||
ScriptGenerator.prototype.generateKDeploymentScript = function ScriptGenerator_prototype_generateKDeploymentScript__12(templateFileName, options, _) { var templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateKDeploymentScript__12", line: 403 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateKDeploymentScript__12, 2, __frame, function __$ScriptGenerator_prototype_generateKDeploymentScript__12() { | ||
ScriptGenerator.prototype.generateAspNetCoreScript = function ScriptGenerator_prototype_generateAspNetCoreScript__12(templateFileName, options, _) { var templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateAspNetCoreScript__12", line: 400 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateAspNetCoreScript__12, 2, __frame, function __$ScriptGenerator_prototype_generateAspNetCoreScript__12() { | ||
argNotNull(templateFileName, "templateFileName"); | ||
@@ -429,20 +426,7 @@ | ||
templateContent = getTemplatesContent(["deploy.batch.prefix.template","deploy.batch.aspnet.template",templateFileName,"deploy.batch.postfix.template",]).replace(/{PROJECT_JSON}/g, fixPathSeperatorToWindows(options.aspNetCoreProject)).replace(/{USE_MSBUILD}/g, (options.useMSBuild ? "TRUE" : "")).replace(/{MSBuildArguments}/g, options.msbuildArguments); | ||
templateContent = getTemplatesContent(["deploy.batch.prefix.template","deploy.batch.aspnet.template",templateFileName,"deploy.batch.postfix.template",]).replace(/{PROJECT_JSON}/g, fixPathSeperatorToWindows(options.kreProject)).replace(/{ASPNET5_VERSION}/g, options.aspNet5Version).replace(/{ASPNET5_RUNTIME}/g, options.aspNet5Runtime).replace(/{ASPNET5_ARCHITECTURE}/g, options.aspNet5Architecture); | ||
return __this.writeDeploymentFiles(templateContent, __cb(_, __frame, 12, 2, _, true)); });}; | ||
return __this.writeDeploymentFiles(templateContent, __cb(_, __frame, 13, 2, _, true)); });}; | ||
ScriptGenerator.prototype.generateDnxConsoleAppScript = function ScriptGenerator_prototype_generateDnxConsoleAppScript__13(templateFileName, options, _) { var templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDnxConsoleAppScript__13", line: 419 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDnxConsoleAppScript__13, 2, __frame, function __$ScriptGenerator_prototype_generateDnxConsoleAppScript__13() { | ||
argNotNull(templateFileName, "templateFileName"); | ||
templateContent = getTemplatesContent(["deploy.batch.prefix.template",templateFileName,"deploy.batch.postfix.template",]).replace(/{WEBJOB_PROJECT_PATH}/g, fixPathSeperatorToWindows(options.dnxConsoleAppPath)); | ||
return __this.writeDeploymentFiles(templateContent, __cb(_, __frame, 9, 2, _, true)); });}; | ||
function getTemplatesContent(fileNames) { | ||
@@ -476,3 +460,3 @@ var content = ""; | ||
ScriptGenerator.prototype.writeDeploymentFiles = function ScriptGenerator_prototype_writeDeploymentFiles__14(templateContent, _) { var deployScriptFileName, deploymentCommand, deployScriptPath, deploymentFilePath, __this = this; var __frame = { name: "ScriptGenerator_prototype_writeDeploymentFiles__14", line: 459 }; return __func(_, this, arguments, ScriptGenerator_prototype_writeDeploymentFiles__14, 1, __frame, function __$ScriptGenerator_prototype_writeDeploymentFiles__14() { | ||
ScriptGenerator.prototype.writeDeploymentFiles = function ScriptGenerator_prototype_writeDeploymentFiles__13(templateContent, _) { var deployScriptFileName, deploymentCommand, deployScriptPath, deploymentFilePath, __this = this; var __frame = { name: "ScriptGenerator_prototype_writeDeploymentFiles__13", line: 443 }; return __func(_, this, arguments, ScriptGenerator_prototype_writeDeploymentFiles__13, 1, __frame, function __$ScriptGenerator_prototype_writeDeploymentFiles__13() { | ||
argNotNull(templateContent, "templateContent"); | ||
@@ -500,7 +484,7 @@ | ||
return writeContentToFile(deployScriptPath, templateContent, __cb(_, __frame, 23, 2, function __$ScriptGenerator_prototype_writeDeploymentFiles__14() { return (function __$ScriptGenerator_prototype_writeDeploymentFiles__14(__then) { | ||
return writeContentToFile(deployScriptPath, templateContent, __cb(_, __frame, 23, 2, function __$ScriptGenerator_prototype_writeDeploymentFiles__13() { return (function __$ScriptGenerator_prototype_writeDeploymentFiles__13(__then) { | ||
if (!__this.noDotDeployment) { | ||
return writeContentToFile(deploymentFilePath, ("[config]\ncommand = " + deploymentCommand), __cb(_, __frame, 27, 4, __then, true)); } else { __then(); } ; })(function __$ScriptGenerator_prototype_writeDeploymentFiles__14() { | ||
return writeContentToFile(deploymentFilePath, ("[config]\ncommand = " + deploymentCommand), __cb(_, __frame, 27, 4, __then, true)); } else { __then(); } ; })(function __$ScriptGenerator_prototype_writeDeploymentFiles__13() { | ||
@@ -519,3 +503,3 @@ | ||
function writeContentToFile(path, content, _) { var __frame = { name: "writeContentToFile", line: 500 }; return __func(_, this, arguments, writeContentToFile, 2, __frame, function __$writeContentToFile() { return (function __$writeContentToFile(__then) { | ||
function writeContentToFile(path, content, _) { var __frame = { name: "writeContentToFile", line: 484 }; return __func(_, this, arguments, writeContentToFile, 2, __frame, function __$writeContentToFile() { return (function __$writeContentToFile(__then) { | ||
@@ -522,0 +506,0 @@ if (fs.existsSync(path)) { |
{ | ||
"name": "kuduscript", | ||
"author": "Outercurve Foundation", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Tool for generating deployment scripts for Azure Websites", | ||
@@ -6,0 +6,0 @@ "tags": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70115
578