1.0.8 • Published 9 months ago

tshex-cli v1.0.8

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

Hexagonal Architecture CLI

This CLI will help you to generate a hexagonal architecture structure.

Why?

Hexagonal architecture is a software design pattern that separates the internal domain of the application from the external dependencies.. This separation is achieved by dividing the application into layers. Each layer has a specific responsibility and interacts with the other layers in a specific way.

Because what we are trying to achieve is a separation between the domain code and the installed dependencies, a Hexagonal Architecture Framework is a step in the opposite direction, as it couples the domain code with the framework. This is why we need a tool to help us to create the structure with our own codebase.

Usage example

https://github.com/virtualitems/typescript-codebase/tree/hexagonal-example

Note!!!

This tool and its templates are in constant development, so be aware that some changes may occur and be careful when updating the tool.

If you have any suggestions or improvements, please let me know.

https://github.com/virtualitems/typescript-codebase/issues

Installation

npm install -g tshex-cli

Usage

Remember to replace placeholders <...> with the actual data.

Getting started

tshex --lib <library-name> --ctx <context-name>

Help

tshex -h

tshex --help

Create a new library

tshex --lib <name>

Create a new context

tshex --ctx <name>

Create a new class

tshex --cls <name>

Create a new react functional component

tshex --rfc <name>

Set the directory to create the new items

tshex --lib <lib-name> --ctx <ctx-name> --dir <path>
1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago