Skip to content

Commit 2c65faf

Browse files
renovate[bot]renovate-botdword-design
authored
fix: lock file maintenance (#21)
Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: dword <[email protected]>
1 parent f0b68ee commit 2c65faf

File tree

5 files changed

+846
-852
lines changed

5 files changed

+846
-852
lines changed

.github/workflows/sync-metadata.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ jobs:
33
runs-on: ubuntu-latest
44
steps:
55
- uses: actions/checkout@v2
6-
- uses: dword-design/action-sync-node-meta@fork
6+
- uses: jaid/action-sync-node-meta@v2.0.0
77
with:
88
approve: false
9-
commitMessagePrefix: "fix:"
9+
commitMessage: "fix: write GitHub metadata to package.json [{changes}]"
1010
githubToken: ${{ secrets.GITHUB_TOKEN }}
1111
name: sync-metadata
1212
on:

.renovaterc.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,8 @@
1313
},
1414
"packageRules": [
1515
{
16-
"packagePatterns": [
17-
"*"
18-
],
19-
"semanticCommitType": "chore"
20-
},
21-
{
22-
"depTypeList": [
23-
"dependencies",
24-
"devDependencies",
25-
"peerDependencies",
26-
"optionalDependencies"
16+
"matchPaths": [
17+
"package.json"
2718
],
2819
"semanticCommitType": "fix"
2920
}

README.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
A Vue.js component that turns a Mermaid string into a diagram.
5454
<!-- /DESCRIPTION -->
5555

56+
<!-- INSTALL/ -->
5657
## Install Via a Package Manager
5758
```bash
5859
# npm
@@ -62,16 +63,18 @@ $ npm install vue-mermaid-string
6263
$ yarn add vue-mermaid-string
6364
```
6465

65-
Add to Local Components:
66+
Add to local components:
6667

6768
```js
69+
<script>
6870
import VueMermaidString from 'vue-mermaid-string'
6971

7072
export default {
7173
components: {
7274
VueMermaidString,
7375
},
7476
}
77+
</script>
7578
```
7679

7780
Or register as global component:
@@ -99,6 +102,54 @@ Vue.use(VueMermaidString)
99102
<script src="https://unpkg.com/mermaid/dist/mermaid.min.js"></script>
100103
<script src="https://unpkg.com/vue-mermaid-string"></script>
101104
```
105+
<!-- /INSTALL -->
106+
107+
<!--## Install Via a Package Manager
108+
```bash
109+
# npm
110+
$ npm install vue-mermaid-string
111+
112+
# Yarn
113+
$ yarn add vue-mermaid-string
114+
```
115+
116+
Add to Local Components:
117+
118+
```js
119+
import VueMermaidString from 'vue-mermaid-string'
120+
121+
export default {
122+
components: {
123+
VueMermaidString,
124+
},
125+
}
126+
```
127+
128+
Or register as global component:
129+
130+
```js
131+
import Vue from 'vue'
132+
import VueMermaidString from 'vue-mermaid-string'
133+
134+
Vue.component('VueMermaidString', VueMermaidString)
135+
```
136+
137+
Or register as plugin:
138+
139+
```js
140+
import Vue from 'vue'
141+
import VueMermaidString from 'vue-mermaid-string'
142+
143+
Vue.use(VueMermaidString)
144+
```
145+
146+
## Install Via CDN
147+
148+
```html
149+
<script src="https://unpkg.com/vue"></script>
150+
<script src="https://unpkg.com/mermaid/dist/mermaid.min.js"></script>
151+
<script src="https://unpkg.com/vue-mermaid-string"></script>
152+
```-->
102153

103154
## Usage
104155

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
},
4343
"baseConfig": {
4444
"name": "@dword-design/component",
45-
"testInContainer": true
45+
"testInContainer": true,
46+
"cdnExtraScripts": [
47+
"<script src=\"https://unpkg.com/mermaid/dist/mermaid.min.js\"></script>"
48+
]
4649
}
4750
}

0 commit comments

Comments
 (0)