Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Packager<T>

Generate a ZIP Package of the application

It can add a file as entrypoint

param

path to store the package

param

file to integrate as entrypoint.js

Type parameters

Hierarchy

Constructors

Properties

_defaulted: boolean = false
app: Application
logger: Logger
name: string
now: number
packageDescription: any
packagesGenerated: object

Type declaration

  • [key: string]: boolean
parameters: any
resources: T
type: string

Methods

  • addLinkPackage(archive: any, fromPath: string, toPath: string): void
  • Add a symbolic linked package from dependency

    Parameters

    • archive: any

      to add to

    • fromPath: string

      absolutePath of package

    • toPath: string

      relative path within archive

    Returns void

  • defaultResources(): Promise<void>
  • deploy(): Promise<any>
  • execute(command: string, stdin?: string, resolveOnError?: boolean, logLevel?: WorkerLogLevel): Promise<object>
  • getApplication(): Application
  • getPackagedConfiguration(): Configuration
  • loadDefaults(): Promise<void>
  • replaceResourcesVariables(): void
  • replaceVariables(obj: any): any
  • setName(name: string): void
  • setType(type: string): void
  • getDependencies(pkg: string): object
  • getPackageLastChanges(pkg: string, includeWorkspace?: boolean): string
  • getResolvedDependencies(pkg: string): object
  • getWorkspacesPackages(dir?: string): string[]
  • getWorkspacesRoot(dir?: string): string
  • loadPackageInfo(dir: any): any

Generated using TypeDoc