Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.21 KB

develop-logseq.md

File metadata and controls

66 lines (45 loc) · 1.21 KB

Develop Logseq

1. Requirements

  • Node.js (See build.yml for allowed version) & Yarn
  • Java & Clojure. (If you run into Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2). -M:cljs (No such file or directory), it means you have a wrong Clojure version installed. Please uninstall it and follow the instructions linked.)

2. Compile to JavaScript

git clone https://github.com/logseq/logseq
cd logseq
yarn
yarn watch

3. Open the browser

Open http://localhost:3001.

4. Build a release

yarn release

5. Run tests

Run ClojureScript tests

yarn test

Run E2E tests

yarn electron-watch
# in another shell
yarn e2e-test # or npx playwright test

Desktop app development

1. Compile to JavaScript

yarn watch

2. Install npm packages for building the desktop app

cd static && yarn install && cd ..

3. Open the dev app

yarn dev-electron-app

4. Build a release

yarn release-electron