0.1.1 • Published 7 months ago

@mach30/m30pm-lib-common v0.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

m30pm-lib-common

Mach 30 PM common functions library

:toolbox: Functions

:gear: stringToEnumValue

FunctionType
stringToEnumValue<T>(enumObj: Object, value: string) => T or undefined

:wrench: Constants

:gear: DefaultVersion

ConstantType
DefaultVersion"0.0.0"

:gear: DefaultLicense

ConstantType
DefaultLicense"CC0-1.0"

:gear: DefaultWorkspacePath

ConstantType
DefaultWorkspacePath"packages"

:factory: Helpers

Methods

:gear: toJsonString

MethodType
toJsonString(o: Object) => string

:factory: ProjectConfiguration

Methods

:gear: fromJsObject

MethodType
fromJsObject(jsObject: any) => ProjectConfiguration

:gear: isValid

MethodType
isValid() => boolean

:gear: toJsObject

MethodType
toJsObject() => Object

:gear: getProjectStatus

MethodType
getProjectStatus() => Object

:gear: getInitialRcOptions

MethodType
getInitialRcOptions() => any

:factory: BuiltinViews

Methods

:gear: getCommandHistoryLogMdView

MethodType
getCommandHistoryLogMdView() => string

:gear: getCommandHistoryLogQuery

MethodType
getCommandHistoryLogQuery() => string

:gear: getProjectStatusView

MethodType
getProjectStatusView() => string

:gear: getNpmRcFileView

MethodType
getNpmRcFileView() => string

:gear: getYarnRcYamlFileView

MethodType
getYarnRcYamlFileView() => string

:gear: getReadmeQuery

MethodType
getReadmeQuery() => string

:gear: getReadmeView

MethodType
getReadmeView() => string

:gear: getBuildQuery

MethodType
getBuildQuery() => string

:gear: getBuildView

MethodType
getBuildView() => string

:factory: ViewRenderer

Methods

:gear: render

MethodType
render(template: string, context: object, debug?: Boolean) => string

:factory: QueryRunner

Methods

:gear: addParameter

MethodType
addParameter(name: string, value: any) => void

:gear: runQuery

MethodType
runQuery(debug?: Boolean) => string

:nut_and_bolt: Enum

:gear: PackageManagers

PropertyTypeDescription
INVALID_PM'invalid_pm'
NPM'npm'
YARN'yarn'

:gear: VersionControlTools

PropertyTypeDescription
INVALID_VCT'invalid_vct'
GIT'git'

:gear: BuildTools

PropertyTypeDescription
INVALID_BT'invalid_bt'
GRADLE'gradle'

:gear: LogLevels

PropertyTypeDescription
NONE'none'
ERROR'error'
INFO'info'
DEBUG'debug'

:gear: FormattedMessageType

PropertyTypeDescription
NORMAL"normal"
WARNING"warning"
ERROR"error"
0.1.1

7 months ago

0.1.1-alpha.2

7 months ago

0.1.1-alpha.1

7 months ago

0.1.0

8 months ago