Setup Codespaces
setup codespaces
- go to https://github.com/dendronhq-core/dendron
- create a code spaces that boots up using this setting: https://www.loom.com/i/810cb21bbfdf4f438cc310c0fe026ff6
- select region to be close to where you are
- choose 4core CPU
- this should launch you with vscode with code spaces
- downgrade the node version to v16 (the default is v17 which causes issues with some of our dependencies)
nvm install 16
- go through installation instructions: Dendron Plugin Quickstart (Private)
- NOTE: dendron will be located in
/workspaces/dendron/dendron-main.code-workspace
development
same process as local with the following caveats.
- since you are working on a fork of dendron, make sure to fetch from upstream before working on a feature or rebasing to get the latest changes
- to create a feature branch, push to a new branch then
- visit the website of the fork at https://github.com/dendronhq-core/dendron
- click "create pull request" which will create a PR back to the original repo
a note on memory
you might run out of memory when working with codespaces. instead of running all packages, modify the following to only watch packages you are using.
npx lerna run watch --parallel
\ --scope @dendronhq/common-all
\ --scope @dendronhq/common-server
\ --scope @dendronhq/engine-server
\ --scope @dendronhq/plugin-core
\ --scope @dendronhq/dendron-cli
\ --scope @dendronhq/pods-core
\ --scope @dendronhq/api-server
\ --scope @dendronhq/dendron-next-server
\ --scope @dendronhq/common-test-utils
\ --scope @dendronhq/engine-test-utils
\ --scope @dendronhq/bootstrap
you can use the same technique to only build packages after they have been modified
npx lerna run build --parallel
\ --scope @dendronhq/common-all
\ --scope @dendronhq/common-server
\ --scope @dendronhq/engine-server
\ --scope @dendronhq/plugin-core
\ --scope @dendronhq/dendron-cli
\ --scope @dendronhq/pods-core
\ --scope @dendronhq/api-server
\ --scope @dendronhq/dendron-next-server
\ --scope @dendronhq/common-test-utils
\ --scope @dendronhq/engine-test-utils
\ --scope @dendronhq/bootstrap