fix build script to also build html

legacy-screen
Ondřej Hruška 7 years ago
parent 20165f5306
commit 22101cc000
  1. 1
      .gitignore
  2. 3
      build.sh
  3. 2
      build_html.php
  4. 0
      out/.gitkeep

1
.gitignore vendored

@ -1,6 +1,7 @@
_env.php _env.php
js/* js/*
css/* css/*
out/*
!.gitkeep !.gitkeep
node_modules/ node_modules/
*.~ *.~

@ -19,4 +19,7 @@ echo "Building CSS..."
sass --style=compressed sass/app.scss css/app.css sass --style=compressed sass/app.scss css/app.css
echo "Building HTML..."
php ./build_html.php
echo "ESPTerm front-end ready" echo "ESPTerm front-end ready"

@ -16,7 +16,7 @@ function process_html($s) {
$no_tpl_files = ['help', 'cfg_wifi_conn']; $no_tpl_files = ['help', 'cfg_wifi_conn'];
$dest = ESP_DEMO ? __DIR__ . '/../html_demo/' : __DIR__ . '/../html/'; $dest = __DIR__ . '/out/';
ob_start(); ob_start();
foreach($_pages as $_k => $p) { foreach($_pages as $_k => $p) {

Loading…
Cancel
Save