Include vue files to publish as well
parent
381197fa20
commit
b13f10ee2d
|
@ -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(
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/accordion/accordion.common');
|
||||
module.exports = require('./components/accordion/Accordion.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/accordiontab/accordiontab.common');
|
||||
module.exports = require('./components/accordiontab/AccordionTab.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/autocomplete/autocomplete.common');
|
||||
module.exports = require('./components/autocomplete/AutoComplete.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/button/button.common');
|
||||
module.exports = require('./components/button/Button.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/calendar/calendar.common');
|
||||
module.exports = require('./components/calendar/Calendar.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/card/card.common');
|
||||
module.exports = require('./components/card/Card.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/chart/chart.common');
|
||||
module.exports = require('./components/chart/Chart.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/checkbox/checkbox.common');
|
||||
module.exports = require('./components/checkbox/Checkbox.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/chips/chips.common');
|
||||
module.exports = require('./components/chips/Chips.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/dataview/dataview.common');
|
||||
module.exports = require('./components/dataview/DataView.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/dataviewlayoutoptions/dataviewlayoutoptions.common');
|
||||
module.exports = require('./components/dataviewlayoutoptions/DataViewLayoutOptions.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/dialog/dialog.common');
|
||||
module.exports = require('./components/dialog/Dialog.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/dropdown/dropdown.common');
|
||||
module.exports = require('./components/dropdown/Dropdown.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/editor/editor.common');
|
||||
module.exports = require('./components/editor/Editor.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/fieldset/fieldset.common');
|
||||
module.exports = require('./components/fieldset/Fieldset.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/fileupload/fileupload.common');
|
||||
module.exports = require('./components/fileupload/FileUpload.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/fullcalendar/fullcalendar.common');
|
||||
module.exports = require('./components/fullcalendar/FullCalendar.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/inputswitch/inputswitch.common');
|
||||
module.exports = require('./components/inputswitch/InputSwitch.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/inputtext/inputtext.common');
|
||||
module.exports = require('./components/inputtext/InputText.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/listbox/listbox.common');
|
||||
module.exports = require('./components/listbox/Listbox.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/message/message.common');
|
||||
module.exports = require('./components/message/Message.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/multiselect/multiselect.common');
|
||||
module.exports = require('./components/multiselect/MultiSelect.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/overlaypanel/overlaypanel.common');
|
||||
module.exports = require('./components/overlaypanel/OverlayPanel.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/paginator/paginator.common');
|
||||
module.exports = require('./components/paginator/Paginator.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/panel/panel.common');
|
||||
module.exports = require('./components/panel/Panel.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/password/password.common');
|
||||
module.exports = require('./components/password/Password.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/progressbar/progressbar.common');
|
||||
module.exports = require('./components/progressbar/ProgressBar.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/radiobutton/radiobutton.common');
|
||||
module.exports = require('./components/radiobutton/RadioButton.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/rating/rating.common');
|
||||
module.exports = require('./components/rating/Rating.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/selectbutton/selectbutton.common');
|
||||
module.exports = require('./components/selectbutton/SelectButton.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/sidebar/sidebar.common');
|
||||
module.exports = require('./components/sidebar/Sidebar.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/slider/slider.common');
|
||||
module.exports = require('./components/slider/Slider.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/spinner/spinner.common');
|
||||
module.exports = require('./components/spinner/Spinner.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/splitbutton/splitbutton.common');
|
||||
module.exports = require('./components/splitbutton/SplitButton.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/tabpanel/tabpanel.common');
|
||||
module.exports = require('./components/tabpanel/TabPanel.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/tabview/tabview.common');
|
||||
module.exports = require('./components/tabview/TabView.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/textarea/textarea.common');
|
||||
module.exports = require('./components/textarea/Textarea.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/toast/toast.common');
|
||||
module.exports = require('./components/toast/Toast.vue');
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/toast/toasteventbus.js.common');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/toast/toastservice.js.common');
|
||||
module.exports = require('./components/toast/ToastService.js');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/togglebutton/togglebutton.common');
|
||||
module.exports = require('./components/togglebutton/ToggleButton.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/toolbar/toolbar.common');
|
||||
module.exports = require('./components/toolbar/Toolbar.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/tristatecheckbox/tristatecheckbox.common');
|
||||
module.exports = require('./components/tristatecheckbox/TriStateCheckbox.vue');
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
module.exports = require('./components/validationmessage/validationmessage.common');
|
||||
module.exports = require('./components/validationmessage/ValidationMessage.vue');
|
||||
|
|
@ -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([
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue