Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vue use in nuxt module #16

Merged
merged 6 commits into from
Jan 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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