@apphosting/common
Advanced tools
Comparing version 0.0.2 to 0.0.3-canary.1a99446
@@ -0,1 +1,29 @@ | ||
export interface OutputBundleConfig { | ||
version: "v1"; | ||
serverConfig: ServerConfig; | ||
metadata: Metadata; | ||
} | ||
interface ServerConfig { | ||
runCommand: string; | ||
environmentVariables?: EnvVarConfig[]; | ||
concurrency?: number; | ||
cpu?: number; | ||
memoryMiB?: number; | ||
minInstances?: number; | ||
maxInstances?: number; | ||
} | ||
interface Metadata { | ||
adapterPackageName: string; | ||
adapterVersion: string; | ||
framework: string; | ||
frameworkVersion?: string; | ||
} | ||
interface EnvVarConfig { | ||
variable: string; | ||
value: string; | ||
availability: Availability.Runtime[]; | ||
} | ||
declare enum Availability { | ||
Runtime = 0 | ||
} | ||
export interface BuildOptions { | ||
@@ -14,1 +42,2 @@ buildCommand: string; | ||
export declare function getBuildOptions(): BuildOptions; | ||
export {}; |
@@ -5,2 +5,8 @@ "use strict"; | ||
const child_process_1 = require("child_process"); | ||
// Represents where environment variables are made available | ||
var Availability; | ||
(function (Availability) { | ||
// Runtime environment variables are available on the server when the app is run | ||
Availability[Availability["Runtime"] = 0] = "Runtime"; | ||
})(Availability || (Availability = {})); | ||
exports.DEFAULT_COMMAND = "npm"; | ||
@@ -7,0 +13,0 @@ // Run the build command in a spawned child process. |
{ | ||
"name": "@apphosting/common", | ||
"version": "0.0.2", | ||
"version": "0.0.3-canary.1a99446", | ||
"description": "Shared library code for App Hosting framework adapters", | ||
@@ -5,0 +5,0 @@ "author": { |
4383
102