kuduscript
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -18,2 +18,3 @@ var commander = require('commander'); | ||
.option('--python', 'Create a deployment script for python website') | ||
.option('--functionApp', 'Create a deployment script for function App') | ||
.option('--basic', 'Create a deployment script for any other website') | ||
@@ -40,3 +41,3 @@ .option('--dotNetConsole <projectFilePath>', 'Create a deployment script for .NET console application, specify the project file path') | ||
var exclusionFlags = [options.aspWAP, options.php, options.python, options.aspWebSite, options.node, options.basic, options.dotNetConsole, options.aspNetCore, options.go]; | ||
var exclusionFlags = [options.aspWAP, options.php, options.python, options.aspWebSite, options.node, options.basic, options.functionApp, options.dotNetConsole, options.aspNetCore, options.go]; | ||
var flagCount = 0; | ||
@@ -52,6 +53,6 @@ for (var i in exclusionFlags) { | ||
log.help(''); | ||
log.help('Please specify one of these flags: --aspWAP, --aspNetCore, --aspWebSite, --php, --python, --dotNetConsole, --basic or --node'); | ||
log.help('Please specify one of these flags: --aspWAP, --aspNetCore, --aspWebSite, --php, --python, --dotNetConsole, --basic, --functionApp or --node'); | ||
return; | ||
} else if (flagCount > 1) { | ||
throw new Error('Please specify only one of these flags: --aspWAP, --aspNetCore, --aspWebSite, --php, --python, --dotNetConsole, --basic or --node'); | ||
throw new Error('Please specify only one of these flags: --aspWAP, --aspNetCore, --aspWebSite, --php, --python, --dotNetConsole, --basic, --functionApp or --node'); | ||
} | ||
@@ -74,2 +75,4 @@ | ||
projectType = generator.ProjectType.dotNetConsole; | ||
} else if (options.functionApp) { | ||
projectType = generator.ProjectType.functionApp; | ||
} else { | ||
@@ -76,0 +79,0 @@ projectType = generator.ProjectType.basic; |
@@ -43,2 +43,3 @@ /*** 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"); | ||
basic: "BASIC", | ||
functionApp: "FUNCTIONAPP", | ||
dotNetConsole: "DOT_NET_CONSOLE", | ||
@@ -126,2 +127,3 @@ aspNetCore: "ASP_NET_CORE", | ||
this.generators[ProjectType.basic] = generateBasicWebSiteDeploymentScript; | ||
this.generators[ProjectType.functionApp] = generateFunctionAppDeploymentScript; | ||
this.generators[ProjectType.dotNetConsole] = generateDotNetConsoleDeploymentScript; | ||
@@ -132,35 +134,35 @@ this.generators[ProjectType.aspNetCore] = generateAspNetCoreDeploymentScript; | ||
function generateGoDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateGoDeploymentScript", line: 130 }; return __func(_, this, arguments, generateGoDeploymentScript, 1, __frame, function __$generateGoDeploymentScript() { | ||
function generateGoDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateGoDeploymentScript", line: 132 }; return __func(_, this, arguments, generateGoDeploymentScript, 1, __frame, function __$generateGoDeploymentScript() { | ||
return scriptGenerator.generateGoDeploymentScript(__cb(_, __frame, 1, 2, _, true)); });}; | ||
function generateAspNetCoreDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateAspNetCoreDeploymentScript", line: 134 }; return __func(_, this, arguments, generateAspNetCoreDeploymentScript, 1, __frame, function __$generateAspNetCoreDeploymentScript() { | ||
function generateAspNetCoreDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateAspNetCoreDeploymentScript", line: 136 }; 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: 138 }; return __func(_, this, arguments, generateDnxConsoleAppDeploymentScript, 1, __frame, function __$generateDnxConsoleAppDeploymentScript() { | ||
function generateDnxConsoleAppDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateDnxConsoleAppDeploymentScript", line: 140 }; 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: 142 }; return __func(_, this, arguments, generateDotNetConsoleDeploymentScript, 1, __frame, function __$generateDotNetConsoleDeploymentScript() { | ||
function generateDotNetConsoleDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateDotNetConsoleDeploymentScript", line: 144 }; 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: 146 }; return __func(_, this, arguments, generateWapDeploymentScript, 1, __frame, function __$generateWapDeploymentScript() { | ||
function generateWapDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateWapDeploymentScript", line: 148 }; 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: 150 }; return __func(_, this, arguments, generateWebSiteDeploymentScript, 1, __frame, function __$generateWebSiteDeploymentScript() { | ||
function generateWebSiteDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateWebSiteDeploymentScript", line: 152 }; 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: 154 }; return __func(_, this, arguments, generateNodeDeploymentScript, 1, __frame, function __$generateNodeDeploymentScript() { | ||
function generateNodeDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateNodeDeploymentScript", line: 156 }; 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: 158 }; return __func(_, this, arguments, generatePythonDeploymentScript, 1, __frame, function __$generatePythonDeploymentScript() { | ||
function generatePythonDeploymentScript(scriptGenerator, _) { var __frame = { name: "generatePythonDeploymentScript", line: 160 }; 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: 162 }; return __func(_, this, arguments, generateBasicWebSiteDeploymentScript, 1, __frame, function __$generateBasicWebSiteDeploymentScript() { | ||
function generateBasicWebSiteDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateBasicWebSiteDeploymentScript", line: 164 }; return __func(_, this, arguments, generateBasicWebSiteDeploymentScript, 1, __frame, function __$generateBasicWebSiteDeploymentScript() { | ||
if (scriptGenerator.solutionPath) { | ||
@@ -172,3 +174,7 @@ 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: 169 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDeploymentScript__1, 0, __frame, function __$ScriptGenerator_prototype_generateDeploymentScript__1() { | ||
function generateFunctionAppDeploymentScript(scriptGenerator, _) { var __frame = { name: "generateFunctionAppDeploymentScript", line: 171 }; return __func(_, this, arguments, generateFunctionAppDeploymentScript, 1, __frame, function __$generateFunctionAppDeploymentScript() { | ||
return scriptGenerator.generateFunctionAppDeploymentScript(__cb(_, __frame, 1, 4, _, true)); });}; | ||
ScriptGenerator.prototype.generateDeploymentScript = function ScriptGenerator_prototype_generateDeploymentScript__1(_) { var generator, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDeploymentScript__1", line: 175 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDeploymentScript__1, 0, __frame, function __$ScriptGenerator_prototype_generateDeploymentScript__1() { | ||
generator = __this.generators[__this.projectType]; | ||
@@ -192,3 +198,3 @@ if (!generator) { | ||
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() { | ||
ScriptGenerator.prototype.generateGoDeploymentScript = function ScriptGenerator_prototype_generateGoDeploymentScript__2(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generateGoDeploymentScript__2", line: 194 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateGoDeploymentScript__2, 0, __frame, function __$ScriptGenerator_prototype_generateGoDeploymentScript__2() { | ||
log.info("Generating deployment script for Go Web Site"); | ||
@@ -199,3 +205,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() { | ||
ScriptGenerator.prototype.generateNodeDeploymentScript = function ScriptGenerator_prototype_generateNodeDeploymentScript__3(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generateNodeDeploymentScript__3", line: 200 }; 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"); | ||
@@ -206,3 +212,9 @@ | ||
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() { | ||
ScriptGenerator.prototype.generateFunctionAppDeploymentScript = function ScriptGenerator_prototype_generateFunctionAppDeploymentScript__4(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generateFunctionAppDeploymentScript__4", line: 206 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateFunctionAppDeploymentScript__4, 0, __frame, function __$ScriptGenerator_prototype_generateFunctionAppDeploymentScript__4() { | ||
log.info("Generating deployment script for function App"); | ||
return __this.generateBasicDeploymentScript("functionApp.template", __cb(_, __frame, 3, 4, _, true)); });}; | ||
ScriptGenerator.prototype.generatePythonDeploymentScript = function ScriptGenerator_prototype_generatePythonDeploymentScript__5(_) { var __this = this; var __frame = { name: "ScriptGenerator_prototype_generatePythonDeploymentScript__5", line: 212 }; return __func(_, this, arguments, ScriptGenerator_prototype_generatePythonDeploymentScript__5, 0, __frame, function __$ScriptGenerator_prototype_generatePythonDeploymentScript__5() { | ||
log.info("Generating deployment script for python Web Site"); | ||
@@ -217,3 +229,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: 210 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateWapDeploymentScript__5, 0, __frame, function __$ScriptGenerator_prototype_generateWapDeploymentScript__5() { | ||
ScriptGenerator.prototype.generateWapDeploymentScript = function ScriptGenerator_prototype_generateWapDeploymentScript__6(_) { var msbuildArguments, msbuildArgumentsForInPlace, solutionDir, solutionArgs, options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateWapDeploymentScript__6", line: 222 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateWapDeploymentScript__6, 0, __frame, function __$ScriptGenerator_prototype_generateWapDeploymentScript__6() { | ||
argNotNull(__this.projectPath, "projectPath"); | ||
@@ -269,35 +281,50 @@ | ||
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() { | ||
ScriptGenerator.prototype.generateAspNetCoreDeploymentScript = function ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__7(_) { var files, webProjFiles, relativeXprojPath, msbuildArguments, dotnetpublishArguments, options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__7", line: 273 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__7, 0, __frame, function __$ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__7() { | ||
argNotNull(__this.absoluteProjectPath, "absoluteProjectPath"); | ||
if (((__this.scriptType != ScriptType.batch) && (__this.scriptType != ScriptType.posh))) { | ||
return _(new Error("Only batch and posh script files are supported for ASP.NET Core Application")); } ; | ||
return _(new Error("Only batch and posh script files are supported for ASP.NET Core Application")); } ; return (function __$ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__7(__then) { | ||
log.info("Generating deployment script for ASP.NET Core Application"); | ||
if (__this.solutionPath) { | ||
log.info("solution file provided, look for .xproj and use msbuild template"); | ||
files = fs.readdirSync(__this.absoluteProjectPath); | ||
webProjFiles = files.filter(function(file) { | ||
return file.endsWith(".xproj"); }); | ||
if ((webProjFiles.length != 1)) { | ||
return _(new Error(((("Expecting one xproj files but found " + webProjFiles.length) + " under") + __this.absoluteProjectPath))); } ; | ||
if ((__this.scriptType == ScriptType.batch)) { | ||
msbuildArguments = (("\"%DEPLOYMENT_SOURCE%\\" + __this.solutionPath) + "\" /nologo /verbosity:m /p:deployOnBuild=True;AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false;publishUrl=\"%DEPLOYMENT_TEMP%\""); | ||
msbuildArguments += " %SCM_BUILD_ARGS%"; } | ||
else { | ||
msbuildArguments = (("\"$DEPLOYMENT_SOURCE\\" + __this.solutionPath) + "\" /nologo /verbosity:m /p:deployOnBuild=True`;AutoParameterizationWebConfigConnectionStrings=false`;Configuration=Release`;UseSharedCompilation=false`;publishUrl=\"$DEPLOYMENT_TEMP\""); | ||
msbuildArguments += " $SCM_BUILD_ARGS"; } ; | ||
relativeXprojPath = path.relative(__this.repositoryRoot, path.join(__this.absoluteProjectPath, webProjFiles[0])); | ||
log.info((("Xproj file path: ." + path.sep) + relativeXprojPath)); | ||
options = { | ||
aspNetCoreProject: __this.absoluteProjectPath, | ||
msbuildArguments: msbuildArguments, | ||
solutionPath: __this.solutionPath }; return (function __$ScriptGenerator_prototype_generateAspNetCoreDeploymentScript__6(__then) { | ||
if (__this.solutionPath) { | ||
return __this.generateAspNetCoreScript("aspnet.core.msbuild.template", options, __cb(_, __frame, 26, 4, __then, true)); } else { | ||
if ((__this.scriptType == ScriptType.batch)) { | ||
msbuildArguments = (("\"%DEPLOYMENT_SOURCE%\\" + __this.solutionPath) + "\" /nologo /verbosity:m /p:AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false"); | ||
msbuildArguments += " %SCM_BUILD_ARGS%"; | ||
dotnetpublishArguments = (("\"%DEPLOYMENT_SOURCE%\\" + relativeXprojPath) + "\" /nologo /verbosity:m /t:GatherAllFilesToPublish /p:AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false;PublishOutputPathNoTrailingSlash=\"%DEPLOYMENT_TEMP%\""); | ||
dotnetpublishArguments += " %SCM_BUILD_ARGS%"; } | ||
else { | ||
msbuildArguments = (("\"$DEPLOYMENT_SOURCE\\" + __this.solutionPath) + "\" /nologo /verbosity:m /p:AutoParameterizationWebConfigConnectionStrings=false`;Configuration=Release`;UseSharedCompilation=false`"); | ||
msbuildArguments += " $SCM_BUILD_ARGS"; | ||
dotnetpublishArguments = (("\"$DEPLOYMENT_SOURCE\\" + relativeXprojPath) + "\" /nologo /verbosity:m /t:GatherAllFilesToPublish /p:AutoParameterizationWebConfigConnectionStrings=false`;Configuration=Release`;UseSharedCompilation=false`;PublishOutputPathNoTrailingSlash=\"$DEPLOYMENT_TEMP\""); | ||
dotnetpublishArguments += " $SCM_BUILD_ARGS"; } ; | ||
return __this.generateAspNetCoreScript("aspnet.core.template", options, __cb(_, __frame, 28, 4, __then, true)); } ; })(_); });}; | ||
options = { | ||
msbuildArguments: msbuildArguments, | ||
dotnetpublishArguments: dotnetpublishArguments, | ||
solutionPath: __this.solutionPath }; | ||
ScriptGenerator.prototype.generateDnxConsoleAppDeploymentScript = function ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7(_) { var options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7", line: 293 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7, 0, __frame, function __$ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__7() { | ||
return __this.generateAspNetCoreScript("aspnet.core.msbuild.template", options, __cb(_, __frame, 41, 4, __then, true)); } else { | ||
return __this.generateAspNetCoreScript("aspnet.core.template", { aspNetCoreProject: __this.absoluteProjectPath }, __cb(_, __frame, 43, 4, __then, true)); } ; })(_); });}; | ||
ScriptGenerator.prototype.generateDnxConsoleAppDeploymentScript = function ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__8(_) { var options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__8", line: 320 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__8, 0, __frame, function __$ScriptGenerator_prototype_generateDnxConsoleAppDeploymentScript__8() { | ||
if ((__this.scriptType != ScriptType.batch)) { | ||
@@ -316,3 +343,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: 307 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8, 0, __frame, function __$ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__8() { | ||
ScriptGenerator.prototype.generateDotNetConsoleDeploymentScript = function ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__9(_) { var msbuildArguments, solutionDir, solutionArgs, options, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__9", line: 334 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__9, 0, __frame, function __$ScriptGenerator_prototype_generateDotNetConsoleDeploymentScript__9() { | ||
argNotNull(__this.projectPath, "projectPath"); | ||
@@ -362,3 +389,3 @@ | ||
ScriptGenerator.prototype.generateWebSiteDeploymentScript = function ScriptGenerator_prototype_generateWebSiteDeploymentScript__9(_) { var msbuildArguments, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateWebSiteDeploymentScript__9", line: 352 }; 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__10(_) { var msbuildArguments, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateWebSiteDeploymentScript__10", line: 379 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateWebSiteDeploymentScript__10, 0, __frame, function __$ScriptGenerator_prototype_generateWebSiteDeploymentScript__10() { return (function __$ScriptGenerator_prototype_generateWebSiteDeploymentScript__10(__then) { | ||
if (__this.solutionPath) { | ||
@@ -388,3 +415,3 @@ | ||
ScriptGenerator.prototype.generateBasicDeploymentScript = function ScriptGenerator_prototype_generateBasicDeploymentScript__10(templateFileName, _) { var lowerCaseScriptType, fixedSitePath, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateBasicDeploymentScript__10", line: 377 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateBasicDeploymentScript__10, 1, __frame, function __$ScriptGenerator_prototype_generateBasicDeploymentScript__10() { | ||
ScriptGenerator.prototype.generateBasicDeploymentScript = function ScriptGenerator_prototype_generateBasicDeploymentScript__11(templateFileName, _) { var lowerCaseScriptType, fixedSitePath, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateBasicDeploymentScript__11", line: 404 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateBasicDeploymentScript__11, 1, __frame, function __$ScriptGenerator_prototype_generateBasicDeploymentScript__11() { | ||
argNotNull(templateFileName, "templateFileName"); | ||
@@ -403,3 +430,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: 391 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDotNetDeploymentScript__11, 2, __frame, function __$ScriptGenerator_prototype_generateDotNetDeploymentScript__11() { | ||
ScriptGenerator.prototype.generateDotNetDeploymentScript = function ScriptGenerator_prototype_generateDotNetDeploymentScript__12(templateFileName, options, _) { var lowerCaseScriptType, solutionDir, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateDotNetDeploymentScript__12", line: 418 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateDotNetDeploymentScript__12, 2, __frame, function __$ScriptGenerator_prototype_generateDotNetDeploymentScript__12() { | ||
argNotNull(templateFileName, "templateFileName"); | ||
@@ -424,3 +451,3 @@ | ||
ScriptGenerator.prototype.generateAspNetCoreScript = function ScriptGenerator_prototype_generateAspNetCoreScript__12(templateFileName, options, _) { var lowerCaseScriptType, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateAspNetCoreScript__12", line: 411 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateAspNetCoreScript__12, 2, __frame, function __$ScriptGenerator_prototype_generateAspNetCoreScript__12() { | ||
ScriptGenerator.prototype.generateAspNetCoreScript = function ScriptGenerator_prototype_generateAspNetCoreScript__13(templateFileName, options, _) { var lowerCaseScriptType, templateContent, __this = this; var __frame = { name: "ScriptGenerator_prototype_generateAspNetCoreScript__13", line: 438 }; return __func(_, this, arguments, ScriptGenerator_prototype_generateAspNetCoreScript__13, 2, __frame, function __$ScriptGenerator_prototype_generateAspNetCoreScript__13() { | ||
argNotNull(templateFileName, "templateFileName"); | ||
@@ -436,7 +463,8 @@ | ||
templateContent = getTemplatesContent([(("deploy." + lowerCaseScriptType) + ".prefix.template"),(("deploy." + lowerCaseScriptType) + ".aspnet.template"),((("deploy." + lowerCaseScriptType) + ".") + templateFileName),(("deploy." + lowerCaseScriptType) + ".postfix.template"),]).replace(/{PROJECT_JSON}/g, fixPathSeperatorToWindows(options.aspNetCoreProject)).replace(/{SolutionPath}/g, options.solutionPath).replace(/{MSBuildArguments}/g, options.msbuildArguments); | ||
return __this.writeDeploymentFiles(templateContent, __cb(_, __frame, 13, 2, _, true)); });}; | ||
templateContent = getTemplatesContent([(("deploy." + lowerCaseScriptType) + ".prefix.template"),(("deploy." + lowerCaseScriptType) + ".aspnet.template"),((("deploy." + lowerCaseScriptType) + ".") + templateFileName),(("deploy." + lowerCaseScriptType) + ".postfix.template"),]).replace(/{PROJECT_JSON}/g, fixPathSeperatorToWindows(options.aspNetCoreProject)).replace(/{SolutionPath}/g, options.solutionPath).replace(/{MSBuildArguments}/g, options.msbuildArguments).replace(/{DotNetPublishArguments}/g, options.dotnetpublishArguments); | ||
return __this.writeDeploymentFiles(templateContent, __cb(_, __frame, 14, 2, _, true)); });}; | ||
function getTemplatesContent(fileNames) { | ||
@@ -470,3 +498,3 @@ var content = ""; | ||
ScriptGenerator.prototype.writeDeploymentFiles = function ScriptGenerator_prototype_writeDeploymentFiles__13(templateContent, _) { var deployScriptFileName, deploymentCommand, deployScriptPath, deploymentFilePath, __this = this; var __frame = { name: "ScriptGenerator_prototype_writeDeploymentFiles__13", line: 455 }; return __func(_, this, arguments, ScriptGenerator_prototype_writeDeploymentFiles__13, 1, __frame, function __$ScriptGenerator_prototype_writeDeploymentFiles__13() { | ||
ScriptGenerator.prototype.writeDeploymentFiles = function ScriptGenerator_prototype_writeDeploymentFiles__14(templateContent, _) { var deployScriptFileName, deploymentCommand, deployScriptPath, deploymentFilePath, __this = this; var __frame = { name: "ScriptGenerator_prototype_writeDeploymentFiles__14", line: 483 }; return __func(_, this, arguments, ScriptGenerator_prototype_writeDeploymentFiles__14, 1, __frame, function __$ScriptGenerator_prototype_writeDeploymentFiles__14() { | ||
argNotNull(templateContent, "templateContent"); | ||
@@ -494,7 +522,7 @@ | ||
return writeContentToFile(deployScriptPath, templateContent, __cb(_, __frame, 23, 2, function __$ScriptGenerator_prototype_writeDeploymentFiles__13() { return (function __$ScriptGenerator_prototype_writeDeploymentFiles__13(__then) { | ||
return writeContentToFile(deployScriptPath, templateContent, __cb(_, __frame, 23, 2, function __$ScriptGenerator_prototype_writeDeploymentFiles__14() { return (function __$ScriptGenerator_prototype_writeDeploymentFiles__14(__then) { | ||
if (!__this.noDotDeployment) { | ||
return writeContentToFile(deploymentFilePath, ("[config]\ncommand = " + deploymentCommand), __cb(_, __frame, 27, 4, __then, true)); } else { __then(); } ; })(function __$ScriptGenerator_prototype_writeDeploymentFiles__13() { | ||
return writeContentToFile(deploymentFilePath, ("[config]\ncommand = " + deploymentCommand), __cb(_, __frame, 27, 4, __then, true)); } else { __then(); } ; })(function __$ScriptGenerator_prototype_writeDeploymentFiles__14() { | ||
@@ -513,3 +541,3 @@ | ||
function writeContentToFile(path, content, _) { var __frame = { name: "writeContentToFile", line: 496 }; return __func(_, this, arguments, writeContentToFile, 2, __frame, function __$writeContentToFile() { return (function __$writeContentToFile(__then) { | ||
function writeContentToFile(path, content, _) { var __frame = { name: "writeContentToFile", line: 524 }; return __func(_, this, arguments, writeContentToFile, 2, __frame, function __$writeContentToFile() { return (function __$writeContentToFile(__then) { | ||
@@ -516,0 +544,0 @@ if (fs.existsSync(path)) { |
{ | ||
"name": "kuduscript", | ||
"author": "Outercurve Foundation", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"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
77143
37
609