Skip to content

Conversation

saihaj
Copy link
Contributor

@saihaj saihaj commented Feb 27, 2023

Move to a monorepo structure. All the docs live in website/* so in future we can add packages/* so we can maintain shared configs, components and themes for Nextra.

Base automatically changed from saihaj/move-to-pnpm to main February 28, 2023 15:55
@saihaj saihaj marked this pull request as ready for review March 2, 2023 19:32
@saihaj saihaj requested a review from a team as a code owner March 2, 2023 19:32
@saihaj saihaj marked this pull request as draft March 2, 2023 19:36
@saihaj saihaj marked this pull request as ready for review March 2, 2023 20:00
@github-actions

This comment was marked as off-topic.

@saihaj
Copy link
Contributor Author

saihaj commented Mar 2, 2023

we can ignore this comment since right now on main there is nothing like /website/route-lockfile.txt

@github-actions

This comment was marked as outdated.

@saihaj saihaj requested a review from dimaMachina March 2, 2023 21:12
@github-actions

This comment was marked as outdated.

Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>
Comment on lines +2 to +3
- packages/*
- website
Copy link
Contributor

@benface benface Mar 3, 2023

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?)

Copy link
Contributor

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 👍

Copy link
Contributor Author

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.

Copy link
Contributor

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!

@dimaMachina

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",
Copy link
Contributor

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?

Copy link
Contributor

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.

@dimaMachina dimaMachina mentioned this pull request Mar 8, 2023
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as resolved.

@github-actions

This comment was marked as outdated.

Copy link
Contributor

@benface benface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Good work.

@saihaj saihaj merged commit 310d102 into main Mar 9, 2023
@saihaj saihaj deleted the saihaj/move-to-monorepo branch March 9, 2023 19:13
@benface benface mentioned this pull request Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants