Skip to content

Commit

Permalink
Add: readme generaator for each play
Browse files Browse the repository at this point in the history
  • Loading branch information
hasnainmakada-99 committed Apr 19, 2022
1 parent fe1a962 commit a814534
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions plop-templates/play-readme.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# {{name}}
5 changes: 5 additions & 0 deletions plopfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ module.exports = plop => {
path: 'src/plays/{{generateFolderName name}}/{{pascalCase name}}.jsx',
templateFile: 'plop-templates/component.hbs',
},
{
type: 'add',
path: 'src/plays/{{generateFolderName name}}/Readme.md',
templateFile: 'plop-templates/play-readme.hbs',
},
{
type: 'modify',
path: 'src/plays/index.js',
Expand Down

0 comments on commit a814534

Please sign in to comment.