UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

1 lines 1.34 kB
{"version":3,"file":"setup-config.cjs","sources":["../../../src/cli/commands/setup-config.ts"],"sourcesContent":["import fs from \"fs/promises\";\nimport { configFilePath } from \"../consts\";\nimport type { Config } from \"../utils/get-config\";\n\nexport async function setupConfig() {\n try {\n await fs.access(configFilePath);\n } catch {\n const defaultConfig: Config = {\n $schema: \"https://unpkg.com/flowbite-react/schema.json\",\n components: [],\n dark: true,\n prefix: \"\",\n path: \"src/components\",\n tsx: true,\n rsc: true,\n };\n console.log(`Creating ${configFilePath} file...`);\n await fs.writeFile(configFilePath, JSON.stringify(defaultConfig, null, 2), { flag: \"w\" });\n }\n}\n"],"names":["configFilePath"],"mappings":";;;;;AAGO,eAAe,WAAW,GAAG;AACpC,EAAE,IAAI;AACN,IAAI,MAAM,EAAE,CAAC,MAAM,CAACA,qBAAc,CAAC;AACnC,GAAG,CAAC,MAAM;AACV,IAAI,MAAM,aAAa,GAAG;AAC1B,MAAM,OAAO,EAAE,8CAA8C;AAC7D,MAAM,UAAU,EAAE,EAAE;AACpB,MAAM,IAAI,EAAE,IAAI;AAChB,MAAM,MAAM,EAAE,EAAE;AAChB,MAAM,IAAI,EAAE,gBAAgB;AAC5B,MAAM,GAAG,EAAE,IAAI;AACf,MAAM,GAAG,EAAE;AACX,KAAK;AACL,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,SAAS,EAAEA,qBAAc,CAAC,QAAQ,CAAC,CAAC;AACrD,IAAI,MAAM,EAAE,CAAC,SAAS,CAACA,qBAAc,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;AAC7F;AACA;;;;"}