feat/integrations#23
Open
michakfromparis wants to merge 14 commits into
Open
Conversation
- Introduced a new `integrations.md` document detailing the integration of GraphQL Rust Codegen with various tools and frameworks. - Included sections on installation, configuration, and advanced integration patterns for seamless TypeScript and Rust workflows. - Provided troubleshooting tips and real-world examples to enhance user understanding and facilitate easier implementation. - Ensured clarity and structure to support developers in leveraging the full capabilities of the integration.
…n features - Renamed the project in the README for clarity. - Added a comprehensive integration guide for using GraphQL Code Generator with Rust, detailing a unified TypeScript + Rust workflow. - Included instructions for generating TypeScript types and Rust database code in a single command. - Enhanced the documentation structure with new sections on configuration and combined workflows, improving user onboarding and understanding of the tool's capabilities.
…evels - Added a new Logger struct to manage verbosity levels and provide structured logging throughout the application. - Implemented methods for info, debug, trace, success, warning, and error logging, enhancing output clarity and consistency. - Included `#[allow(dead_code)]` annotations for unused methods to maintain code clarity.
- Introduced a new `Integration` struct to facilitate integration with existing Tauri + GraphQL Code Generator projects. - Implemented configuration handling for output directory, script addition, and force overwrite options. - Added functionality to read and update `codegen.yml` with a new `rust_codegen` section, ensuring seamless integration. - Included methods to add relevant scripts to `package.json`, enhancing user experience and automation. - Ensured comprehensive logging throughout the integration process for better visibility and user guidance.
- Added a Logger instance to the code generation process for improved visibility and traceability. - Updated the generate_all_code function to include logging for directory creation, schema generation, entity file generation, and migration creation. - Enhanced logging messages to provide detailed feedback on the generation process, including counts of generated files and operations performed.
…ities - Introduced an `Integration` module to facilitate integration with existing projects. - Refactored the `Logger` usage for better organization and clarity. - Updated the `generate_all_code` function calls to use the crate scope for consistency. - Added command handling for integration commands, enhancing the CLI functionality. - Maintained existing commented code for clarity and future reference.
… integration - Introduced a new `Integrate` command to the CLI, allowing users to specify output directory, skip package.json scripts, and force overwrite existing configurations. - Enhanced the CLI functionality to support seamless integration with existing Tauri + GraphQL Code Generator projects. - Maintained existing commented code for clarity and future reference.
…enerator - Added a new section detailing integration steps for existing Tauri projects, including prerequisites and workflow enhancements. - Provided clear instructions for adding Rust code generation to Tauri apps, including command usage and configuration modifications. - Highlighted integration benefits, ensuring users understand the seamless addition of Rust capabilities without disrupting existing setups.
…QL Code Generator - Added a section for initializing new projects from scratch, providing clear command usage. - Included instructions for integrating Rust database code generation into existing Tauri + GraphQL projects, detailing the necessary commands for setup and generation. - Improved overall structure and clarity of the README to facilitate user onboarding and understanding of the integration process.
…dule - Reordered imports in `integration.rs` for clarity. - Adjusted indentation and formatting in logging messages to enhance readability. - Refactored script addition logic in `integration.rs` to maintain consistent formatting. - Cleaned up trailing whitespace in `main.rs` and ensured proper newline at the end of `lib.rs` for consistency.
- Updated `generate_all_code` function calls in integration tests to include a Logger instance for improved visibility during code generation. - Ensured consistent logging across multiple test cases to facilitate debugging and traceability of the code generation process.
- Removed the conditional compilation for the `serde_yaml` crate as it is no longer needed. - Cleaned up the import section for better organization and clarity.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
==========================================
- Coverage 55.93% 53.45% -2.49%
==========================================
Files 9 11 +2
Lines 1768 1897 +129
==========================================
+ Hits 989 1014 +25
- Misses 779 883 +104
🚀 New features to boost your workflow:
|
- Moved the DatabaseType enum definition from cli.rs to config.rs for better separation of concerns. - Updated all relevant imports across the codebase to reflect the new location of DatabaseType. - Enhanced readability and maintainability by cleaning up import statements in various modules.
- Removed unnecessary blank lines in cli.rs and main.rs for better organization. - Reordered imports in generator.rs, diesel.rs, and sea_orm.rs to maintain consistency and clarity. - Updated import statements in cli_tests.rs to reflect the new location of DatabaseType, enhancing code maintainability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.