这是indexloc提供的服务,不要输入任何密码
Skip to content

Minify generated schema.json #726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 16, 2022
Merged

Minify generated schema.json #726

merged 9 commits into from
Feb 16, 2022

Conversation

arthurfiorette
Copy link
Contributor

I added --minify option to ts-json-schema-generator because some of my schemas have gotten bigger.
I've just enabled it here too :)

@vercel
Copy link

vercel bot commented Feb 11, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vercel/turbo-site/6zWrB2fDFmyiXjWqsD1wJ6EKrW4u
✅ Preview: https://turbo-site-git-fork-arthurfiorette-main.vercel.sh

@jaredpalmer
Copy link
Contributor

We should really treat the schema file as generated output. So actually, can you do the following?

  • Delete public/schema.json
  • Add the file to the .gitignroe
  • Add schema task in the turbo.json pipeline

Now we can minify and also just have single file diffs

@arthurfiorette
Copy link
Contributor Author

Just adding the schema task to turbo.json will not run it automatically. Will you run it separately?

@kodiakhq kodiakhq bot merged commit b66ccfa into vercel:main Feb 16, 2022
Schniz added a commit that referenced this pull request Mar 3, 2022
This commit continues the amazing work done in #634 and #726.

Instead of generating the JSON schema from a separate TypeScript file,
this commit introduces a new CLI (to avoid bloating the main one) that
will output a JSON schema from the struct definition itself, including
the actual code comments.

This will allow to better integration and to avoid differences between
the two codebases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants