zzarchive-generator-fsharp icon indicating copy to clipboard operation
zzarchive-generator-fsharp copied to clipboard

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

Open 7sharp9 opened this issue 8 years ago • 2 comments

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

7sharp9 avatar Jun 05 '16 20:06 7sharp9

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 avatar Jul 23 '16 07:07 rmunn

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.

rmunn avatar Jul 23 '16 07:07 rmunn