Skip to content

Commit

Permalink
Initial version of HTML app builder
Browse files Browse the repository at this point in the history
This is an initial version of code to combine and minify the HTML, CSS and JS.

The idea is that, when minified and combined, there will be less resources used on the ESP and lower memory usage.

This will also allow config.js to be split up in to multiple files and maybe allow conditional building to merge the code base with EmonESP, etc.

On the downside the HTML now has to be 'compiled' which can slow down development.

The minifying is done mostly in pure Python and intergrated in to the PlatformIO build process so no additional instilation steps are required.

The exception to this is the JS minification which is done using a web service (the Python minifyer is broken) so you need to be online when building.
  • Loading branch information
jeremypoulter committed Aug 25, 2017
1 parent cd17455 commit 2dffe04
Show file tree
Hide file tree
Showing 30 changed files with 20,646 additions and 2,055 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,7 @@ full-upload.sh
*.gch
.vscode/browse.vc.db*
.vscode/c_cpp_properties.json

# Python code
*.pyc
.cache
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ env:
cache:
directories:
- "~/.platformio"

install:
- pip install -U platformio
- pip install -U platformio

script:
- platformio run -e $PIO_ENV
- platformio run -e $PIO_ENV -t build
- platformio run -e $PIO_ENV -t buildfs
21 changes: 0 additions & 21 deletions lib/js/combine.sh

This file was deleted.

4 changes: 0 additions & 4 deletions lib/js/jquery.min.js

This file was deleted.

4 changes: 0 additions & 4 deletions lib/js/jquery.slim.min.js

This file was deleted.

22 changes: 0 additions & 22 deletions lib/js/knockout.mapping.min.js

This file was deleted.

Loading

0 comments on commit 2dffe04

Please sign in to comment.