Skip to content

Commit 1316256

Browse files
authored
Merge pull request #16 from chantouchsek/bugfix/fix-vue-use-in-nuxt-module
Fix vue use in nuxt module
2 parents b2a5f74 + 27a1ec4 commit 1316256

File tree

7 files changed

+170
-429
lines changed

7 files changed

+170
-429
lines changed

.github/dependabot.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ updates:
88
time: '00:00'
99
open-pull-requests-limit: 10
1010
reviewers:
11-
- chantouch
11+
- chantouchsek
1212
assignees:
13-
- chantouch
13+
- chantouchsek
1414
commit-message:
1515
prefix: fix
1616
prefix-development: chore
@@ -23,9 +23,9 @@ updates:
2323
time: '00:00'
2424
open-pull-requests-limit: 10
2525
reviewers:
26-
- chantouch
26+
- chantouchsek
2727
assignees:
28-
- chantouch
28+
- chantouchsek
2929
commit-message:
3030
prefix: fix
3131
prefix-development: chore

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
npm-debug.log
44
.idea/*
55
coverage/*
6+
yarn-error.log

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Chantouch Sek <chantouchsek.cs83@gmail.com>
3+
Copyright (c) 2020-Present Chantouch Sek <chantouchsek.cs83@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ export default {
5050

5151
[The MIT License (MIT)](./LICENSE.md)
5252

53-
Copyright (c) Chantouch Sek
53+
Copyright (c) 2020 Chantouch Sek

package.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "index.d.ts",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 0",
9-
"release": "standard-version"
9+
"release": "standard-version && git push --follow-tags origin main && yarn publish"
1010
},
1111
"repository": {
1212
"type": "git",
@@ -19,19 +19,23 @@
1919
"clipboard",
2020
"clipboard2",
2121
"vue-clipboard2",
22-
"nuxt-clipboard",
22+
"nuxt-clipboard"
2323
],
24-
"author": "Touch",
24+
"author": {
25+
"email": "chantouchsek.cs83@gmail.com",
26+
"name": "Chantouch Sek",
27+
"url": "https://chantouch.me"
28+
},
2529
"license": "ISC",
2630
"bugs": {
2731
"url": "https://github.com/chantouchsek/nuxt-clipboard/issues"
2832
},
2933
"homepage": "https://github.com/chantouchsek/nuxt-clipboard#readme",
3034
"dependencies": {
31-
"vue-clipboard2": "^0.3.1"
35+
"vue-clipboard2": "^0.3.3"
3236
},
3337
"devDependencies": {
34-
"standard-version": "^9.3.1",
38+
"standard-version": "^9.3.2",
3539
"vue": "^2.6.14"
3640
}
3741
}

templates/vue-clipboard.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import Vue from 'vue'
22
import VueClipboard from 'vue-clipboard2'
33

4-
export default ({ app }) => {
5-
const { autoSetContainer = false } = <%= serialize(options) %> || {}
4+
const { autoSetContainer = false } = <%= serialize(options) %> || {}
65

7-
VueClipboard.config.autoSetContainer = autoSetContainer
8-
Vue.use(VueClipboard)
9-
}
6+
VueClipboard.config.autoSetContainer = autoSetContainer
7+
Vue.use(VueClipboard)

0 commit comments

Comments
 (0)