Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Shorthand to load all plop assets #187

Closed
wants to merge 2 commits into from

Conversation

RobinKnipe
Copy link
Contributor

@RobinKnipe RobinKnipe commented Sep 25, 2020

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)

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!
@RobinKnipe
Copy link
Contributor Author

This is a fix for issue: plopjs/plop#326

@RobinKnipe RobinKnipe changed the title Honour load method contract WIP: shorthand to load all assets Sep 25, 2020
@RobinKnipe RobinKnipe changed the title WIP: shorthand to load all assets WIP: shorthand to load all plop assets Sep 25, 2020
RobinKnipe added a commit to RobinKnipe/plop that referenced this pull request Sep 26, 2020
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
@RobinKnipe RobinKnipe changed the title WIP: shorthand to load all plop assets Shorthand to load all plop assets Sep 26, 2020
@RobinKnipe
Copy link
Contributor Author

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

@crutchcorn
Copy link
Member

This PR is being closed in favor of one from the new Plop monorepo, since this repo is being archived

plopjs/plop#333

@crutchcorn crutchcorn closed this Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants