Stub service worker

This commit is contained in:
Paulus Schoutsen 2018-05-15 14:06:08 -04:00
parent 68fb35a401
commit 646f0bb718

View File

@ -46,6 +46,12 @@ cp -r node_modules/leaflet/dist/images $OUTPUT_DIR/images/leaflet/
./node_modules/.bin/gulp compress
# Stub the service worker
touch build/service_worker.js
touch build-es5/service_worker.js
touch hass_frontend/service_worker.js
touch hass_frontend_es5/service_worker.js
# Generate the __init__ file
echo "VERSION = '`git rev-parse HEAD`'" >> $OUTPUT_DIR/__init__.py
echo "CREATED_AT = `date +%s`" >> $OUTPUT_DIR/__init__.py