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
- Host: GitHub
- URL: https://github.com/codemonument/event-bus-nx
- Owner: codemonument
- Created: 2022-07-20T15:43:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T20:24:13.000Z (almost 4 years ago)
- Last Synced: 2025-01-25T15:41:25.528Z (over 1 year ago)
- Language: TypeScript
- Size: 1.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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