Files
ha-frontend-cdce8p/demo/script/build_demo
T
Paulus Schoutsen bb71fe0bec Add demo (#2502)
* Add demo

* Fix stuff

* Lint

* Typescript and demo card

* More fixes

* Allow switching through configs

* Lint

* Lint2

* Add two demo configs

* Lint

* Lint
2019-01-18 21:24:32 -08:00

18 lines
270 B
Bash
Executable File

#!/bin/sh
# Build the demo
# Stop on errors
set -e
cd "$(dirname "$0")/.."
OUTPUT_DIR=dist
rm -rf $OUTPUT_DIR
cd ..
DEMO=1 ./node_modules/.bin/gulp build-translations gen-icons
cd demo
NODE_ENV=production ../node_modules/.bin/webpack -p --config webpack.config.js