-
Notifications
You must be signed in to change notification settings - Fork 155
chore: move to monorepo #296
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
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
we can ignore this comment since right now on |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>
- packages/* | ||
- website |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is website
not in packages
? (I appreciate that it's not too nested/buried, but I guess my question is why wouldn't the other packages also be directly in the root?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can put it in packages
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just followed a common structure we keep in our projects. This way packages
only refers to only standalone packages and website
is a service that gets deployed so it uses packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, I guess that makes sense if the packages
don't get deployed and are all used by the main package!
This comment was marked as resolved.
This comment was marked as resolved.
package.json
Outdated
"@types/react": "^17.0.53", | ||
"@types/react-dom": "^17.0.18", | ||
"acorn": "^8.8.2", | ||
"acorn-jsx": "^5.3.2", | ||
"eslint": "^8.34.0", | ||
"fast-xml-parser": "^4.1.2", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.1.1", | ||
"path": "^0.12.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benface any thoughts why we need this package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use it, but we should be able to just use the built-in node:path
instead. Good catch.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Good work.
Move to a monorepo structure. All the docs live in
website/*
so in future we can addpackages/*
so we can maintain shared configs, components and themes for Nextra.