vojtechhabarta / typescript-generator

Generates TypeScript from Java - JSON declarations, REST service client
MIT License
1.14k stars 237 forks source link

[FEATURE] Add a config option to supress the timestamp in generated files #1051

Closed chrisdutz closed 7 months ago

chrisdutz commented 7 months ago

Hi all,

thanks for this really useful tool.

In the project I'm using it on, we're working hard on making our build and our releases reproducibe. Currently the practice of generating the timestamp in the comment at the top of the file however is breaking this reproducability.

It would therefore be great if it was possible to disable the generation of the timestamp. (Also would be awesome, if it was possible to provide a header which is automatically added to the file ... in an Apache Project we currently add the License header in a second step, it would be awesome, if it was possible to do this in one plugin)

I'll see if I can find some time to whip up PRs, however this only makes sense if there's a chance of them being merged.

Chris

chrisdutz commented 7 months ago

Ok ... I should have done this earlier :-)

Cause when searching for the place where I would need to start on a PR, I actually found that it's already in there.

<noFileComment>true</noFileComment> Took care of the issue