diff makefile @ 1951:9f0f2b39ad95

vidref web is working Ignore-this: 686b512c0368f8cc419000e784f13935
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 06 Jun 2019 00:09:39 +0000
parents a362b892cb43
children 9dd331caa23b
line wrap: on
line diff
--- a/makefile	Thu Jun 06 00:07:07 2019 +0000
+++ b/makefile	Thu Jun 06 00:09:39 2019 +0000
@@ -41,7 +41,7 @@
 
 light9/web/lib/debug/debug-build-es6.js:
 	node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build-es6.js --standalone debug
-	echo "export default window.debug;" >> light9/web/lib/debug/debug-build-es6.js
+	echo "\nexport default window.debug;" >> light9/web/lib/debug/debug-build-es6.js
 
 lit_fix:
 	perl -pi -e "s,'lit-html,'/node_modules/lit-html,; s,lit-html',lit-html/lit-html.js'," node_modules/lit-element/lit-element.js
@@ -49,11 +49,11 @@
 round_fix:
 	perl -pi -e 's/module.exports = rounding/export { rounding }/' node_modules/significant-rounding/index.js
 
-debug_es6: 
-	node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build-es6.js
-	node_modules/cjs-to-es6/index.js light9/web/lib/debug/debug-build-es6.js
+light9/web/lib/underscore/underscore-min-es6.js:
+	cp light9/web/lib/underscore/underscore-min.js light9/web/lib/underscore/underscore-min-es6.js
+	perl -pi -e 's/call\(this\);/call(window); export default window._;/' light9/web/lib/underscore/underscore-min-es6.js
 
-npm: npm_install node_modules/n3/n3-browser.js light9/web/lib/debug/debug-build.js light9/web/lib/debug/debug-build-es6.js lit_fix round_fix debug_es6
+npm: npm_install node_modules/n3/n3-browser.js light9/web/lib/debug/debug-build.js light9/web/lib/debug/debug-build-es6.js lit_fix round_fix light9/web/lib/underscore/underscore-min-es6.js
 
 
 bin/ascoltami2: gst_packages link_to_sys_packages