* WIP * Add debug * Dedupe inserts * Add deterministic ordering * Fix whitespaces * Update insta * Add integration test script * Rename * Add test * Working for non-deletes * omg it mostly works for deletes * Isdeleted fix * remove created dates * update api * Take document id * No max attempt * works * Use string uuids * . * working!!!! (hopefully) * Improve bundling * Add module * lint * . * lint * Fix CI * use toolchain * clean up * Add useSlowFileEvents * Delete fuzz * Fix CI * use docker * fix script * clean up * Clean up * change node version * Build docker image on every commit * fix ci * 1 db per vault * Add scritps folder * Bump versions * Lint * . * Fix tests for real * Style * . * try * Consistent ordering * Fix tests * hmm * . * Clean up diff * Fixes * . * Fix version bump * . * . * .
56 lines
1.8 KiB
Markdown
56 lines
1.8 KiB
Markdown
# VaultLink self-hosted Obsidian plugin for file syncing
|
|
|
|
[](https://github.com/schmelczer/vault-link/actions/workflows/check.yml)
|
|
[](https://github.com/schmelczer/vault-link/actions/workflows/e2e.yml)
|
|
[](https://github.com/schmelczer/vault-link/actions/workflows/publish-docker.yml)
|
|
[](https://github.com/schmelczer/vault-link/actions/workflows/publish-plugin.yml)
|
|
|
|
|
|
## Develop
|
|
|
|
### Install [nvm](https://github.com/nvm-sh/nvm)
|
|
|
|
- `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash`
|
|
- `nvm install 22`
|
|
- `nvm use 22`
|
|
- Optionally set the system-wide default: `nvm alias default 22`
|
|
|
|
|
|
### Set up Rust
|
|
|
|
- Install [`rustup`](https://rustup.rs): `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`
|
|
- Install [`wasm-pack`](https://rustwasm.github.io/wasm-pack/installer): `curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh`
|
|
- `cargo install cargo-insta sqlx-cli cargo-edit`
|
|
|
|
### Install Obsidian on Linux
|
|
|
|
```sh
|
|
apt install flatpak
|
|
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
flatpak install flathub md.obsidian.Obsidian
|
|
flatpak run md.obsidian.Obsidian
|
|
```
|
|
|
|
### Scripts
|
|
|
|
#### Update HTTP API TS bindings
|
|
|
|
```sh
|
|
scripts/update-api-types.sh
|
|
```
|
|
|
|
#### Publish new version
|
|
|
|
```sh
|
|
scripts/bump-version.sh patch
|
|
```
|
|
|
|
|
|
#### Run E2E tests
|
|
|
|
```sh
|
|
scripts/e2e.sh
|
|
```
|
|
|
|
And to clean up the logs & database files, run `scripts/clean-up.sh`
|
|
```
|