[beast: 17/47] EBEAST: vc/bundle.js: bundle all *.vue files into objects/vc-bundle.js



commit 02368111667603f0fccc3f929faed8d94fd1762a
Author: Tim Janik <timj gnu org>
Date:   Tue Apr 11 01:19:34 2017 +0200

    EBEAST: vc/bundle.js: bundle all *.vue files into objects/vc-bundle.js
    
    Signed-off-by: Tim Janik <timj gnu org>

 ebeast/vc/bundle.js |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/ebeast/vc/bundle.js b/ebeast/vc/bundle.js
new file mode 100644
index 0000000..2106ee7
--- /dev/null
+++ b/ebeast/vc/bundle.js
@@ -0,0 +1,17 @@
+// GNU LGPL v2.1+: http://www.gnu.org/licenses/lgpl.html
+'use strict';
+
+// assert Vue is present
+console.assert (window.Vue !== undefined);
+
+// load Vue components
+const vue_components = [
+  require ('./button.vue'),
+  require ('./icon-button.vue'),
+  require ('./button-bar.vue'),
+];
+
+// register components
+vue_components.forEach ((c) => {
+  Vue.component (c.name, c);
+});


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]