Welcome to ast-to-entity-definitions! 🎉 This tool allows you to easily generate EntityDefinition and EntityPropertyDefinition from your TypeScript type information. By automating this process, you can streamline the generation of source code that interacts with your domain model.
The motivation behind creating this library was the observation that a significant portion of domain model-driven source code can be automatically generated based on the TypeScript type definitions. Since the domain model is typically well-defined, a lot of the boilerplate code (such as repository implementations, GraphQL resolvers, and test scaffolding) can be generated from the TypeScript types.
This library works by parsing the TypeScript abstract syntax tree (AST) and converting the type information into EntityDefinition and EntityPropertyDefinition objects. These objects can then be used to generate various types of code, such as:
The key features of this library include:
To get started, you can install the ast-to-entity-definitions package via npm or Yarn:
npm install ast-to-entity-definitions
or
yarn add ast-to-entity-definitions
Once installed, you can use the library in your project either through the provided CLI or by importing the getEntityDefinitions function directly.
We hope that ast-to-entity-definitions can help streamline your domain-driven development workflow. If you have any questions, feedback, or contributions, please don't hesitate to reach out!
I created new service https://www.upwork.com/services/product/development-it-professional-go-unit-test-creation-service-enhance-your-code-quality-1857997883148171119?ref=fl_profile
Go Unit Test Creation Service - Single File Testing Up To 1,000 Code Lines
You will get professional unit tests for your Go source file. This basic plan is perfect for developers starting with testing or having simple test requirements.
What's included:
Note: This plan does not include mock creation. Ideal for simple classes or when mocks are already available.
Go Unit Testing Service - Multi-File Testing Up To 5,000 Code Lines with Mocks
You will get comprehensive unit test coverage for multiple Go files with professional mock implementations and layer-specific testing strategies.
What's included:
Perfect for projects requiring thorough testing across different layers with mock dependencies.
Enterprise Go Testing Service - Large Project Testing Up To 50,000 Code Lines
You will get enterprise-level test implementation with comprehensive coverage, security review, and architectural recommendations for your large-scale Go project.
What's included:
Add-on Options:
Perfect for enterprise applications requiring comprehensive testing strategy with security considerations.
golang, unit-testing, test-automation, mock-testing, security-testing, test-coverage, enterprise-testing
Quick Links
Legal Stuff
Social Media