Skip to content

Commit

Permalink
Merge pull request #16 from chantouchsek/bugfix/fix-vue-use-in-nuxt-m…
Browse files Browse the repository at this point in the history
…odule

Fix vue use in nuxt module
  • Loading branch information
chantouchsek authored Jan 3, 2022
2 parents b2a5f74 + 27a1ec4 commit 1316256
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 429 deletions.
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ updates:
time: '00:00'
open-pull-requests-limit: 10
reviewers:
- chantouch
- chantouchsek
assignees:
- chantouch
- chantouchsek
commit-message:
prefix: fix
prefix-development: chore
Expand All @@ -23,9 +23,9 @@ updates:
time: '00:00'
open-pull-requests-limit: 10
reviewers:
- chantouch
- chantouchsek
assignees:
- chantouch
- chantouchsek
commit-message:
prefix: fix
prefix-development: chore
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
npm-debug.log
.idea/*
coverage/*
yarn-error.log
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) Chantouch Sek <[email protected]>
Copyright (c) 2020-Present Chantouch Sek <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ export default {

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

Copyright (c) Chantouch Sek
Copyright (c) 2020 Chantouch Sek
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0",
"release": "standard-version"
"release": "standard-version && git push --follow-tags origin main && yarn publish"
},
"repository": {
"type": "git",
Expand All @@ -19,19 +19,23 @@
"clipboard",
"clipboard2",
"vue-clipboard2",
"nuxt-clipboard",
"nuxt-clipboard"
],
"author": "Touch",
"author": {
"email": "[email protected]",
"name": "Chantouch Sek",
"url": "https://chantouch.me"
},
"license": "ISC",
"bugs": {
"url": "https://github.com/chantouchsek/nuxt-clipboard/issues"
},
"homepage": "https://github.com/chantouchsek/nuxt-clipboard#readme",
"dependencies": {
"vue-clipboard2": "^0.3.1"
"vue-clipboard2": "^0.3.3"
},
"devDependencies": {
"standard-version": "^9.3.1",
"standard-version": "^9.3.2",
"vue": "^2.6.14"
}
}
8 changes: 3 additions & 5 deletions templates/vue-clipboard.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import Vue from 'vue'
import VueClipboard from 'vue-clipboard2'

export default ({ app }) => {
const { autoSetContainer = false } = <%= serialize(options) %> || {}
const { autoSetContainer = false } = <%= serialize(options) %> || {}

VueClipboard.config.autoSetContainer = autoSetContainer
Vue.use(VueClipboard)
}
VueClipboard.config.autoSetContainer = autoSetContainer
Vue.use(VueClipboard)
Loading

0 comments on commit 1316256

Please sign in to comment.