Example #1
0
 protected override void ApplyScaffoldingChanges(CloudRuntimePackage package)
 {
     JavaScriptPackageHelpers.EnsurePackageJsonExists(this.FilePath, this.RoleName);
     JavaScriptPackageHelpers.TrySetEngineVersion(this.FilePath, GetEngineKey(), package.Version);
 }
Example #2
0
 protected virtual bool TryGetVersionFromPackageJson(string engineKey, out string version)
 {
     version = null;
     JavaScriptPackageHelpers.EnsurePackageJsonExists(this.FilePath, this.RoleName);
     return(JavaScriptPackageHelpers.TryGetEngineVersion(this.FilePath, engineKey, out version));
 }