vue-list-picker
Advanced tools
Comparing version
module.exports = { | ||
presets: [ | ||
'@vue/app' | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
{ | ||
"name": "vue-list-picker", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Just a simple list picker component made with Vue.js", | ||
"homepage": "https://github.com/guastallaigor/vue-list-picker#readme", | ||
"author": "Igor Guastalla de Lima <limaguastallaigor@gmail.com>", | ||
"private": false, | ||
@@ -17,37 +20,37 @@ "scripts": { | ||
"dependencies": { | ||
"vue": "^2.6.12" | ||
"vue": "^2.6.14" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"@storybook/addon-actions": "^6.0.21", | ||
"@storybook/addon-backgrounds": "^6.0.21", | ||
"@storybook/addon-controls": "^6.0.21", | ||
"@storybook/addon-essentials": "^6.0.21", | ||
"@storybook/addon-knobs": "^6.0.21", | ||
"@storybook/addon-links": "^6.0.21", | ||
"@storybook/vue": "^6.0.21", | ||
"@vue/cli-plugin-babel": "^4.5.6", | ||
"@vue/cli-plugin-eslint": "^4.5.6", | ||
"@vue/cli-plugin-unit-jest": "^4.5.6", | ||
"@vue/cli-service": "^4.5.6", | ||
"@vue/eslint-config-standard": "^5.1.2", | ||
"@vue/test-utils": "^1.1.0", | ||
"babel-core": "7.0.0-bridge.0", | ||
"@babel/core": "^7.16.0", | ||
"@commitlint/cli": "^15.0.0", | ||
"@commitlint/config-conventional": "^15.0.0", | ||
"@storybook/addon-a11y": "^6.4.8", | ||
"@storybook/addon-actions": "^6.4.8", | ||
"@storybook/addon-backgrounds": "^6.4.8", | ||
"@storybook/addon-controls": "^6.4.8", | ||
"@storybook/addon-essentials": "^6.4.8", | ||
"@storybook/addon-links": "^6.4.8", | ||
"@storybook/theming": "^6.4.8", | ||
"@storybook/vue": "^6.4.8", | ||
"@vue/cli-plugin-babel": "^4.5.15", | ||
"@vue/cli-plugin-eslint": "^4.5.15", | ||
"@vue/cli-plugin-unit-jest": "^4.5.15", | ||
"@vue/cli-service": "^4.5.15", | ||
"@vue/eslint-config-standard": "^6.1.0", | ||
"@vue/test-utils": "^1.3.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^23.6.0", | ||
"babel-loader": "^8.1.0", | ||
"babel-jest": "^27.4.2", | ||
"babel-loader": "^8.2.3", | ||
"babel-preset-vue": "^2.0.2", | ||
"commitizen": "^4.2.1", | ||
"core-js": "^3.6.5", | ||
"eslint": "^7.9.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"commitizen": "^4.2.4", | ||
"core-js": "^3.19.3", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"husky": "^4.3.0", | ||
"react-is": "^16.13.1", | ||
"vue-cli-plugin-storybook": "^1.3.0", | ||
"vue-template-compiler": "^2.6.12" | ||
"eslint-plugin-promise": "^5.2.0", | ||
"eslint-plugin-standard": "^4.1.0", | ||
"eslint-plugin-vue": "^8.2.0", | ||
"husky": "^7.0.4", | ||
"vue-cli-plugin-storybook": "^2.1.0", | ||
"vue-template-compiler": "^2.6.14" | ||
}, | ||
@@ -117,3 +120,3 @@ "bugs": { | ||
} | ||
}, | ||
}, | ||
"browserslist": [ | ||
@@ -120,0 +123,0 @@ "> 1%", |
@@ -217,3 +217,3 @@ <p align="center"> | ||
<a href="https://www.buymeacoffee.com/guastallaigor" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a> | ||
[](https://ko-fi.com/C1C63QCB8) | ||
@@ -220,0 +220,0 @@ ## License |
@@ -0,22 +1,37 @@ | ||
// Import vue component | ||
import VueListPicker from './src/components/VueListPicker.vue' | ||
// Export components | ||
const Components = { | ||
VueListPicker | ||
// install function executed by Vue.use() | ||
const install = function (Vue) { | ||
if (install.installed) return | ||
install.installed = true | ||
Vue.component('VueListPicker', VueListPicker) | ||
} | ||
const VueListPickerPlugin = { | ||
install (Vue) { | ||
Object.keys(Components).forEach((name) => { | ||
Vue.component(name, Components[name]) | ||
}) | ||
} | ||
// Create module definition for Vue.use() | ||
const plugin = { install } | ||
// To auto-install when vue is found | ||
// eslint-disable-next-line no-redeclare | ||
/* global window, global */ | ||
let GlobalVue = null | ||
if (typeof window !== 'undefined') { | ||
GlobalVue = window.Vue | ||
} else if (typeof global !== 'undefined') { | ||
GlobalVue = global.Vue | ||
} | ||
// Export as a plugin | ||
export default VueListPickerPlugin | ||
if (GlobalVue) { | ||
GlobalVue.use(plugin) | ||
} | ||
// Export as individual components | ||
export { | ||
VueListPicker | ||
} | ||
// Inject install function into component - allows component | ||
// to be registered via Vue.use() as well as Vue.component() | ||
VueListPicker.install = install | ||
// Export component by default | ||
export default VueListPicker | ||
// Export single (backwards compatibility) | ||
export { VueListPicker } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
25408
0.55%41
36.67%0
-100%1
-50%Updated