Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorthand to load all plop assets #333

Merged
merged 7 commits into from
Apr 27, 2022
Merged

Conversation

crutchcorn
Copy link
Member

This PR was originally made by @RobinKnipe in the node-plop dedicated repo and moved over by hand to me: plopjs/node-plop#187

Currently the load function doesn't include all assets when the includeCfg option is set to true.
The suggested code change should allow a shorthand to include all assets:

plop.load('plopfile', {}, true)

This is a fix for issue: #326

Suggested changes to the plop.load doc here: #243

The links from the include section now link to the `IncludeDefinition` correctly.
Reflects the changes proposed to `node-plop` to allow all target assets to be loaded using:
```js
plop.load('./plopfiles/component.js', {}, true);
```
The `node-plop` PR can be found here: plopjs/node-plop#187
Currently the `load` function doesn't include all assets when the `includeCfg` option is set to `true`, *it doesn't load anything*!
The suggested code change should bring the implementation back into line with the docs: https://github.com/plopjs/plop/blob/master/plop-load.md#interface-includedefinition
Make sure the proposed changes actually work!
@crutchcorn crutchcorn mentioned this pull request Apr 27, 2022
@crutchcorn crutchcorn merged commit 0bba0f2 into master Apr 27, 2022
@crutchcorn crutchcorn deleted the shorthand-load-all-plop-assets branch April 27, 2022 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants