projectsyn / modulesync-control

Archived. We now manage component templates via https://github.com/projectsyn/commodore-component-template. ModuleSync configuration and template repository for Commodore components
0 stars 0 forks source link

Add template for `.cruft.json` #85

Closed simu closed 2 years ago

simu commented 2 years ago

Add a .cruft.json to all managed components, so we can migrate component template sync to commodore component sync based on the Cookiecutter template in https://github.com/projectsyn/commodore-component-template/

Checklist

simu commented 2 years ago

We omit cookiecutter args add_lib, add_pp, copyright_holder and copyright_year as we don't have enough data available to generate them in the .cruft.json.erb template. Commodore's component update has added logic which infers the values of add_lib and add_pp from the component implementation. Additionally, the command also has logic to read the copyright holder and year from the component's .sync.yml if the corresponding cookiecutter args are missing. Combined with the initial .cruft.json generated from this PR, this should allow us to migrate component template sync to Commodore/Cruft with minimal manual intervention.