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

Add module scaffold script to larva binary #190

Open
laras126 opened this issue Apr 17, 2020 · 0 comments
Open

Add module scaffold script to larva binary #190

laras126 opened this issue Apr 17, 2020 · 0 comments
Labels
addition New feature or request

Comments

@laras126
Copy link
Contributor

laras126 commented Apr 17, 2020

In the VY theme there is a script to scaffold files for a modules. This should exist in the shared larva package scripts, be tested, and available via the larva binary so themes can register larva scaffold in the same manner as the other scripts.

Here is the script: https://gist.github.com/laras126/9500f99d9d67b9e67f80c915a267608e

We should use a CLI prompt tool like inquirer: https://www.npmjs.com/package/inquirer

And generate the templates with mustache (or Twig since we have that already?) instead of programmatically writing the files. See the scaffold in pmc-plugins/pmc-gutenberg/bin/scaffold.js for an example.

@laras126 laras126 added addition New feature or request good first issue Good for newcomers labels Apr 17, 2020
@laras126 laras126 removed the good first issue Good for newcomers label Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant