[beast: 25/47] EBEAST: make sure all vc/bundle.js references are valid
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 25/47] EBEAST: make sure all vc/bundle.js references are valid
- Date: Sat, 2 Sep 2017 00:44:01 +0000 (UTC)
commit 770a384f79a0c684061998a5fc8302c3bc8ac04a
Author: Tim Janik <timj gnu org>
Date: Fri May 19 23:03:24 2017 +0200
EBEAST: make sure all vc/bundle.js references are valid
Signed-off-by: Tim Janik <timj gnu org>
ebeast/Makefile.am | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ebeast/Makefile.am b/ebeast/Makefile.am
index f544812..2bbad9b 100644
--- a/ebeast/Makefile.am
+++ b/ebeast/Makefile.am
@@ -47,6 +47,13 @@ clean-ebeast-bundle:
# == bundle.js ==
objects/vc-bundle.js: vc/bundle.js vc/*.vue
$(AM_V_GEN)
+ @: # check all require('...') file references
+ $(Q) cd $(<D) && \
+ for f in $$(grep -o 'require *([^)]\+)' $(<F) | \
+ sed "s/require *( *['\"]//g ; s/['\"])//g") ; do \
+ test -r $$f || { echo $$(pwd -P)/: $$f: 'read error'; exit 1 ; } ; \
+ done
+ @: # all files present, generate bundle
$(Q) node_modules/.bin/browserify --ignore-missing --no-builtins --no-commondir \
--insert-global-vars="global" --no-browser-field -d \
-t vueify -e $< -o $@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]