Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/build/npmBuilder"

Index

Variables

Const DevelopmentEnvOptions

DevelopmentEnvOptions: SpawnLogOptions = {env: {...process.env,NODE_ENV: "development",},} as any

Options to use when running node commands like npm run compile that require dev dependencies to be installed

Const NpmInstallProjectListener

NpmInstallProjectListener: GoalProjectListenerRegistration = NodeModulesProjectListener

Const NpmPreparations

NpmPreparations: npmInstallPreparation[] = [npmInstallPreparation, npmVersionPreparation, npmCompilePreparation]

Functions

cacheNodeModules

  • cacheNodeModules(p: GitProject, gi: GoalInvocation, options: object): Promise<void | ExecuteGoalResult>

compress

  • compress(name: string, p: GitProject, gi: GoalInvocation): Promise<SpawnLogResult>

extract

  • extract(name: string, p: GitProject, gi: GoalInvocation): Promise<SpawnLogResult>

hasCompileScriptInPackageJson

  • hasCompileScriptInPackageJson(p: LocalProject): Promise<boolean>

nodeBuilder

  • nodeBuilder(...commands: SpawnLogCommand[]): Builder

npmBuilderOptions

  • npmBuilderOptions(commands: SpawnLogCommand[]): SpawnBuilderOptions

npmBuilderOptionsFromFile

  • npmBuilderOptionsFromFile(commandFile: string): SpawnBuilderOptions

npmCompilePreparation

  • npmCompilePreparation(p: GitProject, goalInvocation: GoalInvocation): Promise<ExecuteGoalResult>

npmInstallPreparation

  • npmInstallPreparation(p: GitProject, goalInvocation: GoalInvocation): Promise<ExecuteGoalResult>

npmInstallProjectListener

  • npmInstallProjectListener(options?: object): GoalProjectListenerRegistration

npmVersionPreparation

  • npmVersionPreparation(p: GitProject, goalInvocation: GoalInvocation): Promise<ExecuteGoalResult>

runInstall

  • runInstall(cmd: string, p: GitProject, gi: GoalInvocation): Promise<SpawnLogResult>

Object literals

Const Install

Install: object

args

args: string[] = ["ci"]

command

command: string = "npm"

options

options: SpawnLogOptions = DevelopmentEnvOptions

Const NodeModulesProjectListener

NodeModulesProjectListener: object

events

events: before[] = [GoalProjectListenerEvent.before]

name

name: string = "npm install"

pushTest

pushTest: PredicatePushTest = IsNode

listener

  • listener(p: GitProject, gi: GoalInvocation): Promise<void | ExecuteGoalResult>

Const NpmCompileProjectListener

NpmCompileProjectListener: object

events

events: before[] = [GoalProjectListenerEvent.before]

name

name: string = "npm compile"

pushTest

pushTest: PredicatePushTest = IsNode

listener

  • listener(p: GitProject, r: GoalInvocation): Promise<void | ExecuteGoalResult>

Const NpmVersionProjectListener

NpmVersionProjectListener: object

name

name: string = "npm version"

pushTest

pushTest: PredicatePushTest = IsNode

listener

  • listener(p: GitProject, r: GoalInvocation, event: GoalProjectListenerEvent): Promise<void | ExecuteGoalResult>
  • Parameters

    • p: GitProject
    • r: GoalInvocation
    • event: GoalProjectListenerEvent

    Returns Promise<void | ExecuteGoalResult>

Generated using TypeDoc