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

45 code generation add plop scripts #46

Merged
merged 4 commits into from
May 6, 2022

Conversation

psimk
Copy link

@psimk psimk commented Apr 19, 2022

do not merge until #40 is completed

@psimk psimk linked an issue Apr 19, 2022 that may be closed by this pull request
@psimk psimk marked this pull request as draft April 19, 2022 12:39
npm install @pota/plop-scripts @pota/cli --save-dev

# configure the cli package to use plop-scripts
npm pkg set pota="@pota/plop-scripts"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be the only value in the pota field, or could there be more (where this would overwrite the old value)?

An option could be to use an array instead? npm pkg set pota[]="@pota/plop-scripts"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can both be the singular value of the pota field, set as just a string "@pota/plop-scripts" or it can be added on to that field if it is an array.

That setup guide assumes that you are installing @pota/cli for the first time, so you wouldn't have a pota field defined.

docs/scripts/plop.md Outdated Show resolved Hide resolved
@psimk psimk marked this pull request as ready for review May 6, 2022 08:14
@psimk psimk merged commit a7b8c97 into main May 6, 2022
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.

[Code Generation] add plop-scripts
2 participants