diff --git a/rollup.config.mjs b/rollup.config.mjs index c27dc06471784469d8645ba3c69bf2c1ba99a781..c56cb04e77f2bcdc8dafab1d84faa52b35f566ee 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,21 +1,19 @@ -import vue from 'rollup-plugin-vue' -import peerDepsExternal from 'rollup-plugin-peer-deps-external' +import vue from "rollup-plugin-vue"; +import peerDepsExternal from "rollup-plugin-peer-deps-external"; export default [ - { - input: 'src/index.js', - output: [ - { - format: 'esm', - file: 'dist/vue-draggable-grid.mjs' - }, - { - format: 'cjs', - file: 'dist/vue-draggable-grid.js' - } - ], - plugins: [ - vue(), peerDepsExternal() - ] - } -] \ No newline at end of file + { + input: "src/index.js", + output: [ + { + format: "esm", + file: "dist/vue-draggable-grid.mjs", + }, + { + format: "cjs", + file: "dist/vue-draggable-grid.js", + }, + ], + plugins: [vue(), peerDepsExternal()], + }, +]; diff --git a/src/DragContainer.vue b/src/DragContainer.vue index b9cb3c2ff9fe23348bc9049b1c2ab958f4a4f6b5..6ee405155b0d90756e93a7b234bf168a0db898f0 100644 --- a/src/DragContainer.vue +++ b/src/DragContainer.vue @@ -23,4 +23,4 @@ export default { width: 100%; height: 100%; } -</style> \ No newline at end of file +</style> diff --git a/src/Grid.vue b/src/Grid.vue index 4f001d2f5fb7290965138352c5b6fc964c1b46f0..e1cb4974308acf5be967cec92f2dd40c944f770b 100644 --- a/src/Grid.vue +++ b/src/Grid.vue @@ -12,12 +12,12 @@ export default { props: { rows: { type: Number, - required: true + required: true, }, cols: { type: Number, - required: true - } + required: true, + }, }, methods: { handleDrop(event) { @@ -33,4 +33,4 @@ export default { background: darkgrey; border: grey dashed 2px; } -</style> \ No newline at end of file +</style> diff --git a/src/components.js b/src/components.js index 60479b9437e8a59500ebf9ed51cdece526052842..e87f7ccfc3ff9c024dc821d1a68384bb47d8efaa 100644 --- a/src/components.js +++ b/src/components.js @@ -1,4 +1,4 @@ import DragContainer from "./DragContainer.vue"; import Grid from "./Grid.vue"; -export default {DragContainer, Grid}; +export default { DragContainer, Grid }; diff --git a/src/index.js b/src/index.js index 4db1c91ed3adc02e0fb1a19039eb03d969d4f4ec..60b634fe23eb6117810987a5a8cb03db4c950fc7 100644 --- a/src/index.js +++ b/src/index.js @@ -1,14 +1,14 @@ import components from "./components"; const plugin = { - install(Vue) { - for (const prop in components) { - if (components.hasOwnProperty(prop)) { - const component = components[prop]; - Vue.component(component.name, component); - } - } + install(Vue) { + for (const prop in components) { + if (components.hasOwnProperty(prop)) { + const component = components[prop]; + Vue.component(component.name, component); + } } -} + }, +}; -export default plugin; \ No newline at end of file +export default plugin;