#npm #gql-urql-codgen #rust

build safe-urqlcodgen-mutations

deploy a rust project to npm in one command

1 stable release

2.0.1 Nov 24, 2022

#461 in Build Utils

MIT license

660KB
12K SLoC

JavaScript 11K SLoC // 0.2% comments Rust 309 SLoC // 0.0% comments TypeScript 291 SLoC // 0.1% comments

Contains (Mach-o exe, 510KB) safe-urqlcodgen-mutations

safe-urql-urqlcodegen-mutations

Reads codegen generated graphql.ts file, then catches all the mutations, enhances them with excess property filters and warnings, and writes into a new generated file.

How to run?

  1. Place the binary in your project root directory.
  2. Create a safe-urqlcodgen-mutations.conf file at your root directory
  3. Inside the conf file add a line: generated_path={your_codegen_generated_path} Eg: generated_path=src/@generated
  4. Run the binary
  5. Mutations should be emitted in the same path

No runtime deps