ESPTerm web interface submodule, separated to make testing and development easier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
espterm-front-end/build.sh

30 lines
613 B

7 years ago
#!/bin/bash
echo 'Packing JS...'
7 years ago
echo ';' > ';'
cat jssrc/lib/chibi.js ';' \
jssrc/lib/keymaster.js ';' \
jssrc/lib/polyfills.js ';' \
jssrc/utils.js ';' \
jssrc/modal.js ';' \
jssrc/notif.js ';' \
jssrc/appcommon.js ';' \
jssrc/lang.js ';' \
jssrc/wifi.js ';' \
jssrc/term_* ';' \
jssrc/term.js ';' \
jssrc/soft_keyboard.js | npm run --silent minify > js/app.js
rm ';'
7 years ago
echo 'Building CSS...'
7 years ago
npm run sass -- --output-style compressed sass/app.scss css/app.css
7 years ago
echo 'Building HTML...'
php ./dump_js_lang.php
php ./compile_html.php
echo 'ESPTerm front-end ready'