docs/dev/BUILD.md
Clone the repository:
git clone https://github.com/marktext/marktext.git
Before you can get started developing, you need set up your build environment:
>=v16 but <v17 and yarn>=v3.6 for node-gypAdditional development dependencies on Linux:
On Debian-based Linux: sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev libfontconfig-dev
On Red Hat-based Linux: sudo dnf install libX11-devel libxkbfile-devel libsecret-devel fontconfig-devel
Additional development dependencies on Windows:
marktext folderyarn install or yarn install --frozen-lockfileyarn run buildbuild folderCopy the build app to applications folder, or if on Windows run the executable installer.
$ yarn run <script> # or npm run <script>
| Script | Description |
|---|---|
build | Build MarkText binaries and packages for your OS |
build:bin | Build MarkText binary for your OS |
dev | Build and run MarkText in developer mode |
lint | Lint code style |
test / unit | Run unit tests |
For more scripts please see package.json.