Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/vue-detector.ts
Vue Detector
Methods
| Method | Signature | Returns |
|---|---|---|
detect | detect(entities: Entity[]) | DetectedVueComponent[] |
getComponentSummary | getComponentSummary(component: DetectedVueComponent) | string |
Where it refuses work
VueDetectorstops the work with an early return whenfilePath.endsWith('.vue').VueDetectorstops the work with an early return when/defineComponent\s*\(/.test(code).VueDetectorstops the work with an early return when/from\s+['"]vue['"]/.test(code).VueDetectorstops the work with an early return when/<script\s+setup/.test(code).VueDetectorstops the work with an early return when/setup\s*\(\s*(?:props|context)?\s*\)\s*\{/.test(code).VueDetectorstops the work with an early return when/data\s*\(\s*\)\s*\{[\s\S]*return\s*\{/.test(code) || /methods\s*:\s*\{/.test(code).
Was this page helpful?