Skip to content

Commit 4c6c6ec

Browse files
committed
Merge branch 'master' into release
2 parents 0fc6331 + 98a6a9a commit 4c6c6ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1315
-1120
lines changed

.eslintrc

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@
44
"env": {
55
"node": true
66
},
7-
"plugins": [
8-
"@typescript-eslint"
9-
],
10-
"extends": [
11-
"eslint:recommended",
12-
"plugin:@typescript-eslint/eslint-recommended",
13-
"plugin:@typescript-eslint/recommended"
14-
],
7+
"plugins": ["@typescript-eslint"],
8+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
159
"parserOptions": {
1610
"sourceType": "module"
1711
},
@@ -28,8 +22,6 @@
2822
"no-useless-escape": "off",
2923
"@typescript-eslint/no-inferrable-types": "off",
3024
"@typescript-eslint/no-empty-function": "off",
31-
"@typescript-eslint/explicit-function-return-type": [
32-
"error"
33-
]
25+
"@typescript-eslint/explicit-function-return-type": ["error"]
3426
}
3527
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

10-
- [ ] The Plugin is up to date
11-
- [ ] Obsidian is up to date
9+
- [ ] The Plugin is up to date
10+
- [ ] Obsidian is up to date
1211

1312
**Describe the bug**
1413
A clear and concise description of what the bug is.
1514

1615
**To Reproduce**
1716
Steps to reproduce the behavior:
17+
1818
1. Go to '...'
1919
2. Click on '....'
2020
3. Scroll down to '....'
@@ -27,11 +27,12 @@ A clear and concise description of what you expected to happen.
2727
If applicable, add screenshots to help explain your problem.
2828

2929
**Occurs on**
30-
- [ ] Windows
31-
- [ ] macOS
32-
- [ ] Linux
33-
- [ ] Android
34-
- [ ] iOS
30+
31+
- [ ] Windows
32+
- [ ] macOS
33+
- [ ] Linux
34+
- [ ] Android
35+
- [ ] iOS
3536

3637
**Plugin version**
3738
x.x.x

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: feature request
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/workflows/release.yml

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
# Sequence of patterns matched against refs/tags
66
tags:
7-
- "*" # Push events to matching any tag format, i.e. 1.0, 20.15.10
7+
- '*' # Push events to matching any tag format, i.e. 1.0, 20.15.10
88

99
env:
1010
PLUGIN_NAME: obsidian-meta-bind-plugin # Change this to the name of your plugin-id folder
@@ -14,69 +14,69 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: Use Node.js
19-
uses: actions/setup-node@v1
20-
with:
21-
node-version: "14.x" # You might need to adjust this value to your own version
22-
- name: Build
23-
id: build
24-
run: |
25-
yarn
26-
yarn run build --if-present
27-
mkdir ${{ env.PLUGIN_NAME }}
28-
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
29-
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
30-
ls
31-
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
32-
- name: Create Release
33-
id: create_release
34-
uses: actions/create-release@v1
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
VERSION: ${{ github.ref }}
38-
with:
39-
tag_name: ${{ github.ref }}
40-
release_name: ${{ github.ref }}
41-
draft: false
42-
prerelease: false
43-
- name: Upload zip file
44-
id: upload-zip
45-
uses: actions/upload-release-asset@v1
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
with:
49-
upload_url: ${{ steps.create_release.outputs.upload_url }}
50-
asset_path: ./${{ env.PLUGIN_NAME }}.zip
51-
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
52-
asset_content_type: application/zip
53-
- name: Upload main.js
54-
id: upload-main
55-
uses: actions/upload-release-asset@v1
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
with:
59-
upload_url: ${{ steps.create_release.outputs.upload_url }}
60-
asset_path: ./main.js
61-
asset_name: main.js
62-
asset_content_type: text/javascript
63-
- name: Upload manifest.json
64-
id: upload-manifest
65-
uses: actions/upload-release-asset@v1
66-
env:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68-
with:
69-
upload_url: ${{ steps.create_release.outputs.upload_url }}
70-
asset_path: ./manifest.json
71-
asset_name: manifest.json
72-
asset_content_type: application/json
73-
- name: Upload styles.css
74-
id: upload-css
75-
uses: actions/upload-release-asset@v1
76-
env:
77-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78-
with:
79-
upload_url: ${{ steps.create_release.outputs.upload_url }}
80-
asset_path: ./styles.css
81-
asset_name: styles.css
82-
asset_content_type: text/css
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: '14.x' # You might need to adjust this value to your own version
22+
- name: Build
23+
id: build
24+
run: |
25+
yarn
26+
yarn run build --if-present
27+
mkdir ${{ env.PLUGIN_NAME }}
28+
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
29+
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
30+
ls
31+
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
32+
- name: Create Release
33+
id: create_release
34+
uses: actions/create-release@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
VERSION: ${{ github.ref }}
38+
with:
39+
tag_name: ${{ github.ref }}
40+
release_name: ${{ github.ref }}
41+
draft: false
42+
prerelease: false
43+
- name: Upload zip file
44+
id: upload-zip
45+
uses: actions/upload-release-asset@v1
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
with:
49+
upload_url: ${{ steps.create_release.outputs.upload_url }}
50+
asset_path: ./${{ env.PLUGIN_NAME }}.zip
51+
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
52+
asset_content_type: application/zip
53+
- name: Upload main.js
54+
id: upload-main
55+
uses: actions/upload-release-asset@v1
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
with:
59+
upload_url: ${{ steps.create_release.outputs.upload_url }}
60+
asset_path: ./main.js
61+
asset_name: main.js
62+
asset_content_type: text/javascript
63+
- name: Upload manifest.json
64+
id: upload-manifest
65+
uses: actions/upload-release-asset@v1
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
with:
69+
upload_url: ${{ steps.create_release.outputs.upload_url }}
70+
asset_path: ./manifest.json
71+
asset_name: manifest.json
72+
asset_content_type: application/json
73+
- name: Upload styles.css
74+
id: upload-css
75+
uses: actions/upload-release-asset@v1
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
with:
79+
upload_url: ${{ steps.create_release.outputs.upload_url }}
80+
asset_path: ./styles.css
81+
asset_name: styles.css
82+
asset_content_type: text/css

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/lib
2+
node_modules
3+
package-lock.json
4+
exampleVault

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 180,
3+
"useTabs": true,
4+
"semi": true,
5+
"singleQuote": true,
6+
"arrowParens": "avoid"
7+
}

0 commit comments

Comments
 (0)