vue3-structure-builder
Version:
`vue3-structure-builder` is a tool that helps developers quickly generate a modular and scalable file structure for Vue 3 projects. By defining a module structure in a `schema.js` file, this tool automatically generates directories, components, pages, sto
1 lines • 895 B
Source Map (JSON)
{"version":3,"file":"index.cjs","sources":["../../src/output-file.js"],"sourcesContent":["import fs from 'fs';\nimport Path from 'path';\nimport { createVueFile } from './midelware/check-type.js';\n// const packageJsonPath = '../../package.json';\n\nexport const ouputSchemaFile = () =>{\n // const packageJsonPath = '../../schema.js';\n const schemaDir = Path.join(process.cwd(), `schema.js`);\n // fs.mkdirSync(schemaDir);\n if (!fs.existsSync(schemaDir)) {\n createVueFile(schemaDir, \"schema\", 'schema' );\n }else{\n console.log(\"schema.js file already exists\");\n }\n\n}\nouputSchemaFile()"],"names":["ouputSchemaFile","schemaDir","Path","join","process","cwd","fs","existsSync","console","log","createVueFile"],"mappings":"+EAKY,MAACA,EAAkB,KAE3B,MAAMC,EAAYC,EAAKC,KAAKC,QAAQC,MAAO,aAEtCC,EAAGC,WAAWN,GAGfO,QAAQC,IAAI,iCAFZC,EAAcT,EAAW,SAAU,SAGtC,EAGLD"}