並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 21 件 / 21件

新着順 人気順

codegenの検索結果1 - 21 件 / 21件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

codegenに関するエントリは21件あります。 TypeScriptGraphQLtechfeed などが関連タグです。 人気エントリには 『GraphQL Code Generator(graphql-codegen) おすすめ設定 for TypeScript』などがあります。
  • GraphQL Code Generator(graphql-codegen) おすすめ設定 for TypeScript

    GraphQL Code Generator v3 以降で標準となった Client preset では設定が大きく異なります。 この記事は Client preset を使わない前提の内容になっているため、注意が必要です。 Client preset 用の設定は別記事で紹介します。 全体 生成物をフォーマッタにかける graphql-codegen には Lifecycle Hooks という仕組みがあり、いくつかの用意された hook ポイントで任意のコマンドを実行できる。 これを使って生成されたコードを Prettier 等のフォーマッタに通しておくのがおすすめ。 基本 DO NOT EDIT とはいえ、コードジャンプしてきて生成された型を読みたいケースはよくある。 そういうときのために、人間が見やすいように改行しておいてもらうといい。 typescript plugin, type

      GraphQL Code Generator(graphql-codegen) おすすめ設定 for TypeScript
    • GitHub - AntonOsika/gpt-engineer: CLI platform to experiment with codegen. Precursor to: https://lovable.dev

      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

        GitHub - AntonOsika/gpt-engineer: CLI platform to experiment with codegen. Precursor to: https://lovable.dev
      • graphql-codegen は validation 用の schema も自動で生成できる (yup と zod)

        GraphQL Code Generator (a.k.a. graphql-codegen) のプラグインとして graphql-codegen-typescript-validation-schema (Star ください!) を利用すると yup や zod といったフロントエンド validation 用の schema も自動で生成できます。 例えばこのような GraphQL Schema を与えます。ここで記述している constraint directive は confuser/graphql-constraint-directive で提供されているものを想定してます。 input ExampleInput { email: String! @required(msg: "Hello, World!") @constraint(minLength: 50, format:

          graphql-codegen は validation 用の schema も自動で生成できる (yup と zod)
        • graphql-codegen Client Preset 時代(v3~)の おすすめ設定 for TypeScript

          7月はLayerX エンジニアブログを活発にする期間です。今日は誰がなんと言おうと 7/6 です。 昨日 7/5 は「Datadog のコスト最適化で月額費用を 30% 削減した」でした。 2022年10月3日に、GraphQL Code Generator(以下、graphql-codegen)のおすすめ設定に関する記事を公開しました。 しかし、その後、graphql-codegen v3のリリースに伴い、ReactやVueではclient-presetが推奨されるようになりました。 client-preset前提の環境では、利用可能な設定項目などがいくつか変わるため、本記事では改めて、graphql-codegen以降のClient preset時代のおすすめ設定をまとめています。 全体 設定を TypeScript で書く graphql-codegen v3から公式ドキュメントで案

            graphql-codegen Client Preset 時代(v3~)の おすすめ設定 for TypeScript
          • mswとgraphql codegenでGraphQLをモックし、効果的で効率的なReactのテストを書く

            はじめに:テスト戦略の話 そもそもフロントエンドのテストって何をどんな粒度で書けばいいの?という疑問はよくあると思います。これについては以前Qiitaの記事: フロントエンドでTDDを実践する(理論編)で書いているので詳細は省きますが、Testing Trophyの戦略に則り、integration testを中心とし、unitテストは本当に有効なものに絞って書くというのがフロントエンドにおいては有効です。 APIモック フロントエンドのintegration testにおいて課題になるのがAPIのモックです。urqlやapollo clientのようなGraphql Clientでもqueryをモックする仕組みはありますが、どちらもclient自体をモックするような書き方になります。一見問題ないようですが、client側でキャッシュの挙動を制御したりできることもあり、本番コードと異なるコ

              mswとgraphql codegenでGraphQLをモックし、効果的で効率的なReactのテストを書く
            • @graphql-codegen/typescript-react-apolloとの思い出 - スタディサプリ Product Team Blog

              こんにちは、 Web フロントエンドエンジニアの @progfay です。 この記事は Recruit Engineers Advent Calendar 2022 の 12 日目の記事です。 今回はプロジェクト内で使っている @graphql-codegen/typescript-react-apollo package との思い出を書き綴っていきます。 出会い 私の所属するスタディサプリ中学講座の開発プロジェクト (通称: tara) では通信に GraphQL を採用しています。 また、 GraphQL Code Generator を使って GraphQL にまつわる型や関数の生成を行なっています。 Web Frontend では API Client として Apollo Client を使用しており、 TypeScript と React と Apollo Client を合わ

                @graphql-codegen/typescript-react-apolloとの思い出 - スタディサプリ Product Team Blog
              • My LLM codegen workflow atm

                tl:dr; Brainstorm spec, then plan a plan, then execute using LLM codegen. Discrete loops. Then magic. ✩₊˚.⋆☾⋆⁺₊✧ I have been building so many small products using LLMs. It has been fun, and useful. However, there are pitfalls that can waste so much time. A while back a friend asked me how I was using LLMs to write software. I thought “oh boy. how much time do you have!” and thus this post. (p.s. i

                  My LLM codegen workflow atm
                • graphql-codegen と Nominal Typing(Branded Type) で Custom Scalar をちょっといい感じにする | Wantedly Engineer Blog

                  graphql-codegen と Nominal Typing(Branded Type) で Custom Scalar をちょっといい感じにする GraphQL では標準で用意されてる Int や String 以外にも、自前で Scalar を定義することができます(ここでは Custom Scalar と呼びます)。よくある用途としては日付を表す Date や日時を表す DateTime でしょうか。 type Profile { birthday: Date } scalar DateCustom Scalar をうまく使えば GraphQL スキーマでドメインを表現する力がかなり高くなるので、みんなで育てる共通言語としてはどんどん活用していきたいです。 一方で、Apollo CLI や GraphQL Code Generator(以下 graphql-codegen)で C

                    graphql-codegen と Nominal Typing(Branded Type) で Custom Scalar をちょっといい感じにする | Wantedly Engineer Blog
                  • [OpenAPI] Go言語でAPIファーストな開発をしてみた - oapi-codegen実践編

                    対象読者 Go言語でのWeb API開発に興味のある方 APIファースト開発を学びたい方 oapi-codegenを使った具体的な開発手法を知りたい方 はじめに APIファースト開発とは、APIの設計を起点にアプリケーション開発を進める手法です。APIを最初に定義することで、開発者以外も並行作業が可能になるなどのメリットがあります。 しかし、個人的にはAPIファースト開発の真価はそれだけではないと考えています。API設計に重点を置くことで、システムやアプリケーション間で本当に必要なインターフェースを明確化し、結果としてドメインの整理や設計にも役立つと考えています。 私自身、これまでの開発でAPI設計やドキュメント作成が後回しとなってしまい、結果設計の不備やドキュメントの陳腐化に悩まされることも少なくありませんでした。 API定義のための仕様であるOpenAPI Specification

                      [OpenAPI] Go言語でAPIファーストな開発をしてみた - oapi-codegen実践編
                    • GitHub - knowsuchagency/mcp2cli: Turn any MCP, OpenAPI, or GraphQL server into a CLI — at runtime, with zero codegen

                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                        GitHub - knowsuchagency/mcp2cli: Turn any MCP, OpenAPI, or GraphQL server into a CLI — at runtime, with zero codegen
                      • Rust GCC Code Generator "rustc_codegen_gcc" Can Now Bootstrap Rustc - Phoronix

                        Rust GCC Code Generator "rustc_codegen_gcc" Can Now Bootstrap Rustc Written by Michael Larabel in Programming on 2 April 2022 at 08:00 AM EDT. 122 Comments A huge milestone has been reached in the rustc_codegen_gcc effort that aims to offer a GCC-based Rust compiler alternative to the LLVM-based official Rust compiler. The rustc_codegen_gcc project that builds upon libgccjit for offering ahead-of-

                          Rust GCC Code Generator "rustc_codegen_gcc" Can Now Bootstrap Rustc - Phoronix
                        • GoのOpenAPI3.0コードジェネレータ、oapi-codegenでchiのコードを生成しサーバーとして動かす - Qiita

                          Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

                            GoのOpenAPI3.0コードジェネレータ、oapi-codegenでchiのコードを生成しサーバーとして動かす - Qiita
                          • slide-ai-codegen.md

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                              slide-ai-codegen.md
                            • GitHub - Code-Hex/graphql-codegen-typescript-validation-schema: GraphQL Code Generator plugin to generate form validation schema from your GraphQL schema

                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                GitHub - Code-Hex/graphql-codegen-typescript-validation-schema: GraphQL Code Generator plugin to generate form validation schema from your GraphQL schema
                              • GitHub - salesforce/CodeGen: CodeGen is a family of open-source model for program synthesis. Trained on TPU-v4. Competitive with OpenAI Codex.

                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                  GitHub - salesforce/CodeGen: CodeGen is a family of open-source model for program synthesis. Trained on TPU-v4. Competitive with OpenAI Codex.
                                • GitHub - rust-lang/rustc_codegen_gcc: libgccjit AOT codegen for rustc

                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                    GitHub - rust-lang/rustc_codegen_gcc: libgccjit AOT codegen for rustc
                                  • Unleash the power of Fragments with GraphQL Codegen | Hive

                                    Maybe this even inspires you to dig deeper into the optimizations the Relay client runtime does on top of these patterns and convince you to use Relay within your next project. You can learn more about those on relay.dev. We, as The Guild, want you to find the right tool for your expertise and the application you are building. The most important thing is the patterns that are applicable anywhere!

                                      Unleash the power of Fragments with GraphQL Codegen | Hive
                                    • Next.js,Prisma,GraphQL Codegenで作るフルスタックWebアプリケーション:Typebase

                                      おもにNext.js、Prisma、GraphQL Code Generatorを用いたWebアプリケーションの構築手法について解説した書籍となります。 上記技術に加えて、以下の技術も採用しています。 ・Tailwind CSS ・NextAuth.js ・Apollo GraphQL ・Prettier ・ESLint ・Vitest ・React Testing Library ・GitHub Actions モダンなWebアプリケーションの開発手法について興味がある方にオススメです。 1章 Next.jsのセットアップ 2章 Prismaのセットアップ 3章 GraphQL Code Generatorのセットアップ 4章 テストコードの追加 5章 本番環境へのデプロイ 6章 次のステップ サポートページ:https://github.com/typebase-inc/nextjs-

                                        Next.js,Prisma,GraphQL Codegenで作るフルスタックWebアプリケーション:Typebase
                                      • OpenAPI を実装する Go サーバー oapi-codegen と ogen を比較

                                        はじめに コードなんて人間が書かなければ書かないほどいいもんです。第二弾です。 第一弾 ↓ 今回は OpenAPI を活用したサーバー実装におけるコード自動生成ライブラリを触ってみて比較をしたのでメモとして残しておきます。 OpenAPI The OpenAPI Specification provides a formal standard for describing HTTP APIs. OpenAPI を活用することで HTTP API を定義することができます。 ライブラリ 今回 OpenAPI の定義を解釈してコードを自動生成してくれるツールとして oapi-codegen と ogen を比較します。 OpenAPI からコードを自動生成するツールとしてスター数がもっとも多い openapi-generator がありますが、多様な言語に対応してくれるフレームワークという感じ

                                          OpenAPI を実装する Go サーバー oapi-codegen と ogen を比較
                                        • GitHub - nathanhleung/protobuf-ts-types: 🛫 Zero-codegen, no-compile TypeScript `type` inference from protobuf `message`s

                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                            GitHub - nathanhleung/protobuf-ts-types: 🛫 Zero-codegen, no-compile TypeScript `type` inference from protobuf `message`s
                                          • oapi-codegenを使ってみた

                                            あまり知られていない MCP 仕様たち / MCP specifications that aren’t widely known

                                              oapi-codegenを使ってみた
                                            1

                                            新着記事