Include vue files to publish as well

pull/12/head
cagataycivici 2019-05-26 10:56:47 +03:00
parent 381197fa20
commit b13f10ee2d
47 changed files with 50 additions and 48 deletions

View File

@ -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(

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/accordion/accordion.common');
module.exports = require('./components/accordion/Accordion.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/accordiontab/accordiontab.common');
module.exports = require('./components/accordiontab/AccordionTab.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/autocomplete/autocomplete.common');
module.exports = require('./components/autocomplete/AutoComplete.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/button/button.common');
module.exports = require('./components/button/Button.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/calendar/calendar.common');
module.exports = require('./components/calendar/Calendar.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/card/card.common');
module.exports = require('./components/card/Card.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/chart/chart.common');
module.exports = require('./components/chart/Chart.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/checkbox/checkbox.common');
module.exports = require('./components/checkbox/Checkbox.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/chips/chips.common');
module.exports = require('./components/chips/Chips.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/dataview/dataview.common');
module.exports = require('./components/dataview/DataView.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/dataviewlayoutoptions/dataviewlayoutoptions.common');
module.exports = require('./components/dataviewlayoutoptions/DataViewLayoutOptions.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/dialog/dialog.common');
module.exports = require('./components/dialog/Dialog.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/dropdown/dropdown.common');
module.exports = require('./components/dropdown/Dropdown.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/editor/editor.common');
module.exports = require('./components/editor/Editor.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/fieldset/fieldset.common');
module.exports = require('./components/fieldset/Fieldset.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/fileupload/fileupload.common');
module.exports = require('./components/fileupload/FileUpload.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/fullcalendar/fullcalendar.common');
module.exports = require('./components/fullcalendar/FullCalendar.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/inputswitch/inputswitch.common');
module.exports = require('./components/inputswitch/InputSwitch.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/inputtext/inputtext.common');
module.exports = require('./components/inputtext/InputText.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/listbox/listbox.common');
module.exports = require('./components/listbox/Listbox.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/message/message.common');
module.exports = require('./components/message/Message.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/multiselect/multiselect.common');
module.exports = require('./components/multiselect/MultiSelect.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/overlaypanel/overlaypanel.common');
module.exports = require('./components/overlaypanel/OverlayPanel.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/paginator/paginator.common');
module.exports = require('./components/paginator/Paginator.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/panel/panel.common');
module.exports = require('./components/panel/Panel.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/password/password.common');
module.exports = require('./components/password/Password.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/progressbar/progressbar.common');
module.exports = require('./components/progressbar/ProgressBar.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/radiobutton/radiobutton.common');
module.exports = require('./components/radiobutton/RadioButton.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/rating/rating.common');
module.exports = require('./components/rating/Rating.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/selectbutton/selectbutton.common');
module.exports = require('./components/selectbutton/SelectButton.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/sidebar/sidebar.common');
module.exports = require('./components/sidebar/Sidebar.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/slider/slider.common');
module.exports = require('./components/slider/Slider.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/spinner/spinner.common');
module.exports = require('./components/spinner/Spinner.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/splitbutton/splitbutton.common');
module.exports = require('./components/splitbutton/SplitButton.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/tabpanel/tabpanel.common');
module.exports = require('./components/tabpanel/TabPanel.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/tabview/tabview.common');
module.exports = require('./components/tabview/TabView.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/textarea/textarea.common');
module.exports = require('./components/textarea/Textarea.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/toast/toast.common');
module.exports = require('./components/toast/Toast.vue');

View File

@ -1,3 +0,0 @@
'use strict';
module.exports = require('./components/toast/toasteventbus.js.common');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/toast/toastservice.js.common');
module.exports = require('./components/toast/ToastService.js');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/togglebutton/togglebutton.common');
module.exports = require('./components/togglebutton/ToggleButton.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/toolbar/toolbar.common');
module.exports = require('./components/toolbar/Toolbar.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/tristatecheckbox/tristatecheckbox.common');
module.exports = require('./components/tristatecheckbox/TriStateCheckbox.vue');

View File

@ -1,3 +1,3 @@
'use strict';
module.exports = require('./components/validationmessage/validationmessage.common');
module.exports = require('./components/validationmessage/ValidationMessage.vue');

View File

@ -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([

View File

@ -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",