Open ianhi opened 3 years ago
Thanks @ianhi for opening this issue.
This also came up for the JupyterLab cookiecutters when updating the JS cookiecutter to the new distribution system: https://github.com/jupyterlab/extension-cookiecutter-js/pull/33#issuecomment-767648077
Now extension-cookiecutter-js
and extension-cookiecutter-ts
are very similar. It was briefly discussed in this lab dev meeting whether or not they should be a single cookiecutter: https://github.com/jupyterlab/team-compass/issues/117#issuecomment-768481391 (although there hasn't been any decision on this yet).
Problem
The
js
andts
cookiecutters can easily get out of sync, for example thejs
cookiecutter useswidgets.register
while thets
cookiecutter does not. Looking through them there are several PRs that apply to one but not the other, even if the same changes would apply equally. For instance the cookiecutters ought to have the same packaging, so PRs such as https://github.com/jupyter-widgets/widget-cookiecutter/pull/87 will require duplicated effort.Proposed Solution
Create a single cookiecutter that has an option to choose
ts
orjs
.