Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "pack/node/listener/npm"

Index

Variables

Const NpmNodeModulesCachePut

NpmNodeModulesCachePut: GoalProjectListenerRegistration = cachePut({entries: [{ classifier: npmNodeModulesCacheClassifier, pattern: { directory: "node_modules" } }],pushTest: IsNode,})

Listener that stores the node_modules directory in the configured cache after a goal invocation.

Const NpmNodeModulesCacheRestore

NpmNodeModulesCacheRestore: GoalProjectListenerRegistration = cacheRestore({entries: [{ classifier: npmNodeModulesCacheClassifier }],onCacheMiss: {name: "cache-miss-npm-install",listener: cachingNpmInstallPreparation,},pushTest: IsNode,})

Listener that restores the node_modules directory from the configured cache before a goal invocation.

Const TypeScriptCompileCachePut

TypeScriptCompileCachePut: GoalProjectListenerRegistration = cachePut({entries: [{classifier: typescriptCompileCacheClassifier,pattern: {globPattern: ["*.{d.ts,js}{,.map}","!(node_modules)/**/*.{d.ts,js}{,.map}","lib/typings/types.ts","git-info.json",],},},],pushTest: IsNode,})

Listener that stores the output from TypeScript compilation in the configured cache after a goal invocation.

Const TypeScriptCompileCacheRestore

TypeScriptCompileCacheRestore: GoalProjectListenerRegistration = cacheRestore({entries: [{ classifier: typescriptCompileCacheClassifier }],onCacheMiss: {name: "cache-miss-typescript-compile",listener: cachingNpmCompilePreparation,},pushTest: IsNode,})

Listener that restores the output from TypeScript compilation from the configured cache before a goal invocation.

Const npmCacheClassifier

npmCacheClassifier: "${repo.owner}/${repo.name}/${sha}" = "${repo.owner}/${repo.name}/${sha}"

Const npmNodeModulesCacheClassifier

npmNodeModulesCacheClassifier: string = `${npmCacheClassifier}/node_modules`

Const typescriptCompileCacheClassifier

typescriptCompileCacheClassifier: string = `${npmCacheClassifier}/ts-compile`

Functions

cachingNpmCompilePreparation

cachingNpmInstallPreparation

npmCompilePreparation

npmInstallPreparation

npmVersionPreparation

Object literals

Const NpmCompileProjectListener

NpmCompileProjectListener: object

Project listener that runs npmCompilePreparation before executing goal.

events

events: before[] = [GoalProjectListenerEvent.before]

listener

listener: npmCompilePreparation = npmCompilePreparation

name

name: string = "npm compile"

pushTest

pushTest: PredicatePushTest = IsNode

Const NpmInstallProjectListener

NpmInstallProjectListener: object

Project listener that runs npmInstallPreparation before executing goal.

events

events: before[] = [GoalProjectListenerEvent.before]

listener

listener: npmInstallPreparation = npmInstallPreparation

name

name: string = "npm install"

pushTest

pushTest: PredicatePushTest = IsNode

Const NpmVersionProjectListener

NpmVersionProjectListener: object

Project listener that runs npmVersionPreparation before executing goal.

events

events: before[] = [GoalProjectListenerEvent.before]

listener

listener: npmVersionPreparation = npmVersionPreparation

name

name: string = "npm version"

pushTest

pushTest: PredicatePushTest = IsNode

Generated using TypeDoc