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

WIP: Make build run without additional ram #5818

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

max-nextcloud
Copy link
Collaborator

📝 Summary

Currently we need to add more ram to the node runtime so it can build text.
This is due to rollup needing plenty of ram when building large chunks.
The critical chunk in question seems to be the Richtext one.

I'm working on breaking this up into smaller chunks
by reworking the editor creation process.

🚧 TODO

  • check CI build for errors i introduced
  • actually break up RichText extension.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

Also drop the content arg to the serialize function
as it is never provided

Signed-off-by: Max <[email protected]>
We simply overwrite the `toMarkdown` function
and then rely on that.

Signed-off-by: Max <[email protected]>
We are now using this for serializing plaintext as well.

Signed-off-by: Max <[email protected]>
We do need the session for initialization
but we do not need the `documentSource` or `documentState` anymore

Signed-off-by: Max <[email protected]>
* Use const arrow functions when no doc comment is needed.
* Use the tiptap api to inspect editor state
  rather than reaching deep into the editor state.

Signed-off-by: Max <[email protected]>
Keep as `#getContent` internally.

Use `serializeEditorContent(editor)`
outside of the `SyncService`.

Signed-off-by: Max <[email protected]>
The intermediate object with `serialize` and `serializer`
is not needed anymore.

Signed-off-by: Max <[email protected]>
@max-nextcloud max-nextcloud marked this pull request as draft May 21, 2024 07:04
@max-nextcloud max-nextcloud force-pushed the enh/small-chunks branch 3 times, most recently from 1ac5834 to fae0ddf Compare May 21, 2024 12:29
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.

1 participant