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

refactor(infra): directory structure #4615

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

joooye34
Copy link
Contributor

@joooye34 joooye34 commented Oct 15, 2023

Redesign directory structure:

  • packages/ contains all code running in production.
    • backend/ contains backend code, more information from https://github.com/toeverything/OctoBase.
    • frontend/ contains frontend code, including the web app, the electron app and business libraries.
    • plugins/ contains all build-in plugins.
    • common contains the isomorphic code or basic libraries without business.
  • tools/ contains tools to help developing or CI, not used in production.
  • tests/ contains testings across different libraries, including e2e testings and integration testings.

Libraries movement:

  • storage to backend this lib just used in affine backend business
  • graphql to frontend generate api code for affine front
  • hooks to frontend separate packages to have more stricter specifications
  • native to frontend rust lib for electron app
  • i18n to frontend all local translations for affine
  • templates to frontend workspace initialization templates
  • workspace to frontend workspace storage logic for affine
  • cli to tools develop tool for affine monorepo
  • plugin-cli to tools develop tool for affine plugin, not public one now
  • workers to tools used in github workflow
  • storybook to tests used for product acceptance in CI stage, as part of integration testing

Libraries keeping in common temporarily:

  • debug maybe remove
  • env maybe remove
  • infra not thought it through yet

@codesandbox
Copy link

codesandbox bot commented Oct 15, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link

vercel bot commented Oct 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
affine-prod-temp ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2023 3:10pm

@github-actions github-actions bot added mod:infra Environment related issues and discussions docs Improvements or additions to documentation mod:hooks mod:dev mod:store test Related to test cases rust mod:native labels Oct 15, 2023
@nx-cloud
Copy link

nx-cloud bot commented Oct 15, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 461849e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 15, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 461849e
Status: ✅  Deploy successful!
Preview URL: https://89465a46.affine-dev.pages.dev
Branch Preview URL: https://refactor-directory-structure.affine-dev.pages.dev

View logs

@joooye34 joooye34 force-pushed the refactor/directory-structure branch 2 times, most recently from 4b63da9 to 742a4ab Compare October 16, 2023 07:47
@github-actions github-actions bot added mod:component and removed mod:infra Environment related issues and discussions labels Oct 16, 2023
@joooye34 joooye34 added the type:ui-style Related to UI styling label Oct 16, 2023
@himself65 himself65 force-pushed the refactor/directory-structure branch from 24644aa to 742a4ab Compare October 16, 2023 23:37
@github-actions github-actions bot removed the app:core label Oct 16, 2023
@joooye34 joooye34 force-pushed the refactor/directory-structure branch from 742a4ab to bf422ef Compare October 17, 2023 07:26
@joooye34 joooye34 temporarily deployed to development October 17, 2023 07:26 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 17, 2023 07:26 — with GitHub Actions Inactive
@joooye34 joooye34 force-pushed the refactor/directory-structure branch from 6def7e7 to 461849e Compare October 18, 2023 15:09
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:10 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:14 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:14 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:14 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:14 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:14 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:17 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:17 — with GitHub Actions Inactive
@joooye34 joooye34 temporarily deployed to development October 18, 2023 15:17 — with GitHub Actions Inactive
@pengx17 pengx17 added this pull request to the merge queue Oct 18, 2023
Merged via the queue into master with commit bed9310 Oct 18, 2023
@pengx17 pengx17 deleted the refactor/directory-structure branch October 18, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation mod:component mod:dev mod:hooks mod:native mod:storage mod:store mod:workspace Related to workspace rust test Related to test cases type:ui-style Related to UI styling
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants