Releases: plopjs/plop
Releases · plopjs/plop
Grab Bag of Fun and Fixes
add
andaddMany
now support binary files. Binary files will be copied to the destination folder, but not processed by handlebars.pattern
attribute ofappend
action is now optional. If not supplied, the template will be appended to the end of the file.- The
data
property of theActionConfig
interface can now be a function that returns an Object or a Promise that resolves with an Object.
Fixes
- Answer data can once again be changed from within an action function
- Prompt validate functions now run against
bypass
data
Everyone likes new stuff
Major version changed due to inquirer.js changing its node version requirements. Plop 2.x now requires Node 8.9.4 or greater. There should be no breaking changes in the API itself.
- added optional
data
property for all actions that can be used in the template - added
force
option for all actions with CLI ability to run actions forcibly - added
skipIfExists
option foradd
andaddMany
actions - added
append
action (similar to modify)
Offramp
- Added new prompt bypass support
- Added new custom welcome message support via (setWelcomeMessage)
- Added support for handlebar templates for the templateFile prop of
add
andaddMany
actions - Fixed defect in
addMany
action on Windows
Big thanks to @nicoespeon and @tsur for their help with this release!
addMany bugfix
the addMany action was choking on a globby array, now it does not 🙂
Custom (and 3rd party) Action Support
- support for creating your own custom actions
- new built-in action (
addMany
) - support for inquirer hierarchical prompts
- better
--help
screen
Big thanks to @nicoespeon and @filipemir for their help in getting this together.
Fixes For plop.load
v1.7.4
node-plop hotfix
Node 4 babel compatibility hotfix added in node-plop
Defective Package
- fixed pkg helper functionality
- explicitly set plopfilePath to
process.cwd()
if it's not provided
Release Defect Cleanup
- fixes a defect with path resolution on Windows
- fixes syntax error on older versions of node
Fully Loaded
Added plop.load feature 💥