add gitpod support

This commit is contained in:
Mathieu Schimmerling
2022-04-06 11:44:35 +00:00
parent 179f1bcaac
commit 3c342f2ebc
4 changed files with 22 additions and 2 deletions

View File

@@ -43,14 +43,12 @@ async function main() {
const files = fs.readdirSync(`${sectionDir}/${subSectionDir}/${frameworkDir}`);
for (const file of files) {
const parsedFile = path.parse(file);
function addSnippetWrap(content) {
return `\`\`\`${
FRAMEWORKS.find((f) => f.id === frameworkDir).ext
}\n${content}\n\`\`\`\n\n`;
}
console.log(parsedFile)
const currentFileContent = fs.readFileSync(
`${sectionDir}/${subSectionDir}/${frameworkDir}/${file}`
);