-
Notifications
You must be signed in to change notification settings - Fork 132
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 package directories #1265
Refactor package directories #1265
Conversation
bdc4a59
to
f5ed7fe
Compare
@markbind/core's uses markbind-cli's logging utilities, which implies it cannot function on its own. The default logger instance as provided by winston and configured in @markbind/core also includes the DailyRotateFile transport. This causes unit tests for @markbind/core files that also mock the node fs module to fail, since it is a file-based transport. Let's restructure the logging slightly, providing @markbind/core with it's own winston configuration without the DailyRotateFile transport. Let's also increase the logging level of the console transport to 'debug', which was previously handled by the DailyRotateFile transport. This ensures unit tests function properly, and allows @markbind/core to function on its own. Then, let's override this configuration in markbind-cli's configuration, such that the old behaviour from a user standpoint is preserved.
b5d3eaa
to
9d89140
Compare
Thanks for the review @acjh! Fyi: Added |
What is the purpose of this pull request? (put "X" next to an item, remove the rest)
• [x] Other, please explain: move sub packages to
packages/
directoryImplements #1253 (comment)
Fixes #1060
What is the rationale for this request?
Standardise location of sub packages
What changes did you make? (Give an overview)
Move markbind core package to
packages/markbind
(preserved instead ofcore
as we reference "themarkbind
core package..." quite a few times in docs)Move frontend/components package to
packages/vue-components
Use scoped package naming
@markbind/core
&@markbind/vue-components
Changed the respective path references in linting configurations,
require
s,package.json
and the dev guide for the aboveProposed commit message: (wrap lines at 72 characters)
Move sub packages into /packages/ directory
The markbind core package resides in /src/lib/markbind/ directory of
the markbind-cli package, while the vue components package resides in
frontend/components.
Let's move these into /packages/ for consistent placing of
markbind-cli's dependencies.
Let's also rename the packages as scoped packages to reflect the new
directory structure.