-
Notifications
You must be signed in to change notification settings - Fork 7
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
Tasks #62
Comments
cc/ @kylemac @joshrowley |
sounds good to me. why |
|
to clarify, |
Let's call 'em |
is there any other info that we need accessed by the generators, like target? |
@kylemac |
👍 |
Here's my idea for "tasks" (e.g. generators):
An optional folder in a template called
tasks
.On
init
, if the folder exists, drop a.sproutrc
file in the target with the name of the template.The
tasks
folder contains js files (the name of the task == the filename). Each JS file exports a function with anoptions
argument (passed as separate args to the CLI) and autils
argument:To run a task, run
sprout run <task>
in the target directory:sprout finds the template by the name in
.sproutrc
(if it can't be found, lists all your templates with readline/inquirer and lets you select/update.sproutrc
).The text was updated successfully, but these errors were encountered: