From b13f10ee2dceb6af19b62c5f65802bb2abbed7f6 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Sun, 26 May 2019 10:56:47 +0300 Subject: [PATCH] Include vue files to publish as well --- build-lib.js | 2 +- exports/accordion.js | 2 +- exports/accordiontab.js | 2 +- exports/autocomplete.js | 2 +- exports/button.js | 2 +- exports/calendar.js | 2 +- exports/card.js | 2 +- exports/chart.js | 2 +- exports/checkbox.js | 2 +- exports/chips.js | 2 +- exports/dataview.js | 2 +- exports/dataviewlayoutoptions.js | 2 +- exports/dialog.js | 2 +- exports/dropdown.js | 2 +- exports/editor.js | 2 +- exports/fieldset.js | 2 +- exports/fileupload.js | 2 +- exports/fullcalendar.js | 2 +- exports/inputswitch.js | 2 +- exports/inputtext.js | 2 +- exports/listbox.js | 2 +- exports/message.js | 2 +- exports/multiselect.js | 2 +- exports/overlaypanel.js | 2 +- exports/paginator.js | 2 +- exports/panel.js | 2 +- exports/password.js | 2 +- exports/progressbar.js | 2 +- exports/radiobutton.js | 2 +- exports/rating.js | 2 +- exports/selectbutton.js | 2 +- exports/sidebar.js | 2 +- exports/slider.js | 2 +- exports/spinner.js | 2 +- exports/splitbutton.js | 2 +- exports/tabpanel.js | 2 +- exports/tabview.js | 2 +- exports/textarea.js | 2 +- exports/toast.js | 2 +- exports/toasteventbus.js | 3 --- exports/toastservice.js | 2 +- exports/togglebutton.js | 2 +- exports/toolbar.js | 2 +- exports/tristatecheckbox.js | 2 +- exports/validationmessage.js | 2 +- gulpfile.js | 5 +++++ package.json | 2 +- 47 files changed, 50 insertions(+), 48 deletions(-) delete mode 100644 exports/toasteventbus.js diff --git a/build-lib.js b/build-lib.js index 7895ed261..e7ec12148 100644 --- a/build-lib.js +++ b/build-lib.js @@ -6,7 +6,7 @@ const vueCliServicePath = path.resolve(__dirname, 'node_modules/@vue/cli-service fs.readdirSync(path.resolve(__dirname, './src/components/')).forEach(folder => { fs.readdirSync(path.resolve(__dirname, './src/components/' + folder)).forEach(file => { if (/\.vue$/.test(file) || /\.js$/.test(file)) { - let filename = file.split('.vue')[0].toLowerCase(); + let filename = file.split(/(.vue)$|(.js)$/)[0].toLowerCase(); console.log('Building ' + filename); execSync( diff --git a/exports/accordion.js b/exports/accordion.js index 4ddce425f..df0061621 100644 --- a/exports/accordion.js +++ b/exports/accordion.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/accordion/accordion.common'); +module.exports = require('./components/accordion/Accordion.vue'); \ No newline at end of file diff --git a/exports/accordiontab.js b/exports/accordiontab.js index ba5e88cb3..8c960c290 100644 --- a/exports/accordiontab.js +++ b/exports/accordiontab.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/accordiontab/accordiontab.common'); +module.exports = require('./components/accordiontab/AccordionTab.vue'); \ No newline at end of file diff --git a/exports/autocomplete.js b/exports/autocomplete.js index aa7228fc4..c9c244fab 100644 --- a/exports/autocomplete.js +++ b/exports/autocomplete.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/autocomplete/autocomplete.common'); +module.exports = require('./components/autocomplete/AutoComplete.vue'); \ No newline at end of file diff --git a/exports/button.js b/exports/button.js index f3801993a..e8e9c5123 100644 --- a/exports/button.js +++ b/exports/button.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/button/button.common'); +module.exports = require('./components/button/Button.vue'); \ No newline at end of file diff --git a/exports/calendar.js b/exports/calendar.js index 18bfa75e7..f3b1eed8e 100644 --- a/exports/calendar.js +++ b/exports/calendar.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/calendar/calendar.common'); +module.exports = require('./components/calendar/Calendar.vue'); \ No newline at end of file diff --git a/exports/card.js b/exports/card.js index e156b1468..4e10e0527 100644 --- a/exports/card.js +++ b/exports/card.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/card/card.common'); +module.exports = require('./components/card/Card.vue'); \ No newline at end of file diff --git a/exports/chart.js b/exports/chart.js index ccba02949..74845773a 100644 --- a/exports/chart.js +++ b/exports/chart.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/chart/chart.common'); +module.exports = require('./components/chart/Chart.vue'); \ No newline at end of file diff --git a/exports/checkbox.js b/exports/checkbox.js index 647d7de1f..1a5caa5c7 100644 --- a/exports/checkbox.js +++ b/exports/checkbox.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/checkbox/checkbox.common'); +module.exports = require('./components/checkbox/Checkbox.vue'); \ No newline at end of file diff --git a/exports/chips.js b/exports/chips.js index b428b1fad..dc7312766 100644 --- a/exports/chips.js +++ b/exports/chips.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/chips/chips.common'); +module.exports = require('./components/chips/Chips.vue'); \ No newline at end of file diff --git a/exports/dataview.js b/exports/dataview.js index ad12db53c..e575b6f69 100644 --- a/exports/dataview.js +++ b/exports/dataview.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/dataview/dataview.common'); +module.exports = require('./components/dataview/DataView.vue'); \ No newline at end of file diff --git a/exports/dataviewlayoutoptions.js b/exports/dataviewlayoutoptions.js index fac6329db..542960116 100644 --- a/exports/dataviewlayoutoptions.js +++ b/exports/dataviewlayoutoptions.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/dataviewlayoutoptions/dataviewlayoutoptions.common'); +module.exports = require('./components/dataviewlayoutoptions/DataViewLayoutOptions.vue'); \ No newline at end of file diff --git a/exports/dialog.js b/exports/dialog.js index c443ff53c..f90f45368 100644 --- a/exports/dialog.js +++ b/exports/dialog.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/dialog/dialog.common'); +module.exports = require('./components/dialog/Dialog.vue'); \ No newline at end of file diff --git a/exports/dropdown.js b/exports/dropdown.js index 806bdd795..abc5107b4 100644 --- a/exports/dropdown.js +++ b/exports/dropdown.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/dropdown/dropdown.common'); +module.exports = require('./components/dropdown/Dropdown.vue'); \ No newline at end of file diff --git a/exports/editor.js b/exports/editor.js index b03d559ab..9b3d08e89 100644 --- a/exports/editor.js +++ b/exports/editor.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/editor/editor.common'); +module.exports = require('./components/editor/Editor.vue'); \ No newline at end of file diff --git a/exports/fieldset.js b/exports/fieldset.js index 8bdbec3c1..db6e1bf8b 100644 --- a/exports/fieldset.js +++ b/exports/fieldset.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/fieldset/fieldset.common'); +module.exports = require('./components/fieldset/Fieldset.vue'); \ No newline at end of file diff --git a/exports/fileupload.js b/exports/fileupload.js index d02147dfb..4c8202915 100644 --- a/exports/fileupload.js +++ b/exports/fileupload.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/fileupload/fileupload.common'); +module.exports = require('./components/fileupload/FileUpload.vue'); \ No newline at end of file diff --git a/exports/fullcalendar.js b/exports/fullcalendar.js index 1e8a83aa6..01397b1ab 100644 --- a/exports/fullcalendar.js +++ b/exports/fullcalendar.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/fullcalendar/fullcalendar.common'); +module.exports = require('./components/fullcalendar/FullCalendar.vue'); \ No newline at end of file diff --git a/exports/inputswitch.js b/exports/inputswitch.js index 71d0cca37..988dc10f5 100644 --- a/exports/inputswitch.js +++ b/exports/inputswitch.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/inputswitch/inputswitch.common'); +module.exports = require('./components/inputswitch/InputSwitch.vue'); \ No newline at end of file diff --git a/exports/inputtext.js b/exports/inputtext.js index 25878bd3c..2fcebf21a 100644 --- a/exports/inputtext.js +++ b/exports/inputtext.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/inputtext/inputtext.common'); +module.exports = require('./components/inputtext/InputText.vue'); \ No newline at end of file diff --git a/exports/listbox.js b/exports/listbox.js index d4f6a9af4..52585d3c5 100644 --- a/exports/listbox.js +++ b/exports/listbox.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/listbox/listbox.common'); +module.exports = require('./components/listbox/Listbox.vue'); \ No newline at end of file diff --git a/exports/message.js b/exports/message.js index a090ba28c..426168a0d 100644 --- a/exports/message.js +++ b/exports/message.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/message/message.common'); +module.exports = require('./components/message/Message.vue'); \ No newline at end of file diff --git a/exports/multiselect.js b/exports/multiselect.js index 1cc05d9be..ac4d06d92 100644 --- a/exports/multiselect.js +++ b/exports/multiselect.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/multiselect/multiselect.common'); +module.exports = require('./components/multiselect/MultiSelect.vue'); \ No newline at end of file diff --git a/exports/overlaypanel.js b/exports/overlaypanel.js index 88f28d05e..4c65ecdb0 100644 --- a/exports/overlaypanel.js +++ b/exports/overlaypanel.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/overlaypanel/overlaypanel.common'); +module.exports = require('./components/overlaypanel/OverlayPanel.vue'); \ No newline at end of file diff --git a/exports/paginator.js b/exports/paginator.js index 84bd645d0..f01d7797d 100644 --- a/exports/paginator.js +++ b/exports/paginator.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/paginator/paginator.common'); +module.exports = require('./components/paginator/Paginator.vue'); \ No newline at end of file diff --git a/exports/panel.js b/exports/panel.js index 194381e63..73c243986 100644 --- a/exports/panel.js +++ b/exports/panel.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/panel/panel.common'); +module.exports = require('./components/panel/Panel.vue'); \ No newline at end of file diff --git a/exports/password.js b/exports/password.js index 4af07e464..885e64d09 100644 --- a/exports/password.js +++ b/exports/password.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/password/password.common'); +module.exports = require('./components/password/Password.vue'); \ No newline at end of file diff --git a/exports/progressbar.js b/exports/progressbar.js index 9f7d04bee..5f76cfd26 100644 --- a/exports/progressbar.js +++ b/exports/progressbar.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/progressbar/progressbar.common'); +module.exports = require('./components/progressbar/ProgressBar.vue'); \ No newline at end of file diff --git a/exports/radiobutton.js b/exports/radiobutton.js index 1af1f66fb..b219453a4 100644 --- a/exports/radiobutton.js +++ b/exports/radiobutton.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/radiobutton/radiobutton.common'); +module.exports = require('./components/radiobutton/RadioButton.vue'); \ No newline at end of file diff --git a/exports/rating.js b/exports/rating.js index 731e1b8fb..967b4340d 100644 --- a/exports/rating.js +++ b/exports/rating.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/rating/rating.common'); +module.exports = require('./components/rating/Rating.vue'); \ No newline at end of file diff --git a/exports/selectbutton.js b/exports/selectbutton.js index 1aafab5d8..15fbedd7f 100644 --- a/exports/selectbutton.js +++ b/exports/selectbutton.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/selectbutton/selectbutton.common'); +module.exports = require('./components/selectbutton/SelectButton.vue'); \ No newline at end of file diff --git a/exports/sidebar.js b/exports/sidebar.js index 4c8bb766f..7d0a4f596 100644 --- a/exports/sidebar.js +++ b/exports/sidebar.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/sidebar/sidebar.common'); +module.exports = require('./components/sidebar/Sidebar.vue'); \ No newline at end of file diff --git a/exports/slider.js b/exports/slider.js index 9c73ef677..bf01c6f69 100644 --- a/exports/slider.js +++ b/exports/slider.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/slider/slider.common'); +module.exports = require('./components/slider/Slider.vue'); \ No newline at end of file diff --git a/exports/spinner.js b/exports/spinner.js index e05836bc7..589c656c3 100644 --- a/exports/spinner.js +++ b/exports/spinner.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/spinner/spinner.common'); +module.exports = require('./components/spinner/Spinner.vue'); \ No newline at end of file diff --git a/exports/splitbutton.js b/exports/splitbutton.js index 5e52c9aa8..15170ca35 100644 --- a/exports/splitbutton.js +++ b/exports/splitbutton.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/splitbutton/splitbutton.common'); +module.exports = require('./components/splitbutton/SplitButton.vue'); \ No newline at end of file diff --git a/exports/tabpanel.js b/exports/tabpanel.js index 568e92ad4..5200cd3ef 100644 --- a/exports/tabpanel.js +++ b/exports/tabpanel.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/tabpanel/tabpanel.common'); +module.exports = require('./components/tabpanel/TabPanel.vue'); \ No newline at end of file diff --git a/exports/tabview.js b/exports/tabview.js index d1bca55f8..8aee94fba 100644 --- a/exports/tabview.js +++ b/exports/tabview.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/tabview/tabview.common'); +module.exports = require('./components/tabview/TabView.vue'); \ No newline at end of file diff --git a/exports/textarea.js b/exports/textarea.js index ac4918072..a1cc89ee9 100644 --- a/exports/textarea.js +++ b/exports/textarea.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/textarea/textarea.common'); +module.exports = require('./components/textarea/Textarea.vue'); \ No newline at end of file diff --git a/exports/toast.js b/exports/toast.js index 8ee33c506..80c8c3b62 100644 --- a/exports/toast.js +++ b/exports/toast.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/toast/toast.common'); +module.exports = require('./components/toast/Toast.vue'); \ No newline at end of file diff --git a/exports/toasteventbus.js b/exports/toasteventbus.js deleted file mode 100644 index c47c5a9e9..000000000 --- a/exports/toasteventbus.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; -module.exports = require('./components/toast/toasteventbus.js.common'); - \ No newline at end of file diff --git a/exports/toastservice.js b/exports/toastservice.js index 4d820b4b0..eeac4dae0 100644 --- a/exports/toastservice.js +++ b/exports/toastservice.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/toast/toastservice.js.common'); +module.exports = require('./components/toast/ToastService.js'); \ No newline at end of file diff --git a/exports/togglebutton.js b/exports/togglebutton.js index 323d37fa9..496d452d9 100644 --- a/exports/togglebutton.js +++ b/exports/togglebutton.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/togglebutton/togglebutton.common'); +module.exports = require('./components/togglebutton/ToggleButton.vue'); \ No newline at end of file diff --git a/exports/toolbar.js b/exports/toolbar.js index 19db26729..63352f68c 100644 --- a/exports/toolbar.js +++ b/exports/toolbar.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/toolbar/toolbar.common'); +module.exports = require('./components/toolbar/Toolbar.vue'); \ No newline at end of file diff --git a/exports/tristatecheckbox.js b/exports/tristatecheckbox.js index 7b6ddc9a3..46c537f3f 100644 --- a/exports/tristatecheckbox.js +++ b/exports/tristatecheckbox.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/tristatecheckbox/tristatecheckbox.common'); +module.exports = require('./components/tristatecheckbox/TriStateCheckbox.vue'); \ No newline at end of file diff --git a/exports/validationmessage.js b/exports/validationmessage.js index 09cfc2980..e214b64ef 100644 --- a/exports/validationmessage.js +++ b/exports/validationmessage.js @@ -1,3 +1,3 @@ 'use strict'; -module.exports = require('./components/validationmessage/validationmessage.common'); +module.exports = require('./components/validationmessage/ValidationMessage.vue'); \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 8362bbb75..070845279 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,6 +6,11 @@ var gulp = require('gulp'), rename = require('gulp-rename'), del = require('del'), flatten = require('gulp-flatten'); + +gulp.task('copy-components', function() { + return gulp.src(['src/components/**/*']) + .pipe(gulp.dest('./components')); +}); gulp.task('build-css', function() { return gulp.src([ diff --git a/package.json b/package.json index 8bc829415..1e00ada66 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "serve": "vue-cli-service serve", "build-app": "vue-cli-service build", - "build-lib": "node build-lib", + "build-lib": "node build-lib && gulp copy-components", "build-resources": "gulp build-resources", "build-exports": "gulp build-exports", "lint": "vue-cli-service lint",