2024-06-11 18:46:41 +00:00
# Contribute to Vault Explorer
2024-07-10 05:20:29 +00:00
## Issues
2024-06-11 19:55:54 +00:00
2024-07-10 05:20:29 +00:00
Please open an [issue ](https://github.com/decaf-dev/obsidian-vault-explorer/issues ) for bugs or suggestions for improvement. All feedback is welcome.
2024-06-11 19:55:54 +00:00
2024-07-10 05:20:29 +00:00
## Pull requests
2024-06-11 19:55:54 +00:00
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
2024-07-10 05:20:29 +00:00
### Project installation
2024-06-11 18:46:41 +00:00
2024-06-11 20:06:04 +00:00
Fork the Vault Explorer repository from GitHub
Install [Bun.sh ](https://bun.sh/ ) for your operating system
Clone the forked repository
2024-06-11 18:46:41 +00:00
```shell
2024-06-11 20:06:04 +00:00
git clone https://github.com/< your-username > /obsidian-vault-explorer.git
2024-06-11 18:46:41 +00:00
```
2024-06-11 20:06:04 +00:00
Change directories to the repository on your machine
2024-06-11 18:46:41 +00:00
```shell
cd obsidian-vault-explorer
```
2024-06-11 20:06:04 +00:00
Install dependencies
2024-06-11 18:46:41 +00:00
```shell
bun install
```
Build the project. This will create a `dist` folder
```shell
bun run build
```
2024-07-15 04:15:13 +00:00
The repository that you cloned contains a folder called `test-vault` . This is what will be used for development.
2024-06-11 18:46:41 +00:00
2024-07-15 04:15:13 +00:00
The `test-vault` contains a `.obsidian/plugins/vault-explorer` folder with a `data.json` file but it is missing the `main.js` , `manifest.json` and `styles.css` .
We need to create symbolic links for each of these folders
2024-06-15 21:06:33 +00:00
2024-06-11 18:46:41 +00:00
```shell
2024-07-15 04:15:13 +00:00
cd test-vault/.obsidian/plugins/vault-explorer
2024-06-11 18:46:41 +00:00
```
```shell
2024-07-15 04:15:13 +00:00
ln -s ../../../../dist/main.js .
2024-06-11 18:46:41 +00:00
```
2024-07-15 04:15:13 +00:00
```shell
ln -s ../../../../dist/manifest.json .
```
2024-06-11 18:46:41 +00:00
2024-07-15 04:15:13 +00:00
```shell
ln -s ../../../../dist/styles.css .
```
2024-06-11 18:46:41 +00:00
2024-06-11 19:55:54 +00:00
### Development
2024-06-11 18:46:41 +00:00
Checkout the `dev` branch and make a child branch off of it.
```shell
git pull dev
```
```shell
git checkout dev
```
```shell
git checkout -b < your-branch-name >
```
> [!IMPORTANT]
> Please make sure that you make a branch off of `dev` instead of `master`. This will help reduce merge conflicts by making sure that you have the latest code changes.
Run esbuild in development mode
```shell
bun run dev
```
Make some code changes
2024-06-15 21:06:33 +00:00
Restart your Obsidian application to see your code changes in action
2024-06-11 18:46:41 +00:00
2024-07-10 05:20:29 +00:00
### Open a pull request
2024-06-11 18:46:41 +00:00
2024-06-15 21:06:33 +00:00
Once you have commited your changes, push your code to GitHub and open a pull request.
2024-06-11 18:46:41 +00:00
2024-06-11 20:06:04 +00:00
Please choose your branch and `dev` as the branch you want to merge into.
2024-06-11 18:46:41 +00:00
2024-06-15 21:06:33 +00:00
Your pull request will be reviewed. Once it is approved, it will be merged.