jsdoc-scribe API/lib/project-factsCurrent
Functions(7)
#readJsonSafe
line 35
Read and JSON-parse a file, returning `fallback` on any error.
ParameterTypeOptionalDescription
filePathstring
fallback*
Returns: *
Signature
readJsonSafe(filePath: any, fallback: any): any
#getNodeVersions
line 50
Node version facts: the package's declared minimum vs. what CI actually tests against. Surfaced separately and explicitly -- not collapsed into one answer -- because they may legitimately differ (see story-dev-onboarding-dashboard AC1).
ParameterTypeOptionalDescription
rootDirstring
Returns: {declaredMin: (string|null), ciTested: number[], matches: boolean}
Signature
getNodeVersions(rootDir: any): any
#getPackageManager
line 76
Which package manager this repo uses, detected from lockfile presence.
ParameterTypeOptionalDescription
rootDirstring
Returns: {manager: string, lockfile: (string|null)}
Signature
getPackageManager(rootDir: any): any
#getGlobalDependencies
line 100
Global (machine-wide) dependencies required to work on this repo. Static, but reasoned from the same repo-state signals as the rest of this module -- zero devDependencies historically meant zero global tooling beyond Node/npm/git; the new code-multivitals devDependency doesn't change that (it's invoked via its programmatic API, never a global install or npx network fetch in CI since `npm ci` already resolves it).
ParameterTypeOptionalDescription
rootDirstring
Returns: {required: string[], conditionallyRequired: string[]}
Signature
getGlobalDependencies(rootDir: any): any
#getProjectStructure
line 115
One-line-per-directory map of the top-level project structure, generated by walking the actual filesystem (not hand-maintained).
ParameterTypeOptionalDescription
rootDirstring
Returns: {name: string, description: string}[]
Signature
getProjectStructure(rootDir: any): any
#getTestInfo
line 138
Test-tooling facts: no framework, hand-rolled runner, no HTTP API.
ParameterTypeOptionalDescription
rootDirstring
Returns: {framework: (string|null), runner: string, suiteCount: (number|null), hasHttpApi: boolean}
Signature
getTestInfo(rootDir: any): any
#getAllFacts
line 160
Compose all onboarding facts into one object for the dashboard renderer.
ParameterTypeOptionalDescription
rootDirstringyes- defaults to process.cwd().
Returns: object
Signature
getAllFacts(rootDir: any): any
Variables & Constants(17)
const fs: any
const
lib/project-facts.js ---------------------------------------- Onboarding-facts generator for the internal project dashboard (Track A, see docs/backlog/adr-phase-j-project-dashboard.md). Every fact is derived by reading the repo's actual current state -- package.json, CI workflow YAML, the real directory tree -- never hand-typed prose that can drift out of sync with reality.
Signature
const fs: any
const path: any
const
Signature
const path: any
#KNOWN_DIR_DESCRIPTIONS
line 16
const KNOWN_DIR_DESCRIPTIONS: Object
const
Signature
const KNOWN_DIR_DESCRIPTIONS: Object
#IGNORE_TOP_LEVEL_DIRS
line 27
const IGNORE_TOP_LEVEL_DIRS: Set
const
Signature
const IGNORE_TOP_LEVEL_DIRS: Set
const pkg: any
const
Signature
const pkg: any
#declaredMin
line 52
const declaredMin: any
const
Signature
const declaredMin: any
#ciTested
line 54
let ciTested: Array
var
Signature
let ciTested: Array
#ciText
line 56
const ciText: any
const
Signature
const ciText: any
const match: any
const
Signature
const match: any
#declaredMinNumber
line 65
const declaredMinNumber: any
const
Signature
const declaredMinNumber: any
#matches
line 66
const matches: any
const
Signature
const matches: any
#candidates
line 77
const candidates: Array
const
Signature
const candidates: Array
#entries
line 116
let entries: any
var
Signature
let entries: any
#suiteCount
line 139
let suiteCount: any
var
Signature
let suiteCount: any
#runnerText
line 141
const runnerText: any
const
Signature
const runnerText: any
#matches
line 142
const matches: any
const
Signature
const matches: any
const dir: any
const
Signature
const dir: any