Skip to content

Commit f665bbf

Browse files
committed
chore: better workflow
1 parent e12e613 commit f665bbf

File tree

9 files changed

+169
-70
lines changed

9 files changed

+169
-70
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ node_modules
44
# Don't include the compiled main.js file in the repo.
55
# They should be uploaded to GitHub releases instead.
66
main.js
7-
manifest.json
87

98
# Exclude sourcemaps
109
*.map

README.md

Lines changed: 14 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,18 @@
1-
# Obsidian Template Plugin
1+
# Obsidian Plugin Vue
22

33
> [!NOTE]
44
> This is one of the plugins of the collections of plugins called [Nólëbase Integrations](https://github.com/nolebase/integrations). You can explore the other plugins in the collection in [the official documentation site of Nólëbase Integrations](https://nolebase-integrations.ayaka.io).
55
66
---
77

8-
## ⚠️ To you, the plugin developer.
9-
10-
This is a template plugin for you to start developing your own Obsidian plugin. It is a good starting point for you to develop your own plugin. You can clone this repository and start developing your own plugin.
11-
12-
We use the most advanced technologies to develop this plugin, including:
13-
14-
- [TypeScript](https://www.typescriptlang.org/)
15-
- [unbuild](https://github.com/unjs/unbuild)
16-
- [eslint](https://eslint.org/)
17-
18-
So everything is configured for you to start developing your own plugin, immediately.
19-
20-
## ⚠️ Before publishing
21-
22-
1. Replace all the `obsidian-plugin-template` with the name of your plugin:
23-
1. In the `manifest.json` file.
24-
2. In the `package.json` file.
25-
3. In the `README.md` file.
26-
2. Replace all the `Obsidian Template Plugin` with the name of your plugin:
27-
1. In the `manifest.json` file.
28-
2. In the `package.json` file.
29-
3. In the `README.md` file.
30-
3. Fill in a URL to your repository. You can replace with `https://github.com/nolebase/obsidian-plugin-template`
31-
4. Fill in the Why, Features, What can you do with it, Demos, How to install, TODOs, feel free to remove the sections that are not needed.
32-
33-
## ⚠️ How to publish?
34-
35-
1. Modify the version in the `manifest.json` file.
36-
2. Modify the version in the `package.json` file.
37-
3. Push the changes to the repository.
38-
4. Go to the [Release] page of the repository.
39-
5. Create a new release with the tag name as the version number.
40-
6. Sit back and relax, the plugin will be published with CI/CD pipelines automatically.
41-
42-
## 🤔 Why
43-
44-
Introduce your plugin! Explain why you made it, why would users choose yours!
45-
46-
## 🎨 Features
47-
48-
- 📦 Out of the box support.
49-
- 🚀 Blazingly fast.
50-
- 💡 You define it.
51-
52-
## 💡 What can you do with it
53-
54-
- Help users to imagine what they can do, show your imagination.
55-
56-
## 📺 Demos
57-
58-
> Show me what you can do
59-
60-
### How it looks like
61-
62-
Perhaps a GIF?
8+
**Write your notes in [Obsidian](https://obsidian.md/) with [Vue.js](https://vuejs.org/).**
639

6410
## 😎 How to install
6511

6612
> [!WARNING]
67-
> Currently Obsidian Template Plugin is in alpha stage, it wasn't guaranteed to work properly and keep the compatibility with the future versions of itself.
13+
> Currently Obsidian Vue Plugin is in alpha stage, it wasn't guaranteed to work properly and keep the compatibility with the future versions of itself.
6814
>
69-
> But it is encouraged to try it out and give feedbacks. If you find and bugs or have any suggestions, please feel free to open an issue on [GitHub](https://github.com/nolebase/obsidian-plugin-template/issues).
15+
> But it is encouraged to try it out and give feedbacks. If you find and bugs or have any suggestions, please feel free to open an issue on [GitHub](https://github.com/nolebase/obsidian-plugin-vue/issues).
7016
7117
Currently, it is a bit hard to install the plugin for now before it is published to the official Obsidian plugin store. Manual downloading and installation is required.
7218

@@ -78,21 +24,21 @@ Currently, it is a bit hard to install the plugin for now before it is published
7824
4. Copy and paste the following link to the first field of the new prompted dialog:
7925

8026
```txt
81-
https://github.com/nolebase/obsidian-plugin-template
27+
https://github.com/nolebase/obsidian-plugin-vue
8228
```
8329

84-
5. Find the needed released version on [Release page of Obsidian UnoCSS Plugin](https://github.com/nolebase/obsidian-plugin-template/releases), for example, fill in `0.1.0`.
85-
6. Enable the "Obsidian Template Plugin" plugin from the `Installed plugins` list.
30+
5. Find the needed released version on [Release page of Obsidian Vue Plugin](https://github.com/nolebase/obsidian-plugin-vue/releases), for example, fill in `0.1.0`.
31+
6. Enable the "Vue" plugin from the `Installed plugins` list.
8632

8733
### Install manually
8834

89-
1. Navigate to the [Release page of Obsidian Template Plugin](https://github.com/nolebase/obsidian-plugin-template/releases)
90-
2. Find the [latest version of the plugin](https://github.com/nolebase/obsidian-plugin-template/releases/latest).
35+
1. Navigate to the [Release page of Obsidian Vue Plugin](https://github.com/nolebase/obsidian-plugin-vue/releases)
36+
2. Find the [latest version of the plugin](https://github.com/nolebase/obsidian-plugin-vue/releases/latest).
9137
3. Download the `main.js` file and `manifest.json` file.
9238
4. Open up the `.obsidian/plugins` directory of your Obsidian vault.
9339
5. If no `.obsidian/plugins` directory exists, create one.
94-
6. Create a new directory named `obsidian-plugin-template` inside the `.obsidian/plugins` directory.
95-
7. Move `main.js` file and `manifest.json` file into the `obsidian-plugin-template` directory.
40+
6. Create a new directory named `obsidian-plugin-vue` inside the `.obsidian/plugins` directory.
41+
7. Move `main.js` file and `manifest.json` file into the `obsidian-plugin-vue` directory.
9642

9743
The directory structure should look like this after these steps:
9844

@@ -103,11 +49,12 @@ The directory structure should look like this after these steps:
10349
├── manifest.json
10450
```
10551

106-
8. Enable the "Obsidian Template Plugin" plugin from the "Installed plugins" list.
52+
8. Enable the "Vue" plugin from the "Installed plugins" list.
10753

10854
## ⏳ TODOs
10955

110-
- [ ] Anything on the roadmap?
56+
- [ ] Auto completion for CSS classes.
57+
- [ ] Annotation decoration for Vue identifiable classes.
11158

11259
## 💻 How to develop
11360

build.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { copyFile, rm } from 'node:fs/promises'
22
import { join } from 'node:path'
3-
43
import { cwd } from 'node:process'
54
import builtins from 'builtin-modules'
65
import { defineBuildConfig } from 'unbuild'

bump.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'bumpp'
2+
3+
export default defineConfig({
4+
commit: 'release: v%s',
5+
sign: true,
6+
tag: '%s',
7+
})
File renamed without changes.

manifest.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"id": "obsidian-plugin-vue",
3+
"name": "Vue",
4+
"version": "0.1.0",
5+
"minAppVersion": "1.4.0",
6+
"description": "An Obsidian plugin that enables you to use Vue.js components in your notes.",
7+
"author": "Nolebase",
8+
"authorUrl": "https://github.com/nolebase",
9+
"isDesktopOnly": false
10+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@unrteljs/eval": "^0.0.5",
3535
"@vue/compiler-sfc": "^3.5.14",
3636
"builtin-modules": "^5.0.0",
37+
"bumpp": "^10.1.0",
3738
"eslint": "^9.26.0",
3839
"hast-util-to-html": "^9.0.5",
3940
"obsidian": "^1.8.7",

0 commit comments

Comments
 (0)