(content: string)
| 298 | } |
| 299 | |
| 300 | function extractTailwindConfig(content: string): Schema['tailwind'] { |
| 301 | const tailwindConfigRegex = /\/\/ @tailwindConfig: (\{.*\})/; |
| 302 | const match = content.match(tailwindConfigRegex); |
| 303 | if (match) { |
| 304 | try { |
| 305 | return JSON.parse(match[1]); |
| 306 | } catch (error) { |
| 307 | console.warn(`Failed to parse Tailwind config for component: ${error}`); |
| 308 | } |
| 309 | } |
| 310 | return {}; |
| 311 | } |
| 312 | |
| 313 | async function main() { |
| 314 | const easyuiDirectory = path.join(process.cwd(), "components/easyui"); |
no outgoing calls
no test coverage detected