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 a way of running a script as part of creating the template #42

Open
7sharp9 opened this issue Jun 5, 2016 · 2 comments
Open

Add a way of running a script as part of creating the template #42

7sharp9 opened this issue Jun 5, 2016 · 2 comments

Comments

@7sharp9
Copy link

7sharp9 commented Jun 5, 2016

Currently theres no way (afaik) to runa script when a template is created, so I cant install npm / other dependencies for example.

@rmunn
Copy link
Contributor

rmunn commented Jul 23, 2016

An extra parameter in templates.json seems like the natural place to specify this, which could specify the script file to run, and any command-line parameters to pass to the file. To ensure cross-platform compatibility, we'd need to be able to specify a different script per platform. We could take some inspiration from how VS Code handles the tasks.json file.

@rmunn
Copy link
Contributor

rmunn commented Jul 23, 2016

Or perhaps cross-platform compatibility could be ensured by having the template-creation script be a Javascript file, specified in the templates.json, which the generator could require and then run a specified entry-point function.

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

No branches or pull requests

2 participants