deluan / contentful-migrate

🐎 Schema migration tooling for Contentful, with state management
https://www.contentful.com/blog/2018/09/13/content-model-changes-scale-telus-cms-as-code/
MIT License
60 stars 37 forks source link

Add support for template customization #131

Open devlato opened 4 years ago

devlato commented 4 years ago

This PR addresses an issue with missing support for generating migrations in TypeScript by introducing new options and/or environment variables for customizing the migration template file and generated migration file extension, for the create command.

The new options are:

A working demo is available as a fork of this library, named contentful-migrate-fork.

devlato commented 4 years ago

CC @deluan

deluan commented 3 years ago

Hey @devlato, sorry for the long delay. As I said in https://github.com/deluan/contentful-migrate/pull/82#issuecomment-711021321, I don't have a TypeScript environment/project to test this, so I'm not sure this is the best way to support TS.

With this approach, do you still need to register the TS compiler (like in #82)?