Watching this video has given me enough clarity to understand the documentation. A big thanks to you, man. A plop generated file system keeps the architecture of files consistent. Between a documentation created for file structure or a plop generator available to use in a project, which: 1. Is commonly used 2. should be employed across the app lifetime? Any opinions from anyone?
Documentation is the "easier" route. Generators like plop become more common the larger your team and codebase gets. I've used plop in companies like Adobe and Atlassian with large teams to maintain consistency.
Yep! The underlying logic is exposed in a package called node-plop. Here's the link: github.com/plopjs/node-plop And it's referenced in this section of the plop documentation: plopjs.com/documentation/#further-customization
I've never used CookieCutter or Hygen. I would say Yeoman is more for dynamically scaffolding out new projects. For example, an example Yeoman flow might as you to pick JavaScript or TypeScript, what CSS framework to use, and if you want to include testing support or not, then scaffold out that entire project for you. Plop on the other hand is for existing projects, where you want to generate a new component, test, or blog post skeleton quickly. So you can actually use both Yeoman and Plop together! Yeoman would be installed globally on your system, and Plop would be a dependency of your project.
You use Handlebars templates to control what is written into a file. All data collected from the prompts is available as variables in the Handlebars template. Check out this part of the video: ruclips.net/video/NKW65IVwm6k/видео.html If you want more control over how data is written into a file, you can use a Custom Action. plopjs.com/documentation/#custom-action-function-
yaaaaa!! Such a nice addition to an embedded markdown blog!
and definitely interested in the next video!!
It'll drop on Monday or Tuesday of next week!
This is phenomenal. Thank you for the tutorial!!!
Amazing work! I hope many unique things are coming up.
I'll keep posting new stuff as I learn new stuff!
@@bradgarropy 👍
Watching this video has given me enough clarity to understand the documentation.
A big thanks to you, man.
A plop generated file system keeps the architecture of files consistent.
Between a documentation created for file structure or a plop generator available to use in a project, which:
1. Is commonly used
2. should be employed across the app lifetime?
Any opinions from anyone?
Documentation is the "easier" route. Generators like plop become more common the larger your team and codebase gets. I've used plop in companies like Adobe and Atlassian with large teams to maintain consistency.
Great tutorial, Plop.js looks like a real time saver. Thanks for the video!
Can I use plopjs without CLI, just programmatically (no prompt, just json data). Sorry if it's a stupid question.
Yep! The underlying logic is exposed in a package called node-plop. Here's the link:
github.com/plopjs/node-plop
And it's referenced in this section of the plop documentation:
plopjs.com/documentation/#further-customization
@@bradgarropy Thank you so much. You are so awesome! subbed!
Thanks for the video!
nice, thank's))
Great video. Just earned a new subscriber. Keep it up.
Really appreciate the positive feedback! I've got more stuff coming up on Rollup, Svelte, and Netlify Identity!
Always open to suggestions as well.
Great video!
Thank you!!
Yeoman Vs Plop Vs CookieCutter Vs Hygen, which one to choose?
I've never used CookieCutter or Hygen.
I would say Yeoman is more for dynamically scaffolding out new projects. For example, an example Yeoman flow might as you to pick JavaScript or TypeScript, what CSS framework to use, and if you want to include testing support or not, then scaffold out that entire project for you.
Plop on the other hand is for existing projects, where you want to generate a new component, test, or blog post skeleton quickly.
So you can actually use both Yeoman and Plop together! Yeoman would be installed globally on your system, and Plop would be a dependency of your project.
Great stuff, helpful and well made.
How to do logic to control whats written into a file?
You use Handlebars templates to control what is written into a file. All data collected from the prompts is available as variables in the Handlebars template.
Check out this part of the video:
ruclips.net/video/NKW65IVwm6k/видео.html
If you want more control over how data is written into a file, you can use a Custom Action.
plopjs.com/documentation/#custom-action-function-
@@bradgarropy I saw your sequel video right after I commented. I will follow that pattern!! Thanks
How to use plop with react?
plop.gg to find a plop to code with