[beast: 20/47] EBEAST: build and include objects/vc-bundle.js from vc/bundle.js



commit b378ef472f04160749fb2766ac8e00e907490e41
Author: Tim Janik <timj gnu org>
Date:   Sun Apr 2 12:37:26 2017 +0200

    EBEAST: build and include objects/vc-bundle.js from vc/bundle.js
    
    Signed-off-by: Tim Janik <timj gnu org>

 ebeast/Makefile.am |    9 ++++++++-
 ebeast/index.html  |    2 ++
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ebeast/Makefile.am b/ebeast/Makefile.am
index 477099f..a8a0f01 100644
--- a/ebeast/Makefile.am
+++ b/ebeast/Makefile.am
@@ -44,9 +44,16 @@ clean-local: clean-ebeast-bundle
 clean-ebeast-bundle:
        rm -rf .bundlestamp "./$(BUNDLEDIR)" ebeast-bundle/
 
+# == bundle.js ==
+objects/vc-bundle.js: vc/bundle.js vc/*.vue
+       $(AM_V_GEN)
+       $(Q) node_modules/.bin/browserify --ignore-missing --no-builtins --no-commondir \
+         --insert-global-vars="global" --no-browser-field -d \
+         -t vueify -e $< -o $@
+
 # == app ==
 app: .appstamp
-.appstamp: package.json xlint-html xlint-js objects/app.css objects/gradient-01.png
+.appstamp: package.json xlint-html xlint-js objects/app.css objects/gradient-01.png objects/vc-includes.js
        $(Q) $(MAKE) $(AM_MAKEFLAGS) -C v8bse v8bse.node
        $(Q) rm -rf .bundlestamp "./$(BUNDLEDIR)" # avoid electron picking up stale resources
        $(Q) touch $@
diff --git a/ebeast/index.html b/ebeast/index.html
index ad9678d..1cd86ab 100644
--- a/ebeast/index.html
+++ b/ebeast/index.html
@@ -5,6 +5,8 @@
 
   <link rel="stylesheet" href="objects/app.css">
 
+  <script src="objects/vc-includes.js">/* Vue + compoentns */</script>
+
   <script>
     'use strict';
     /* Load application code right away, start application once DOM is ready */


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