-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor/workspaces #946
refactor/workspaces #946
Conversation
It avoid copying the core to the user's directory when the `.eventcatalog-core` already exists and has the same version as the `@eventcatalog/core`.
It adds a simple logger that wraps Console. Based on the logLevel enabled this logger decides between print or not the message.
It removes copyCore from preview command as it doesn't adds any value.
It adds the options --project-dir and --ec-core-dir to define the PROJECT_DIR (default to cwd) and CORE_DIR (default to cwd + `.eventcatalog-core`) respectively.
The test ci script is used by .github actions, keeping it under .github makes more sense. The images is used by the README.md.
|
Closing in favor of small PRs |
First of all, sorry for the PR size...
Motivation
Closes #575.
What it does?
watcher
,hydrate
andlog-build
into module, so we can call them "inside" the cli command instead of executing with node.pino
as a simple logger.packages/core/astro/
. This adds a burden to us for install deps on user's.eventcatalog-core
dir. It is handled here.packages/core/
. Theastro/
must be inside ofcore/
to turns the pack process simple. The files packaged are described into thefiles
field on package.json (check here)Changes into
core
/cli
scripts/*
toscr/*
bin/eventcatalog.config.ts
toconfig.d.ts
bin/eventcatalog.ts
tosrc/eventcatalog.ts
eventcatalog.js
into the bin filescripts/__tests__/**
totest/**
to simplify the tests location onvitest.config.ts
Changes into
github actions
test-bin
workflow with docker and adds it as job into theverify-build
workflow. This job will be executed in windows/ubuntu and with pnpm/npm.