UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

1 lines 994 B
{"version":3,"file":"setup-class-list.cjs","sources":["../../../src/cli/commands/setup-class-list.ts"],"sourcesContent":["import fs from \"fs/promises\";\nimport { classListFilePath } from \"../consts\";\n\n/**\n * Sets up the `.flowbite-react/class-list.json` file in the project.\n *\n * This function checks if the `.flowbite-react/class-list.json` file exists and creates it if it does not.\n */\nexport async function setupClassList() {\n try {\n await fs.access(classListFilePath);\n } catch {\n console.log(`Creating ${classListFilePath} file...`);\n await fs.writeFile(classListFilePath, JSON.stringify([], null, 2));\n }\n}\n"],"names":["classListFilePath"],"mappings":";;;;;AAGO,eAAe,cAAc,GAAG;AACvC,EAAE,IAAI;AACN,IAAI,MAAM,EAAE,CAAC,MAAM,CAACA,wBAAiB,CAAC;AACtC,GAAG,CAAC,MAAM;AACV,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,SAAS,EAAEA,wBAAiB,CAAC,QAAQ,CAAC,CAAC;AACxD,IAAI,MAAM,EAAE,CAAC,SAAS,CAACA,wBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACtE;AACA;;;;"}