From 2b03fca1b21229564641b3f95472443c5f5e4597 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Sat, 25 May 2019 19:10:26 +0300 Subject: [PATCH] Add exports --- build-lib.js | 10 +--------- exports/accordion.js | 3 +++ exports/accordiontab.js | 3 +++ exports/autocomplete.js | 3 +++ exports/button.js | 3 +++ exports/calendar.js | 3 +++ exports/card.js | 3 +++ exports/chart.js | 3 +++ exports/checkbox.js | 3 +++ exports/chips.js | 3 +++ exports/dataview.js | 3 +++ exports/dataviewlayoutoptions.js | 3 +++ exports/dialog.js | 3 +++ exports/dropdown.js | 3 +++ exports/editor.js | 3 +++ exports/fieldset.js | 3 +++ exports/fileupload.js | 3 +++ exports/fullcalendar.js | 3 +++ exports/inputswitch.js | 3 +++ exports/inputtext.js | 3 +++ exports/listbox.js | 3 +++ exports/message.js | 3 +++ exports/multiselect.js | 3 +++ exports/overlaypanel.js | 3 +++ exports/paginator.js | 3 +++ exports/panel.js | 3 +++ exports/password.js | 3 +++ exports/progressbar.js | 3 +++ exports/radiobutton.js | 3 +++ exports/rating.js | 3 +++ exports/selectbutton.js | 3 +++ exports/sidebar.js | 3 +++ exports/slider.js | 3 +++ exports/spinner.js | 3 +++ exports/splitbutton.js | 3 +++ exports/tabpanel.js | 3 +++ exports/tabview.js | 3 +++ exports/textarea.js | 3 +++ exports/toast.js | 3 +++ exports/toasteventbus.js | 3 +++ exports/toastservice.js | 3 +++ exports/togglebutton.js | 3 +++ exports/toolbar.js | 3 +++ exports/tristatecheckbox.js | 3 +++ exports/validationmessage.js | 3 +++ 45 files changed, 133 insertions(+), 9 deletions(-) create mode 100644 exports/accordion.js create mode 100644 exports/accordiontab.js create mode 100644 exports/autocomplete.js create mode 100644 exports/button.js create mode 100644 exports/calendar.js create mode 100644 exports/card.js create mode 100644 exports/chart.js create mode 100644 exports/checkbox.js create mode 100644 exports/chips.js create mode 100644 exports/dataview.js create mode 100644 exports/dataviewlayoutoptions.js create mode 100644 exports/dialog.js create mode 100644 exports/dropdown.js create mode 100644 exports/editor.js create mode 100644 exports/fieldset.js create mode 100644 exports/fileupload.js create mode 100644 exports/fullcalendar.js create mode 100644 exports/inputswitch.js create mode 100644 exports/inputtext.js create mode 100644 exports/listbox.js create mode 100644 exports/message.js create mode 100644 exports/multiselect.js create mode 100644 exports/overlaypanel.js create mode 100644 exports/paginator.js create mode 100644 exports/panel.js create mode 100644 exports/password.js create mode 100644 exports/progressbar.js create mode 100644 exports/radiobutton.js create mode 100644 exports/rating.js create mode 100644 exports/selectbutton.js create mode 100644 exports/sidebar.js create mode 100644 exports/slider.js create mode 100644 exports/spinner.js create mode 100644 exports/splitbutton.js create mode 100644 exports/tabpanel.js create mode 100644 exports/tabview.js create mode 100644 exports/textarea.js create mode 100644 exports/toast.js create mode 100644 exports/toasteventbus.js create mode 100644 exports/toastservice.js create mode 100644 exports/togglebutton.js create mode 100644 exports/toolbar.js create mode 100644 exports/tristatecheckbox.js create mode 100644 exports/validationmessage.js diff --git a/build-lib.js b/build-lib.js index cfe05468b..7895ed261 100644 --- a/build-lib.js +++ b/build-lib.js @@ -7,19 +7,11 @@ 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(); + console.log('Building ' + filename); execSync( `node ${vueCliServicePath} build src/components/${folder}/${file} --target lib --name ${filename} --dest components/${folder} --no-clean ` ) - - let shorthandContent = - `'use strict';\nmodule.exports = require('./components/${folder}/${filename}.common'); - `; - - fs.writeFileSync('./exports' + filename +'.js', shorthandContent, function (err) { - if (err) throw err; - console.log('Saved!'); - }); } }); }); \ No newline at end of file diff --git a/exports/accordion.js b/exports/accordion.js new file mode 100644 index 000000000..4ddce425f --- /dev/null +++ b/exports/accordion.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/accordion/accordion.common'); + \ No newline at end of file diff --git a/exports/accordiontab.js b/exports/accordiontab.js new file mode 100644 index 000000000..ba5e88cb3 --- /dev/null +++ b/exports/accordiontab.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/accordiontab/accordiontab.common'); + \ No newline at end of file diff --git a/exports/autocomplete.js b/exports/autocomplete.js new file mode 100644 index 000000000..aa7228fc4 --- /dev/null +++ b/exports/autocomplete.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/autocomplete/autocomplete.common'); + \ No newline at end of file diff --git a/exports/button.js b/exports/button.js new file mode 100644 index 000000000..f3801993a --- /dev/null +++ b/exports/button.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/button/button.common'); + \ No newline at end of file diff --git a/exports/calendar.js b/exports/calendar.js new file mode 100644 index 000000000..18bfa75e7 --- /dev/null +++ b/exports/calendar.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/calendar/calendar.common'); + \ No newline at end of file diff --git a/exports/card.js b/exports/card.js new file mode 100644 index 000000000..e156b1468 --- /dev/null +++ b/exports/card.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/card/card.common'); + \ No newline at end of file diff --git a/exports/chart.js b/exports/chart.js new file mode 100644 index 000000000..ccba02949 --- /dev/null +++ b/exports/chart.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/chart/chart.common'); + \ No newline at end of file diff --git a/exports/checkbox.js b/exports/checkbox.js new file mode 100644 index 000000000..647d7de1f --- /dev/null +++ b/exports/checkbox.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/checkbox/checkbox.common'); + \ No newline at end of file diff --git a/exports/chips.js b/exports/chips.js new file mode 100644 index 000000000..b428b1fad --- /dev/null +++ b/exports/chips.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/chips/chips.common'); + \ No newline at end of file diff --git a/exports/dataview.js b/exports/dataview.js new file mode 100644 index 000000000..ad12db53c --- /dev/null +++ b/exports/dataview.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/dataview/dataview.common'); + \ No newline at end of file diff --git a/exports/dataviewlayoutoptions.js b/exports/dataviewlayoutoptions.js new file mode 100644 index 000000000..fac6329db --- /dev/null +++ b/exports/dataviewlayoutoptions.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/dataviewlayoutoptions/dataviewlayoutoptions.common'); + \ No newline at end of file diff --git a/exports/dialog.js b/exports/dialog.js new file mode 100644 index 000000000..c443ff53c --- /dev/null +++ b/exports/dialog.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/dialog/dialog.common'); + \ No newline at end of file diff --git a/exports/dropdown.js b/exports/dropdown.js new file mode 100644 index 000000000..806bdd795 --- /dev/null +++ b/exports/dropdown.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/dropdown/dropdown.common'); + \ No newline at end of file diff --git a/exports/editor.js b/exports/editor.js new file mode 100644 index 000000000..b03d559ab --- /dev/null +++ b/exports/editor.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/editor/editor.common'); + \ No newline at end of file diff --git a/exports/fieldset.js b/exports/fieldset.js new file mode 100644 index 000000000..8bdbec3c1 --- /dev/null +++ b/exports/fieldset.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/fieldset/fieldset.common'); + \ No newline at end of file diff --git a/exports/fileupload.js b/exports/fileupload.js new file mode 100644 index 000000000..d02147dfb --- /dev/null +++ b/exports/fileupload.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/fileupload/fileupload.common'); + \ No newline at end of file diff --git a/exports/fullcalendar.js b/exports/fullcalendar.js new file mode 100644 index 000000000..1e8a83aa6 --- /dev/null +++ b/exports/fullcalendar.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/fullcalendar/fullcalendar.common'); + \ No newline at end of file diff --git a/exports/inputswitch.js b/exports/inputswitch.js new file mode 100644 index 000000000..71d0cca37 --- /dev/null +++ b/exports/inputswitch.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/inputswitch/inputswitch.common'); + \ No newline at end of file diff --git a/exports/inputtext.js b/exports/inputtext.js new file mode 100644 index 000000000..25878bd3c --- /dev/null +++ b/exports/inputtext.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/inputtext/inputtext.common'); + \ No newline at end of file diff --git a/exports/listbox.js b/exports/listbox.js new file mode 100644 index 000000000..d4f6a9af4 --- /dev/null +++ b/exports/listbox.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/listbox/listbox.common'); + \ No newline at end of file diff --git a/exports/message.js b/exports/message.js new file mode 100644 index 000000000..a090ba28c --- /dev/null +++ b/exports/message.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/message/message.common'); + \ No newline at end of file diff --git a/exports/multiselect.js b/exports/multiselect.js new file mode 100644 index 000000000..1cc05d9be --- /dev/null +++ b/exports/multiselect.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/multiselect/multiselect.common'); + \ No newline at end of file diff --git a/exports/overlaypanel.js b/exports/overlaypanel.js new file mode 100644 index 000000000..88f28d05e --- /dev/null +++ b/exports/overlaypanel.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/overlaypanel/overlaypanel.common'); + \ No newline at end of file diff --git a/exports/paginator.js b/exports/paginator.js new file mode 100644 index 000000000..84bd645d0 --- /dev/null +++ b/exports/paginator.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/paginator/paginator.common'); + \ No newline at end of file diff --git a/exports/panel.js b/exports/panel.js new file mode 100644 index 000000000..194381e63 --- /dev/null +++ b/exports/panel.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/panel/panel.common'); + \ No newline at end of file diff --git a/exports/password.js b/exports/password.js new file mode 100644 index 000000000..4af07e464 --- /dev/null +++ b/exports/password.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/password/password.common'); + \ No newline at end of file diff --git a/exports/progressbar.js b/exports/progressbar.js new file mode 100644 index 000000000..9f7d04bee --- /dev/null +++ b/exports/progressbar.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/progressbar/progressbar.common'); + \ No newline at end of file diff --git a/exports/radiobutton.js b/exports/radiobutton.js new file mode 100644 index 000000000..1af1f66fb --- /dev/null +++ b/exports/radiobutton.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/radiobutton/radiobutton.common'); + \ No newline at end of file diff --git a/exports/rating.js b/exports/rating.js new file mode 100644 index 000000000..731e1b8fb --- /dev/null +++ b/exports/rating.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/rating/rating.common'); + \ No newline at end of file diff --git a/exports/selectbutton.js b/exports/selectbutton.js new file mode 100644 index 000000000..1aafab5d8 --- /dev/null +++ b/exports/selectbutton.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/selectbutton/selectbutton.common'); + \ No newline at end of file diff --git a/exports/sidebar.js b/exports/sidebar.js new file mode 100644 index 000000000..4c8bb766f --- /dev/null +++ b/exports/sidebar.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/sidebar/sidebar.common'); + \ No newline at end of file diff --git a/exports/slider.js b/exports/slider.js new file mode 100644 index 000000000..9c73ef677 --- /dev/null +++ b/exports/slider.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/slider/slider.common'); + \ No newline at end of file diff --git a/exports/spinner.js b/exports/spinner.js new file mode 100644 index 000000000..e05836bc7 --- /dev/null +++ b/exports/spinner.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/spinner/spinner.common'); + \ No newline at end of file diff --git a/exports/splitbutton.js b/exports/splitbutton.js new file mode 100644 index 000000000..5e52c9aa8 --- /dev/null +++ b/exports/splitbutton.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/splitbutton/splitbutton.common'); + \ No newline at end of file diff --git a/exports/tabpanel.js b/exports/tabpanel.js new file mode 100644 index 000000000..568e92ad4 --- /dev/null +++ b/exports/tabpanel.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/tabpanel/tabpanel.common'); + \ No newline at end of file diff --git a/exports/tabview.js b/exports/tabview.js new file mode 100644 index 000000000..d1bca55f8 --- /dev/null +++ b/exports/tabview.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/tabview/tabview.common'); + \ No newline at end of file diff --git a/exports/textarea.js b/exports/textarea.js new file mode 100644 index 000000000..ac4918072 --- /dev/null +++ b/exports/textarea.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/textarea/textarea.common'); + \ No newline at end of file diff --git a/exports/toast.js b/exports/toast.js new file mode 100644 index 000000000..8ee33c506 --- /dev/null +++ b/exports/toast.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/toast/toast.common'); + \ No newline at end of file diff --git a/exports/toasteventbus.js b/exports/toasteventbus.js new file mode 100644 index 000000000..c47c5a9e9 --- /dev/null +++ b/exports/toasteventbus.js @@ -0,0 +1,3 @@ +'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 new file mode 100644 index 000000000..4d820b4b0 --- /dev/null +++ b/exports/toastservice.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/toast/toastservice.js.common'); + \ No newline at end of file diff --git a/exports/togglebutton.js b/exports/togglebutton.js new file mode 100644 index 000000000..323d37fa9 --- /dev/null +++ b/exports/togglebutton.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/togglebutton/togglebutton.common'); + \ No newline at end of file diff --git a/exports/toolbar.js b/exports/toolbar.js new file mode 100644 index 000000000..19db26729 --- /dev/null +++ b/exports/toolbar.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/toolbar/toolbar.common'); + \ No newline at end of file diff --git a/exports/tristatecheckbox.js b/exports/tristatecheckbox.js new file mode 100644 index 000000000..7b6ddc9a3 --- /dev/null +++ b/exports/tristatecheckbox.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/tristatecheckbox/tristatecheckbox.common'); + \ No newline at end of file diff --git a/exports/validationmessage.js b/exports/validationmessage.js new file mode 100644 index 000000000..09cfc2980 --- /dev/null +++ b/exports/validationmessage.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/validationmessage/validationmessage.common'); + \ No newline at end of file