Skip to content
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

Restructure repository structure #96

Merged
merged 10 commits into from Jun 10, 2022
Merged

Restructure repository structure #96

merged 10 commits into from Jun 10, 2022

Conversation

joulev
Copy link
Owner

@joulev joulev commented Jun 10, 2022

Since we no longer need a monorepo, we will restructure it to a simpler repository structure for easier development and management.

  • Remove the monorepo system
  • Use ~ for tsconfig absolute path
  • Refactor the source files for a clear separation of frontend and backend:
    • I will work on /public, /pages (excluding /pages/api but including /pages/api/project-log/joulev.ts), /client and the client subdirectories of /__tests__ and /types.
    • @VietAnh1010 will work on /pages/api, /server and server subdirectories of /__tests__ and /types.

Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
@joulev joulev added the enhancement New feature or request label Jun 10, 2022
@joulev joulev added this to In Progress in ezkomment project Jun 10, 2022
Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
@codecov
Copy link

codecov bot commented Jun 10, 2022

Codecov Report

Merging #96 (8483a12) into main (9bd562a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #96   +/-   ##
=======================================
  Coverage   98.75%   98.75%           
=======================================
  Files          30       30           
  Lines         403      403           
  Branches       95       95           
=======================================
  Hits          398      398           
  Misses          5        5           
Impacted Files Coverage Δ
client/components/anchor.tsx 100.00% <ø> (ø)
client/components/banner.tsx 100.00% <ø> (ø)
client/components/buttons.tsx 100.00% <ø> (ø)
client/components/copiableCode.tsx 100.00% <ø> (ø)
client/components/docs/navbar.tsx 100.00% <ø> (ø)
client/components/modal.tsx 100.00% <ø> (ø)
client/components/seo.tsx 100.00% <ø> (ø)
client/components/siteGraph.tsx 100.00% <ø> (ø)
client/components/utils/iconAndLabel.tsx 100.00% <ø> (ø)
client/context/breakpoint.ts 100.00% <ø> (ø)
... and 20 more

Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
I hate using backsticks in commit messages BUT otherwise I would be notifying GitHub user client :(

Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
Before that, Prettier considered this file to have syntax errors and refused to format it.

$ npx prettier --check --ignore-path=.gitignore .
Checking formatting...
server/utils/pageUtils.ts[error] server/utils/pageUtils.ts: SyntaxError: Unexpected token (34:40)

Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
@joulev
Copy link
Owner Author

joulev commented Jun 10, 2022

@VietAnh1010 Based on 940f2e1, we may want to use var as Type syntax instead of <Type>var syntax for code written from now on. Yeah that's not what you may be used to in C or similar languages but that's what Prettier said.

Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
Signed-off-by: Vu Van Dung <joulev.vvd@yahoo.com>
@VietAnh1010
Copy link
Collaborator

@VietAnh1010 Based on 940f2e1, we may want to use var as Type syntax instead of <Type>var syntax for code written from now on. Yeah that's not what you may be used to in C or similar languages but that's what Prettier said.

Okay, shall change it (although I'm more comfortable with the <Type>var syntax).

Copy link
Collaborator

@VietAnh1010 VietAnh1010 left a comment

Choose a reason for hiding this comment

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

The changes are mostly for the updated imports.

@joulev joulev merged commit 8e61e25 into main Jun 10, 2022
@joulev joulev deleted the restructure branch June 10, 2022 08:54
@joulev joulev moved this from In Progress to Done in ezkomment project Jun 10, 2022
@joulev
Copy link
Owner Author

joulev commented Jun 10, 2022

@VietAnh1010 Based on 940f2e1, we may want to use var as Type syntax instead of <Type>var syntax for code written from now on. Yeah that's not what you may be used to in C or similar languages but that's what Prettier said.

Okay, shall change it (although I'm more comfortable with the <Type>var syntax).

No need to change existing code. I’m fine with that syntax too, it’s just Prettier which is complaining, so for future code let’s use as.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants