const main = async () => { for (let i = 0; i < tables.length; i++) { const data = await db.select().from(tables[i]); const yaml = YAML.stringify(data); await fs.writeFile(path.join(__dirname, 'seeds', 'data', `${tables[i]}.yml`), yaml); } db.destroy(); }
YAML.stringify(sorted)
fs.writeFileSync('./nitroApi/nitro-schema.yaml',yaml.stringify(obj),'utf8');
name: YAML.stringify({'projectName':this.answers.projectName}), type: YAML.stringify({'type':this.answers.projectType}), slug: YAML.stringify({'slug':(this.answers.projectType === 'plugins') ? projectNameSlug + '/' + projectNameSlug + '.php' : projectNameSlug}), wpInstall: YAML.stringify({'wpInstall':this.answers.wpInstall})
fs.writeFileSync(projectDockerComposeFile, comment+YAML.stringify(dockerComposeSettings)) } catch (err) { this.error('Could not create docker-compose file')