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.
41 lines
711 B
41 lines
711 B
#!/bin/bash
|
|
|
|
cd $(dirname $0)
|
|
|
|
rm -r out/*
|
|
mkdir out/js
|
|
mkdir out/css
|
|
|
|
echo 'Generating lang.js...'
|
|
php ./dump_js_lang.php
|
|
|
|
echo 'Packing JS...'
|
|
npm run babel -- -o out/js/app.js --source-maps js/lib \
|
|
js/lib/chibi.js \
|
|
js/lib/keymaster.js \
|
|
js/lib/polyfills.js \
|
|
js/utils.js \
|
|
js/modal.js \
|
|
js/notif.js \
|
|
js/appcommon.js \
|
|
js/lang.js \
|
|
js/wifi.js \
|
|
js/demo.js \
|
|
js/term_* \
|
|
js/debug_screen.js \
|
|
js/soft_keyboard.js \
|
|
js/term.js
|
|
|
|
echo 'Building CSS...'
|
|
|
|
npm run sass -- --output-style compressed sass/app.scss out/css/app.css
|
|
|
|
echo 'Building HTML...'
|
|
|
|
php ./compile_html.php
|
|
|
|
echo 'Copying resources...'
|
|
|
|
cp -r img out/img
|
|
|
|
echo 'ESPTerm front-end ready'
|
|
|