Skip to content

Commit

Permalink
chore: adding README in the sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-butti committed Apr 11, 2024
1 parent 2fb90cf commit 3000bf3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/commands/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,22 @@ export default class CreateStoryblokAppCommand extends Command {

fs.rmSync(`./temp-started/${framework}/.git`, {recursive: true})

const readmeContent = `
# Storyblok quick starter project
Welcome to this sample project for ${frameworkDetails.name}!
This project serves as a quick starter for integrating Storyblok, a headless CMS, into your web development projects.
For starting, you can access to the \`${folder}\` folder.
In the folder you have some files like:
- \`${frameworkDetails.config}\`: the configuration with Storyblok API;
- \`${frameworkDetails.bridge}\`: the initialization of the Storyblok Bridge.
`
fs.rmSync(`./temp-started/${framework}/README.md`)
fs.writeFileSync(`./temp-started/${framework}/README.md`, readmeContent)

copy(`./temp-started/${framework}`, folder)
directoryTargetCreated = true
fs.rmSync('./temp-started', {recursive: true})
Expand Down

0 comments on commit 3000bf3

Please sign in to comment.