#!/bin/bash source "_build_common.sh" mkdir -p out/js echo 'Generating lang.js...' php ./dump_js_lang.php if [[ $ESP_DEMO ]]; then demofile=js/demo.js else demofile= fi echo 'Processing JS...' if [[ $ESP_PROD ]]; then smarg= else smarg=--source-maps fi npm run babel -- -o "out/js/app.$FRONT_END_HASH.js" ${smarg} \ js/lib/chibi.js \ js/lib/keymaster.js \ js/lib/polyfills.js \ js/utils.js \ js/modal.js \ js/notif.js \ js/appcommon.js \ $demofile \ js/lang.js \ js/wifi.js \ js/term_* \ js/debug_screen.js \ js/soft_keyboard.js \ js/term.js