dangcuuson / graphql-schema-typescript

Generate TypeScript from GraphQL's schema type definitions
190 stars 36 forks source link

Add timestamp in comment header for generated date #10

Closed brookback closed 3 years ago

brookback commented 6 years ago

Fixes #9.

Adds an ISO timestamp in the comment header at the top of a generated .ts file, with today's date and time:

/**
 * This file is auto-generated by ${packageJson.name}
 * Please note that any changes in this file may be overwritten.
 * 
 * Generated at 2018-09-09T09:10:16.752Z
 */

Tasks

dangcuuson commented 6 years ago

Hi brookback,

This PR doesn't make a opt-in option like we discussed on #9, are you still working on this or may I add the option to this later?

brookback commented 6 years ago

@dangcuuson Oh yes, right! I completely forgot. I'll add that to this PR. Thanks.