An open API service indexing awesome lists of open source software.

https://github.com/codemonument/event-bus-nx

A NX Monorepo for a typed event-bus implementation
https://github.com/codemonument/event-bus-nx

Last synced: about 2 months ago
JSON representation

A NX Monorepo for a typed event-bus implementation

Awesome Lists containing this project

README

          

# Event-Bus-Nx

A NX Monorepo for a typed event-bus implementation

---

## Todos

- Add Types BusRequest and BusResponse + sendAndwaitForResponse method

- TODO: Switch to a git repo: event-bus-core (based on deno & evt)
=> much easier to generate npm package via dnt which works also in node and in browser!
=> much easier dev setup than nx!

## Usefull Stuff

- Generate a run-commands target:
`nx g @nrwl/workspace:run-command --name typecheck --project event-bus-core --command "tsc --noEmit"`
- Deploy Libs: `nx run event-bus-core:deploy --otp=124965`

——-

# Repo Log

## 2022-08-03 libs/event-bus-core - convert back from swc to tsc compilation

_Reason: Problems with swc compilation in jest testing! :(_

1. `nx g @nrwl/workspace:mv --projectName event-bus-core --destination event-bus-core-old --importPath scrap`
2. `nx generate @nrwl/js:library --name=event-bus-core --publishable --tags=type:lib,project:event-bus-core --importPath @codemonument/event-bus-core --pascalCaseFiles --strict --config project --compiler tsc --skipTypeCheck`
3. `nx g @nrwl/workspace:rm event-bus-core-old`

## 2022-07-20 libs/event-bus-core

1. `nx generate @nrwl/js:library --name=event-bus-core --publishable --tags=type:lib,project:event-bus-core --importPath @codemonument/event-bus-core --pascalCaseFiles --strict --config project --compiler swc --skipTypeCheck`
2. `nx g @nrwl/workspace:run-command --name typecheck --project event-bus-core --command "tsc --noEmit" --cwd "libs/event-bus-core"`

## 2022-07-20 create-nx-workspace

1. `npx create-nx-workspace --name event-bus-nx --preset empty --interactive --cli nx --nxCloud`
Options: https://nx.dev/nx/create-nx-workspace
2. Add github remote origin at: https://github.com/codemonument/event-bus-nx
3. Move nx-cloud token into a .env file and ignore it in .gitignore