@poupe/vue
Version:
Vue component library for Poupe UI framework with theme customization and accessibility support
1 lines • 1.23 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/config/index.ts"],"sourcesContent":["import { fileURLToPath } from 'node:url';\n\nimport ScrollbarPlugin from 'tailwind-scrollbar';\n\n/** @returns array of required third-party tailwind plugins */\nexport const tailwindPlugins = [\n ScrollbarPlugin,\n];\n\n/**\n * @returns the `@poupe/vue` `dist/` directory that `contentGlobs()` scans.\n * `..` against the module URL skips two segments at once\n * (`index.mjs` + the per-subpath folder) — obuild emits this file at\n * `dist/config/index.mjs`, so `..` lands on `dist/`. `fileURLToPath`\n * keeps the path portable on Windows.\n */\nexport const contentPath = (): string =>\n fileURLToPath(new URL('..', import.meta.url));\n\n/** audiences whose bundled outputs contain template CSS classes */\nconst contentEntries = [\n 'components',\n 'theme-scheme',\n] as const;\n\n/** @returns the glob patterns needed by tailwindcss to scan classes */\nexport const contentGlobs = (): string[] => {\n const path = contentPath();\n return contentEntries.map((entry) => `${path}/${entry}/index.{mjs,css}`);\n};\n"],"mappings":";;AAKA,MAAa,kBAAkB,CAC7B,eACF;;;;;CASA,OAAa,eAAA,KACX,UAAA,GAAc,KAAI,GAAI,MAAM,iBAAgB"}